/* ==========================================================================
   DAYANNE MORA SALAZAR | DISEÑO GRÁFICO & VECTOR STUDIO
   Física de Movimiento Sedosa (Velvet-Smooth 60 FPS):
   - Preloader Progresivo Editorial (0% a 100% en 2-3s)
   - Logotipo en Círculo Grande con Enfoque Limpio (Sin Cuadro Fantasma)
   - Expansión a Pantalla Completa Total con Botón 'X' Rojo Arriba a la Derecha
   - Búsqueda Tolerante / Fuzzy con Resultados Inmediatos
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,500;0,600;0,700;0,800;1,600;1,700&display=swap');

:root {
  --palo-rosa-bg: #C68B93;
  --palo-rosa-deep: #9E5660;
  --palo-rosa-soft: #D9A4AC;
  --palo-rosa-light: #F7EAEC;
  
  --card-bg: #FFFFFF;
  --card-border: rgba(158, 86, 96, 0.14);
  
  --text-dark: #1E1012;
  --text-body: #422E32;
  --text-muted: #6E5358;
  --text-light: #FFFFFF;
  
  --color-red-danger: #E63946;
  
  /* Sombras Profundas y Orgánicas */
  --shadow-card: 0 16px 36px rgba(40, 14, 19, 0.12), 0 4px 12px rgba(40, 14, 19, 0.05);
  --shadow-card-hover: 0 26px 54px rgba(40, 14, 19, 0.18), 0 8px 18px rgba(40, 14, 19, 0.08);
  --shadow-nav: 0 10px 30px rgba(40, 14, 19, 0.14);
  --shadow-drawer: -16px 0 50px rgba(30, 10, 14, 0.28);
  --shadow-red-btn: 0 8px 24px rgba(230, 57, 70, 0.45);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Curva de movimiento sedosa (Luxury Velvet Easing) */
  --ease-velvet: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset Global & Eliminación de Cuadro / Rectángulo Fantasma en Clicks */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent !important;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--palo-rosa-bg);
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-dark);
  min-height: 100vh;
  position: relative;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--palo-rosa-bg);
  overflow-x: hidden;
}

/* Eliminación estricta de bordes/rectángulos fantasma al hacer click */
button:focus:not(:focus-visible),
a:focus:not(:focus-visible),
input:focus:not(:focus-visible),
article:focus:not(:focus-visible) {
  outline: none !important;
  box-shadow: none !important;
}

/* Indicadores de Foco Visibles ÚNICAMENTE cuando se usa Teclado (Tab) */
:focus-visible {
  outline: 3px solid var(--palo-rosa-deep) !important;
  outline-offset: 3px !important;
  border-radius: 6px;
}

button, a, input {
  touch-action: manipulation;
}

/* Accesibilidad: Ocultar visualmente pero mantener para lectores de pantalla */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ==========================================================================
   PRELOADER EDITORIAL DE CARGA (0% a 100% PROGRESIVO)
   ========================================================================== */
.preloader-screen {
  position: fixed;
  inset: 0;
  background-color: var(--palo-rosa-bg);
  background-image: url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg stroke='%23ffffff' stroke-width='1.2' stroke-opacity='0.13'%3E%3Cpath d='M60 25 C45 35 30 20 20 40 C35 55 45 45 60 70 C75 45 85 55 100 40 C90 20 75 35 60 25 Z'/%3E%3Cpath d='M60 40 C50 48 40 40 32 50 C42 60 50 54 60 70 C70 54 78 60 88 50 C80 40 70 48 60 40 Z' stroke-opacity='0.08'/%3E%3Ccircle cx='60' cy='60' r='45' stroke-opacity='0.06'/%3E%3Ccircle cx='60' cy='60' r='58' stroke-dasharray='3 6' stroke-opacity='0.07'/%3E%3C/g%3E%3Cg stroke='%23000000' stroke-width='1' stroke-opacity='0.05'%3E%3Cpath d='M60 26 C45 36 30 21 20 41 C35 56 45 46 60 71 C75 46 85 56 100 41 C90 21 75 36 60 26 Z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 140px 140px;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.75s var(--ease-velvet), visibility 0.75s ease;
}

.preloader-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  max-width: 440px;
  padding: 20px;
}

.preloader-logo-ring {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #FFFFFF;
  padding: 8px;
  box-shadow: 0 14px 38px rgba(40, 14, 19, 0.25), inset 0 0 0 3px var(--palo-rosa-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: preloaderPulse 2.4s infinite ease-in-out;
}

.preloader-logo-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

@keyframes preloaderPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 14px 38px rgba(40, 14, 19, 0.25); }
  50% { transform: scale(1.05); box-shadow: 0 20px 48px rgba(40, 14, 19, 0.35); }
}

.preloader-brand-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #FFFFFF;
  text-shadow: 0 2px 8px rgba(40, 14, 19, 0.3);
}

.preloader-tagline {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 3.5px;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
}

.preloader-counter-wrap {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1;
  margin-top: 8px;
  text-shadow: 0 4px 14px rgba(40, 14, 19, 0.3);
}

.preloader-pct-symbol {
  font-size: 1.5rem;
  font-weight: 600;
  opacity: 0.85;
  margin-left: 2px;
}

.preloader-track {
  width: 220px;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: 4px;
}

.preloader-bar {
  width: 0%;
  height: 100%;
  background: #FFFFFF;
  border-radius: var(--radius-full);
  transition: width 0.08s linear;
}

/* ==========================================================================
   CAPA DE FONDO FIJA OPTIMIZADA POR GPU (60 FPS)
   ========================================================================== */
.fixed-bg-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-color: var(--palo-rosa-bg);
  background-image: url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg stroke='%23ffffff' stroke-width='1.2' stroke-opacity='0.13'%3E%3Cpath d='M60 25 C45 35 30 20 20 40 C35 55 45 45 60 70 C75 45 85 55 100 40 C90 20 75 35 60 25 Z'/%3E%3Cpath d='M60 40 C50 48 40 40 32 50 C42 60 50 54 60 70 C70 54 78 60 88 50 C80 40 70 48 60 40 Z' stroke-opacity='0.08'/%3E%3Ccircle cx='60' cy='60' r='45' stroke-opacity='0.06'/%3E%3Ccircle cx='60' cy='60' r='58' stroke-dasharray='3 6' stroke-opacity='0.07'/%3E%3C/g%3E%3Cg stroke='%23000000' stroke-width='1' stroke-opacity='0.05'%3E%3Cpath d='M60 26 C45 36 30 21 20 41 C35 56 45 46 60 71 C75 46 85 56 100 41 C90 21 75 36 60 26 Z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 140px 140px;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

/* Contenedor Principal */
.app-layout {
  position: relative;
  z-index: 10;
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 32px 100px;
  display: flex;
  flex-direction: column;
  gap: 36px;
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition: opacity 0.8s var(--ease-velvet), transform 0.8s var(--ease-velvet);
}

.app-layout.revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* ==========================================================================
   HEADER SUPERIOR
   ========================================================================== */
.top-header-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 12px 26px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-nav);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

/* 1. Logo Circular Grande y Cómodo */
.brand-circle-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: var(--text-dark);
  border-radius: var(--radius-full);
  border: none !important;
  outline: none !important;
  transition: opacity 0.3s ease, transform 0.3s var(--ease-velvet);
}

.brand-circle-logo:hover {
  opacity: 0.92;
  transform: scale(1.02);
}

.logo-circle-frame {
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: #FFFFFF;
  padding: 4px;
  box-shadow: 0 6px 16px rgba(40, 14, 19, 0.16), inset 0 0 0 2px var(--palo-rosa-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-circle-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.brand-naming-col {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--text-dark);
}

.brand-tagline-text {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--palo-rosa-deep);
  text-transform: uppercase;
}

/* 2. Buscador Centralizado */
.header-search-center {
  max-width: 540px;
  width: 100%;
  margin: 0 auto;
  position: relative;
}

.search-input-box {
  width: 100%;
  min-height: 48px;
  padding: 12px 42px 12px 48px;
  background: #FAF5F6;
  border: 1.5px solid rgba(158, 86, 96, 0.2);
  border-radius: var(--radius-full);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.35s ease, background-color 0.35s ease, box-shadow 0.35s var(--ease-velvet);
}

.search-input-box:focus {
  background: #FFFFFF;
  border-color: var(--palo-rosa-deep);
  box-shadow: 0 0 0 4px rgba(158, 86, 96, 0.15);
}

.search-box-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--palo-rosa-deep);
  font-size: 1rem;
  pointer-events: none;
}

.search-clear-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.search-clear-btn:hover {
  background: #EEDFE2;
  color: var(--text-dark);
}

/* 3. Acciones Derecha */
.header-actions-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-header-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: #FAF5F6;
  border: 1px solid rgba(158, 86, 96, 0.2);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  position: relative;
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, transform 0.3s var(--ease-velvet);
}

.btn-header-icon:hover {
  background: var(--palo-rosa-light);
  color: var(--palo-rosa-deep);
  border-color: var(--palo-rosa-deep);
  transform: scale(1.05);
}

.badge-fav-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--palo-rosa-deep);
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Botón Hamburguesa */
.btn-hamburger {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  background: var(--palo-rosa-bg);
  color: #FFFFFF;
  border: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(158, 86, 96, 0.35);
  transition: background-color 0.35s ease, transform 0.3s var(--ease-velvet), box-shadow 0.35s ease;
}

.btn-hamburger i {
  font-size: 1.05rem;
}

.btn-hamburger:hover {
  background: var(--palo-rosa-deep);
  transform: scale(1.02);
  box-shadow: 0 6px 18px rgba(158, 86, 96, 0.45);
}

.btn-hamburger:active {
  transform: scale(0.96);
}

/* ==========================================================================
   DRAWER LATERAL DESPLEGABLE
   ========================================================================== */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 12, 15, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease, backdrop-filter 0.55s ease;
}

.drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: #FFFFFF;
  box-shadow: var(--shadow-drawer);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  transform: translate3d(100%, 0, 0);
  will-change: transform;
  transition: transform 0.62s var(--ease-velvet);
  overflow-y: auto;
}

.drawer-overlay.active .drawer-panel {
  transform: translate3d(0, 0, 0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 30px;
  border-bottom: 1px solid #F0E6E8;
}

.drawer-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-dark);
}

.drawer-close-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  background: #FAF5F6;
  border: none;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.4s var(--ease-velvet);
}

.drawer-close-btn:hover {
  background: #EEDFE2;
  transform: rotate(90deg) scale(1.05);
}

.drawer-content {
  padding: 26px 30px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.drawer-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--palo-rosa-deep);
  margin-bottom: 14px;
}

.drawer-categories-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.drawer-cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  background: #FAF5F6;
  border: 1px solid transparent;
  color: var(--text-dark);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease, transform 0.35s var(--ease-velvet);
  width: 100%;
  text-align: left;
}

.drawer-cat-item i {
  font-size: 1.05rem;
  color: var(--palo-rosa-deep);
  width: 24px;
  transition: color 0.35s ease;
}

.drawer-cat-item:hover {
  background: #F4E8EA;
  color: var(--palo-rosa-deep);
  transform: translate3d(5px, 0, 0);
}

.drawer-cat-item.active {
  background: var(--palo-rosa-bg);
  color: #FFFFFF;
  font-weight: 700;
}

.drawer-cat-item.active i {
  color: #FFFFFF;
}

.drawer-cat-count {
  font-size: 0.75rem;
  background: rgba(0, 0, 0, 0.06);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.drawer-cat-item.active .drawer-cat-count {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

/* ==========================================================================
   BARRA DE ESTADO DE RESULTADOS
   ========================================================================== */
.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  color: #FFFFFF;
}

.active-filter-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.96);
  color: var(--palo-rosa-deep);
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(40, 14, 19, 0.1);
  transition: transform 0.3s var(--ease-velvet);
}

.results-count-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 4px rgba(40, 14, 19, 0.2);
}

/* ==========================================================================
   CUADRÍCULA DE TARJETAS REDONDEADAS
   ========================================================================== */
.vectors-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  width: 100%;
}

/* Tarjeta Redondeada */
.vector-card-flat {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 20px;
  position: relative;
  transform: translate3d(0, 0, 0);
  will-change: transform, box-shadow;
  transition: box-shadow 0.45s var(--ease-velvet), border-color 0.45s ease, transform 0.45s var(--ease-velvet);
  cursor: pointer;
}

.vector-card-flat:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(158, 86, 96, 0.35);
  transform: translate3d(0, -4px, 0);
}

/* Marco Interior de Previsualización */
.card-preview-frame {
  width: 100%;
  height: 230px;
  background: #FAF7F8;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid rgba(158, 86, 96, 0.08);
}

.card-preview-frame svg {
  max-width: 88%;
  max-height: 88%;
  transition: transform 0.5s var(--ease-velvet);
}

.vector-card-flat:hover .card-preview-frame svg {
  transform: scale(1.03);
}

.card-badge-flat {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: #FFFFFF;
  color: var(--palo-rosa-deep);
  box-shadow: 0 4px 10px rgba(40, 14, 19, 0.08);
  z-index: 2;
}

.card-fav-btn-flat {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #FFFFFF;
  border: none;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(40, 14, 19, 0.08);
  transition: color 0.3s ease, background-color 0.3s ease, transform 0.3s var(--ease-velvet);
  z-index: 2;
}

.card-fav-btn-flat:hover,
.card-fav-btn-flat.active {
  color: #E63946;
  background: #FFF0F2;
  transform: scale(1.08);
}

.card-fav-btn-flat:active {
  transform: scale(0.92);
}

/* Cuerpo de la Tarjeta */
.card-body-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-category-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--palo-rosa-deep);
  margin-bottom: 4px;
}

.card-title-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 10px;
}

.card-formats-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.format-chip {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: #F4ECEE;
  color: var(--text-muted);
}

.card-footer-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid #F0E6E8;
  margin-top: auto;
}

.swatches-preview {
  display: flex;
  gap: 6px;
}

.swatch-circle {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: transform 0.3s var(--ease-velvet);
}

.vector-card-flat:hover .swatch-circle {
  transform: scale(1.15);
}

.card-open-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--palo-rosa-deep);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s ease, transform 0.3s var(--ease-velvet);
}

.vector-card-flat:hover .card-open-link {
  color: var(--text-dark);
  transform: translate3d(3px, 0, 0);
}

/* ==========================================================================
   VISTA A PANTALLA COMPLETA TOTAL (EXPANSIÓN CON BOTÓN 'X' ROJO)
   ========================================================================== */
.fullscreen-vector-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(22, 9, 12, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease-velvet);
  overflow: hidden;
}

.fullscreen-vector-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* BOTÓN DE CERRAR EN ROJO VIBRANTE ARRIBA A LA DERECHA */
.fullscreen-close-btn-red {
  position: fixed;
  top: 24px;
  right: 28px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-red-danger);
  border: 2px solid rgba(255, 255, 255, 0.6);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  cursor: pointer;
  box-shadow: var(--shadow-red-btn);
  transition: background-color 0.3s ease, transform 0.35s var(--ease-velvet), box-shadow 0.3s ease;
  z-index: 100000;
}

.fullscreen-close-btn-red:hover {
  background: #C92A37;
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 10px 30px rgba(230, 57, 70, 0.6);
}

.fullscreen-close-btn-red:active {
  transform: scale(0.95);
}

/* Lienzo Canvas que cubre la pantalla */
.fullscreen-vector-canvas {
  width: 100vw;
  height: 100vh;
  background: #FFFFFF;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  padding: 48px 64px;
  gap: 48px;
  align-items: center;
  transform: scale(0.97);
  will-change: transform;
  transition: transform 0.6s var(--ease-velvet);
  overflow-y: auto;
}

.fullscreen-vector-overlay.active .fullscreen-vector-canvas {
  transform: scale(1);
}

/* Zona de Previsualización Vectorial a Gran Escala */
.fullscreen-preview-zone {
  background: #FAF7F8;
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(100vh - 96px);
  max-height: 820px;
  border: 1px solid rgba(158, 86, 96, 0.12);
  box-shadow: inset 0 2px 14px rgba(40, 14, 19, 0.04);
}

.fullscreen-preview-zone svg {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.4s var(--ease-velvet);
}

/* Panel de Información y Personalización */
.fullscreen-info-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 520px;
}

.fullscreen-info-header {
  margin-bottom: 20px;
}

.fullscreen-title-heading {
  font-family: 'Playfair Display', serif;
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 12px;
}

.fullscreen-desc-body {
  font-size: 0.96rem;
  color: var(--text-body);
  line-height: 1.65;
}

.presets-container-flat {
  background: #FAF7F8;
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 20px;
  border: 1px solid rgba(158, 86, 96, 0.08);
}

.presets-heading {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.preset-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.preset-chip {
  background: #FFFFFF;
  border: 1px solid #E6D8DB;
  color: var(--text-body);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 8px 16px;
  min-height: 38px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease, transform 0.3s var(--ease-velvet);
}

.preset-chip:hover {
  transform: scale(1.04);
}

.preset-chip.active {
  border-color: var(--palo-rosa-deep);
  background: #FFF5F7;
  color: var(--palo-rosa-deep);
}

.preset-color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.color-pickers-flat-row {
  display: flex;
  gap: 12px;
}

.picker-control-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.picker-control-item label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
}

.picker-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1px solid #E6D8DB;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: border-color 0.3s ease;
}

.picker-box:hover {
  border-color: var(--palo-rosa-deep);
}

.picker-box input[type="color"] {
  border: none;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  cursor: pointer;
  background: transparent;
}

.picker-box span {
  font-size: 0.75rem;
  font-family: monospace;
  color: var(--text-body);
}

.specs-flat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}

.spec-cell {
  background: #FAF7F8;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.spec-cell-lbl {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.spec-cell-val {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dark);
}

.btn-flat-download {
  background: var(--palo-rosa-bg);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  border: none;
  padding: 16px 28px;
  min-height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(158, 86, 96, 0.35);
  transition: background-color 0.35s ease, opacity 0.35s ease, transform 0.3s var(--ease-velvet), box-shadow 0.35s ease;
}

.btn-flat-download:hover {
  background: var(--palo-rosa-deep);
  transform: translate3d(0, -2px, 0);
  box-shadow: 0 10px 26px rgba(158, 86, 96, 0.45);
}

.btn-flat-download:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  transform: none;
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */
.toast-container-flat {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 200000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast-item {
  background: #FFFFFF;
  border-left: 4px solid var(--palo-rosa-bg);
  color: var(--text-dark);
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideToastTop 0.45s var(--ease-velvet) forwards;
}

@keyframes slideToastTop {
  from { transform: translate3d(0, -20px, 0); opacity: 0; }
  to { transform: translate3d(0, 0, 0); opacity: 1; }
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .fullscreen-vector-canvas {
    grid-template-columns: 1fr;
    padding: 70px 24px 40px;
    height: 100vh;
    overflow-y: auto;
    gap: 32px;
  }
  .fullscreen-preview-zone {
    height: 420px;
    max-height: 420px;
  }
  .fullscreen-info-panel {
    max-width: 100%;
  }
}

@media (max-width: 960px) {
  .top-header-bar {
    grid-template-columns: 1fr auto;
    border-radius: var(--radius-lg);
    gap: 16px;
  }
  .header-search-center {
    grid-column: 1 / -1;
    order: 3;
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .app-layout {
    padding: 16px 14px 80px;
  }
  .vectors-grid-container {
    grid-template-columns: 1fr;
  }
  .btn-hamburger span {
    display: none;
  }
  .btn-hamburger {
    padding: 10px 14px;
    border-radius: 50%;
    min-width: 48px;
  }
  .brand-naming-col {
    display: none;
  }
  .fullscreen-close-btn-red {
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }
}
