/* =========================================================
   EMILSE MODAS · MAIN.CSS
   Identidad de marca: Rosa + Azul Marino + Cremas
   Tipografías: Roundhand, Legatum, Darker Grotesque
   ========================================================= */

/* ---------- 1) FONTS ---------- */

/* 
 * Tipografías elegidas para máxima legibilidad:
 * - Playfair Display: títulos elegantes y femeninos
 * - Lato: cuerpo de texto ultra legible, ideal para público mayor
 */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Lato:wght@300;400;700;900&display=swap');

/* ---------- 2) VARIABLES ---------- */

:root {
  /* BRAND COLORS - Emilse Modas */
  --primary:       #E63683;   /* Rosa principal */
  --primary-dark:  #C4246B;   /* Rosa oscuro */
  --primary-light: #F2D2C3;   /* Rosa claro/durazno */
  
  --secondary:     #011E48;   /* Azul marino */
  --secondary-light: #0222AF; /* Azul intenso (acento) */
  
  --black:         #161616;   /* Negro marca */
  --black-soft:    #2A2A2A;
  
  /* CREMAS/NEUTROS */
  --cream:         #EFDDCD;   /* Crema claro */
  --cream-dark:    #E1CABA;   /* Beige */
  --cream-medium:  #F2D2C3;   /* Durazno */
  --camel:         #E5BA90;   /* Camel */
  
  /* ACENTOS */
  --accent-orange: #FF5C05;
  --accent-blue:   #0222AF;
  
  /* UI */
  --bg:            #FAFAF8;
  --surface:       #FFFFFF;
  --surface-2:     #F8F6F3;
  --text:          var(--black);
  --text-light:    #666666;
  --muted:         #888888;
  --border:        #E8E4E0;
  
  /* SUCCESS/ERROR */
  --success:       #2E7D32;
  --error:         #D32F2F;
  
  /* RADIUS */
  --radius-xs: 4px;
  --radius:    8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 50px;

  /* SHADOWS */
  --shadow-sm: 0 2px 8px rgba(22, 22, 22, 0.06);
  --shadow:    0 4px 20px rgba(22, 22, 22, 0.1);
  --shadow-lg: 0 8px 40px rgba(22, 22, 22, 0.15);

  /* TRANSITIONS */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.3s;

  /* CONTAINER */
  --max-width: 1280px;

  /* TYPOGRAPHY - Optimizada para legibilidad */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Tamaños aumentados para mejor legibilidad */
  --fs-xs:   0.8125rem;   /* 13px */
  --fs-sm:   0.9375rem;   /* 15px */
  --fs-base: 1.0625rem;   /* 17px - base más grande */
  --fs-md:   1.1875rem;   /* 19px */
  --fs-lg:   1.375rem;    /* 22px */
  --fs-xl:   1.625rem;    /* 26px */
  --fs-2xl:  2.125rem;    /* 34px */
  --fs-3xl:  2.625rem;    /* 42px */
  --fs-4xl:  3.25rem;     /* 52px */

  /* SPACING */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
}

/* ---------- 3) RESET ---------- */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.75; /* Más espaciado para mejor lectura */
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.01em; /* Ligeramente más espaciado */
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3; /* Más generoso para títulos */
  color: var(--black);
  letter-spacing: -0.01em;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all var(--duration) var(--ease);
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

input, select, textarea {
  font: inherit;
  color: inherit;
}

/* Utilidades */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 4) TOPBAR ---------- */

.topbar {
  background: var(--secondary);
  color: white;
  font-size: var(--fs-sm);
  text-align: center;
  padding: var(--space-3) var(--space-4);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.topbar p {
  margin: 0;
}

.topbar a {
  color: var(--primary-light);
  text-decoration: underline;
}

/* Topbar responsive - más pequeño en móviles */
@media (max-width: 768px) {
  .topbar {
    padding: var(--space-2) var(--space-3);
    font-size: var(--fs-xs);
  }
  
  .topbar p {
    font-size: var(--fs-xs);
    line-height: 1.4;
  }
}

/* ---------- 5) HEADER ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-4) var(--space-5);
}

.header__logo {
  flex-shrink: 0;
}

.header__logo img {
  height: 70px;
  width: auto;
}

.header__logo-text {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  color: var(--primary);
  letter-spacing: 0.02em;
  font-weight: 600;
}

.header__logo-text img {
  height: 70px;
  width: auto;
  object-fit: contain;
}

.header__search {
  flex: 1;
  display: flex;
  max-width: 500px;
  margin: 0 auto;
}

.header__search input {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  border: 2px solid var(--border);
  border-radius: var(--radius-full) 0 0 var(--radius-full);
  background: var(--surface-2);
  font-size: var(--fs-sm);
  transition: all var(--duration);
}

.header__search input:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
}

.header__search input::placeholder {
  color: var(--muted);
}

.header__search button {
  padding: var(--space-3) var(--space-5);
  background: var(--primary);
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration);
}

.header__search button:hover {
  background: var(--primary-dark);
}

.header__search .search-icon {
  width: 20px;
  height: 20px;
  stroke: white;
  stroke-width: 2.5;
  fill: none;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.header__link {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  transition: all var(--duration);
}

.header__link:hover {
  color: var(--primary);
  background: var(--cream);
}

.cart-icon {
  position: relative;
  font-size: 1.5rem;
  padding: var(--space-2) var(--space-3);
  background: var(--cream);
  border-radius: var(--radius);
  transition: all var(--duration);
}

.cart-icon:hover {
  background: var(--primary);
  color: white;
}

.cart-icon .badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  background: var(--accent-orange);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: var(--secondary);
  border-radius: var(--radius);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.mobile-menu-toggle span {
  width: 22px;
  height: 2.5px;
  background: white;
  border-radius: 2px;
  transition: all var(--duration);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- 6) NAVIGATION ---------- */

.nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 1000; /* Asegura que el submenú quede por encima del hero y resto del contenido */
}

.nav__inner {
  display: flex;
  justify-content: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-4);
  overflow: visible; /* Permite que el dropdown se vea fuera del contenedor */
}

/* En móvil, ocultar la navegación normal (se muestra el menú lateral cuando está abierto) */
@media (max-width: 768px) {
  .nav {
    display: none; /* Oculto por defecto en móvil */
  }
  
  .nav.nav--open {
    display: flex; /* Mostrar cuando está abierto */
  }
  
  .nav__inner {
    overflow-x: auto;
    scrollbar-width: none;
  }
  .nav__inner::-webkit-scrollbar {
    display: none;
  }
}

.nav__item {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--text);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: all var(--duration);
  text-transform: none; /* Sin mayúsculas para mejor legibilidad */
  letter-spacing: 0.01em;
}

.nav__item:hover {
  color: var(--primary);
  background: var(--cream);
}

.nav__item.active {
  color: white;
  background: var(--primary);
}

.nav__item--sale {
  color: white !important;
  background: var(--accent-orange) !important;
}

.nav__item--sale:hover {
  background: #E54E00 !important;
}

/* Dropdown de navegación */
.nav__dropdown {
  position: relative;
}

.nav__item--dropdown {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__dropdown-arrow {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.nav__dropdown:hover .nav__dropdown-arrow {
  transform: rotate(180deg);
}

.nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  padding: var(--space-2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 9999; /* Muy alto para asegurar que esté por encima de todo */
}

.nav__dropdown-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid white;
}

/* Puente invisible para mantener el hover mientras el mouse se mueve al submenú */
.nav__dropdown-menu::after {
  content: '';
  position: absolute;
  top: -15px;
  left: 0;
  right: 0;
  height: 15px;
}

.nav__dropdown:hover .nav__dropdown-menu,
.nav__dropdown:focus-within .nav__dropdown-menu,
.nav__dropdown.open .nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav__dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  color: var(--text);
  text-decoration: none;
  transition: all 0.15s ease;
}

.nav__dropdown-item:hover {
  background: var(--surface-2);
  color: var(--primary);
}

.nav__dropdown-icon {
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border-radius: var(--radius-md);
}

.nav__dropdown-item:hover .nav__dropdown-icon {
  background: var(--primary-light);
}

.nav__dropdown-item div {
  display: flex;
  flex-direction: column;
}

.nav__dropdown-item strong {
  font-size: var(--fs-base);
  font-weight: 600;
}

.nav__dropdown-item small {
  font-size: var(--fs-xs);
  color: var(--muted);
}

/* Mega menú para Tienda (dos columnas) */
.nav__dropdown-menu--mega {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: var(--space-4);
}

.nav__submenu-col {
  padding: var(--space-3);
}

.nav__submenu-title {
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--secondary);
  margin-bottom: var(--space-2);
}

/* Toggle y flecha de sub-acordeón - oculto en desktop */
.nav__submenu-toggle {
  display: none !important;
}

.nav__submenu-arrow {
  display: none !important;
}

/* En desktop, mostrar el título estático */
.nav__submenu-title--desktop {
  display: block;
}

.nav__submenu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav__submenu-list a {
  display: block;
  padding: 4px 0;
  font-size: var(--fs-sm);
  color: var(--text-light);
}

.nav__submenu-list a:hover {
  color: var(--primary);
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
}

.nav-overlay.active {
  display: block;
}

/* Header del menú móvil - oculto en desktop */
.nav .nav__mobile-header {
  display: none !important;
}

@media (max-width: 768px) {
  .nav .nav__mobile-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    background: var(--secondary);
  }
}

/* ---------- 7) HERO SECTION ---------- */

.hero {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: center;
  padding: 0;
  background: var(--black);
  overflow: hidden;
}

/* Video de fondo - se ve completo, sin recortes */
.hero__video {
  width: 100%;
  height: auto;
  display: block;
  z-index: 0;
}

/* Video Desktop - oculto en móvil y tablet */
.hero__video--desktop {
  display: block;
}

.hero__video--mobile {
  display: none;
}

/* Mostrar video móvil en dispositivos <= 991px (tablets y móviles) */
@media (max-width: 991px) {
  .hero__video--desktop {
    display: none !important;
  }
  
  .hero__video--mobile {
    display: block !important;
  }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(1, 30, 72, 0.85) 0%,
    rgba(1, 30, 72, 0.4) 50%,
    transparent 100%
  );
  z-index: 1;
}

/* Fallback cuando el video no puede reproducirse:
   usamos la portada.gif como fondo estático */
.hero.hero--fallback {
  background: var(--black) url('../assets/img/portada.gif') center center / contain no-repeat;
}

.hero.hero--fallback .hero__video {
  display: none;
}

.hero__content {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  z-index: 3;
  max-width: 550px;
  padding: var(--space-6) var(--space-8);
}

.hero__eyebrow {
  display: inline-block;
  font-size: var(--fs-sm);
  letter-spacing: 0.05em;
  color: var(--cream);
  font-weight: 700;
  margin-bottom: var(--space-4);
  padding: var(--space-2) var(--space-4);
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
}

.hero__title {
  font-family: var(--font-heading);
  font-size: var(--fs-4xl);
  color: white;
  margin-bottom: var(--space-5);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  font-weight: 600;
  line-height: 1.2;
}

.hero__title span {
  color: var(--primary-light);
}

.hero__text {
  font-size: var(--fs-lg);
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--space-6);
  line-height: 1.7;
  font-weight: 500;
}

.hero__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: var(--space-5);
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: white;
  font-size: var(--fs-sm);
  font-weight: 600;
  animation: bounce 2s infinite;
  z-index: 3;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.scroll-indicator {
  font-size: 1.5rem;
  margin-top: var(--space-2);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

/* Texto institucional debajo del hero */
.hero-intro {
  background: var(--surface-2);
  padding: var(--space-6) 0;
}

.hero-intro p {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  font-size: var(--fs-md);
  line-height: 1.9;
  color: var(--secondary);
}

/* ---------- 8) BUTTONS ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--fs-sm);
  font-weight: 700;
  font-family: var(--font-body);
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  text-transform: none; /* Sin mayúsculas para mejor legibilidad */
  letter-spacing: 0.02em;
}

.btn--primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.btn--primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(230, 54, 131, 0.3);
}

.btn--secondary {
  background: var(--secondary);
  color: white;
  border-color: var(--secondary);
}

.btn--secondary:hover {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn--outline:hover {
  background: var(--primary);
  color: white;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(4px);
}

.btn--ghost:hover {
  background: white;
  color: var(--secondary);
  border-color: white;
}

.btn--lg {
  padding: var(--space-4) var(--space-7);
  font-size: var(--fs-base);
}

.btn--sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--fs-xs);
}

/* ---------- 9) SECTIONS ---------- */

.section {
  padding: var(--space-9) var(--space-4);
}

.section--cream {
  background: var(--cream);
}

.section--dark {
  background: var(--secondary);
  color: white;
}

.section__title {
  font-size: var(--fs-3xl);
  margin-bottom: var(--space-6);
  text-align: center;
  font-weight: 800;
}

.section__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.section__header--center {
  justify-content: center;
  text-align: center;
}

.section__eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--space-2);
  letter-spacing: 0.02em;
}

.section__subtitle {
  color: var(--text-light);
  font-size: var(--fs-md);
  max-width: 600px;
  margin: 0 auto var(--space-6);
  text-align: center;
}

/* ---------- 10) FEATURES BAR ---------- */

.features-bar {
  background: var(--cream);
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--cream-dark);
}

.features-bar__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-align: left;
}

.feature-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.feature-item strong {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 720;
  color: var(--secondary);
}

.feature-item p {
  font-size: var(--fs-sm);
  color: var(--text-light);
  margin: 0;
  line-height: 1.5;
}

/* ---------- 11) CATEGORIES ---------- */

.categories__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

.category-card {
  position: relative;
  height: 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  transition: transform var(--duration);
}

.category-card:hover {
  transform: translateY(-8px);
}

.category-card:hover .category-card__overlay {
  opacity: 0.9;
}

.category-card--featured {
  grid-row: span 2;
  height: 100%;
}

.category-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--secondary) 0%, transparent 70%);
  opacity: 0.8;
  transition: opacity var(--duration);
}

.category-card__content {
  position: relative;
  z-index: 2;
  padding: var(--space-5);
  width: 100%;
}

.category-card__label {
  display: block;
  color: white;
  font-size: var(--fs-xl);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.category-card__count {
  display: block;
  color: var(--primary-light);
  font-size: var(--fs-sm);
  margin-top: var(--space-1);
  font-weight: 600;
}

/* ---------- 12) PRODUCTS GRID ---------- */

.products__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-5);
}

.products__grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.products__grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.products--alt {
  background: var(--surface-2);
}

.products--sale {
  background: linear-gradient(135deg, var(--secondary) 0%, #02285A 100%);
  color: white;
}

.products--sale .section__eyebrow {
  color: var(--accent-orange);
}

/* ---------- 13) PRODUCT CARD ---------- */

.product-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--duration);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.product-card__img {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--surface-2);
}

.product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.product-card:hover .product-card__img img {
  transform: scale(1.08);
}

.product-card__body {
  padding: var(--space-4);
}

.product-card__title {
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--secondary);
  line-height: 1.3;
}

.product-card__desc {
  font-size: var(--fs-sm);
  color: var(--text-light);
  margin-bottom: var(--space-3);
  line-height: 1.6;
}

.product-card__price {
  font-family: var(--font-body);
  font-size: var(--fs-lg);
  font-weight: 900;
  color: var(--primary);
  margin-bottom: var(--space-2);
}

.old-price {
  text-decoration: line-through;
  color: var(--muted);
  font-weight: 500;
  font-size: var(--fs-sm);
  margin-left: var(--space-2);
}

.product-card__colors {
  font-size: var(--fs-xs);
  color: var(--muted);
  margin-bottom: var(--space-3);
}

.product-card__actions {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}

.product-card__link {
  flex: 1;
  text-align: center;
  padding: var(--space-2) var(--space-3);
  background: var(--cream);
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--secondary);
  transition: all var(--duration);
}

.product-card__link:hover {
  background: var(--primary);
  color: white;
}

.product-card__cart {
  width: 44px;
  height: 44px;
  border: 2px solid var(--primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all var(--duration);
  background: white;
}

.product-card__cart:hover {
  background: var(--primary);
  transform: scale(1.1);
}

/* Badges */
.badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  padding: var(--space-1) var(--space-3);
  font-size: var(--fs-xs);
  font-weight: 700;
  border-radius: var(--radius-full);
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge--new {
  background: var(--secondary);
  color: white;
}

.badge--hot {
  background: var(--accent-orange);
  color: white;
}

.badge--sale {
  background: var(--primary);
  color: white;
}

/* ---------- 14) PROMO BANNER ---------- */

.promo-banner {
  background: var(--primary);
  overflow: hidden;
}

.promo-banner__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 450px;
}

.promo-banner__content {
  padding: var(--space-8);
  color: white;
}

.promo-banner__eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: 700;
  margin-bottom: var(--space-4);
  text-transform: uppercase;
}

.promo-banner__content h2 {
  font-size: var(--fs-3xl);
  margin-bottom: var(--space-4);
  color: white;
}

.promo-banner__content h2 .highlight {
  color: var(--cream);
}

.promo-banner__content p {
  font-size: var(--fs-md);
  opacity: 0.9;
  margin-bottom: var(--space-5);
  line-height: 1.7;
}

.promo-banner__actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.promo-banner__actions .btn--primary {
  background: white;
  color: var(--primary);
  border-color: white;
}

.promo-banner__actions .btn--primary:hover {
  background: var(--cream);
  border-color: var(--cream);
}

.promo-banner__actions .btn--outline {
  color: white;
  border-color: white;
}

.promo-banner__image {
  height: 100%;
  min-height: 450px;
}

.promo-banner__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- 15) HIGHLIGHTS ---------- */

.highlights__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.highlight-card {
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: transform var(--duration);
  border: 2px solid transparent;
}

.highlight-card:hover {
  transform: translateY(-5px);
}

.highlight-card__icon {
  font-size: 3rem;
  margin-bottom: var(--space-4);
}

.highlight-card h3 {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-3);
}

.highlight-card p {
  font-size: var(--fs-sm);
  margin-bottom: var(--space-5);
  line-height: 1.7;
  color: var(--text-light);
}

.highlight-card--primary {
  background: var(--primary);
  color: white;
}

.highlight-card--primary h3,
.highlight-card--primary p {
  color: white;
}

.highlight-card--secondary {
  background: var(--secondary);
  color: white;
}

.highlight-card--secondary h3,
.highlight-card--secondary p {
  color: white;
}

.highlight-card--accent {
  background: var(--cream);
  border-color: var(--cream-dark);
}

/* ---------- 16) ABOUT SECTION ---------- */

.about-section {
  padding: var(--space-9) 0;
  background: white;
}

.about-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}

.about-section__image img,
.about-section__image video {
  width: 100%;
  height: 550px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.about-section__video {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 350px;
  margin: 0 auto;
}

.about-section__video video {
  width: 100%;
  height: auto;
  display: block;
}

.about-section__content h2 {
  font-size: var(--fs-3xl);
  margin-bottom: var(--space-4);
}

.about-section__content p {
  color: var(--text-light);
  margin-bottom: var(--space-4);
  line-height: 1.8;
}

.about-section__list {
  margin: var(--space-5) 0;
}

.about-section__list li {
  padding: var(--space-2) 0;
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--secondary);
}

/* ---------- 17) TESTIMONIALS ---------- */

.testimonials-section {
  background: var(--cream);
  padding: var(--space-9) 0;
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-bottom: var(--space-7);
}

.testimonial-card {
  background: white;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.testimonial-card__stars {
  font-size: 1.2rem;
  margin-bottom: var(--space-4);
}

.testimonial-card__text {
  font-style: normal;
  color: var(--text-light);
  margin-bottom: var(--space-5);
  line-height: 1.8;
  font-size: var(--fs-md);
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testimonial-card__avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
}

.testimonial-card__author strong {
  display: block;
  font-size: var(--fs-sm);
  color: var(--secondary);
}

.testimonial-card__author span {
  font-size: var(--fs-xs);
  color: var(--muted);
}

.testimonials__stats {
  display: flex;
  justify-content: center;
  gap: var(--space-9);
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--fs-4xl);
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  font-size: var(--fs-base);
  color: var(--text-light);
  font-weight: 400;
  margin-top: var(--space-2);
}

/* ---------- 18) NEWSLETTER ---------- */

.newsletter-section {
  background: var(--secondary);
  padding: var(--space-8) 0;
}

.newsletter-section__inner {
  max-width: 650px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-section__content h2 {
  color: white;
  margin-bottom: var(--space-3);
  font-size: var(--fs-2xl);
}

.newsletter-section__content p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-5);
}

.newsletter-form {
  display: flex;
  gap: var(--space-2);
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: var(--space-4);
  border: none;
  border-radius: var(--radius-full);
  font-size: var(--fs-base);
}

.newsletter-form input:focus {
  outline: 3px solid var(--primary);
}

.newsletter-section__note {
  margin-top: var(--space-4);
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- 19) INSTAGRAM SECTION ---------- */

.instagram-section {
  padding: var(--space-8) 0;
  background: var(--surface-2);
}

.instagram__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-2);
}

.instagram__item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius);
}

.instagram__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.instagram__item:hover img {
  transform: scale(1.15);
}

.instagram__overlay {
  position: absolute;
  inset: 0;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  opacity: 0;
  transition: opacity var(--duration);
  color: white;
}

.instagram__item:hover .instagram__overlay {
  opacity: 0.85;
}

/* ---------- 20) FOOTER ---------- */

.footer {
  background: var(--black);
  color: var(--cream);
  margin-top: var(--space-8);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: var(--space-6);
  padding: var(--space-8) var(--space-5);
}

.footer__col h3 {
  font-family: var(--font-heading);
  color: var(--primary);
  font-size: var(--fs-2xl);
  margin-bottom: var(--space-4);
  font-weight: 600;
}

.footer__col h4 {
  font-family: var(--font-heading);
  color: white;
  font-size: var(--fs-md);
  margin-bottom: var(--space-4);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.footer__logo {
  display: inline-block;
  margin-bottom: var(--space-3);
}

.footer__logo img {
  height: 90px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer__col-main p {
  font-size: var(--fs-sm);
  line-height: 1.7;
  margin-bottom: var(--space-4);
  color: var(--cream-dark);
}

.footer__col ul li {
  margin-bottom: var(--space-2);
}

.footer__col a {
  font-size: var(--fs-sm);
  color: var(--cream-dark);
  transition: color var(--duration);
}

.footer__col a:hover {
  color: var(--primary);
}

.footer__social {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.footer__social a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black-soft);
  border-radius: var(--radius-full);
  transition: all var(--duration);
}

.footer__social a:hover {
  background: var(--primary);
  transform: scale(1.1);
}

.footer__social img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
}

.footer__whatsapp {
  color: #25D366 !important;
  font-weight: 600;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-4) 0;
}

.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-xs);
  color: var(--muted);
}

/* ---------- 21) MODAL SELECTOR CLIENTE ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
  visibility: visible;
}


.modal-cliente {
  background: white;
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 100%;
  padding: var(--space-6);
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.modal-overlay.active .modal-cliente {
  transform: scale(1) translateY(0);
}

.modal-cliente__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: var(--surface-2);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: all 0.2s;
}

.modal-cliente__close:hover {
  background: var(--primary);
  color: white;
}

.modal-cliente__header {
  text-align: center;
  margin-bottom: var(--space-5);
}

.modal-cliente__eyebrow {
  display: inline-block;
  font-size: var(--fs-sm);
  color: var(--primary);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.modal-cliente__header h2 {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  color: var(--text);
  margin-bottom: var(--space-2);
}

.modal-cliente__header p {
  color: var(--muted);
  font-size: var(--fs-sm);
}

.modal-cliente__options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.modal-cliente__option {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-5) var(--space-4);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s ease;
  position: relative;
}

.modal-cliente__option:hover {
  border-color: var(--primary);
  background: var(--surface-2);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.modal-cliente__option--mayorista {
  border-color: var(--accent-orange);
}

.modal-cliente__option--mayorista:hover {
  border-color: var(--accent-orange);
  background: rgba(255, 102, 0, 0.05);
}

.modal-cliente__icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-3);
}

.modal-cliente__option h3 {
  font-size: var(--fs-lg);
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.modal-cliente__option p {
  font-size: var(--fs-xs);
  color: var(--muted);
}

.modal-cliente__badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background: var(--accent-orange);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 20px;
  text-transform: uppercase;
}

@media (max-width: 480px) {
  .modal-cliente__options {
    grid-template-columns: 1fr;
  }
  
  .modal-cliente {
    padding: var(--space-5);
  }
  
  .modal-cliente__header h2 {
    font-size: var(--fs-xl);
  }
}

/* ---------- 22) WHATSAPP FLOAT ---------- */

.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: all var(--duration);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

/* ---------- 22) RESPONSIVE ---------- */

@media (max-width: 1024px) {
  .features-bar__inner {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .categories__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .category-card--featured {
    grid-row: span 1;
    height: 320px;
  }
  
  .promo-banner__inner {
    grid-template-columns: 1fr;
  }
  
  .promo-banner__image {
    order: -1;
    min-height: 350px;
  }
  
  .highlights__grid {
    grid-template-columns: 1fr;
  }
  
  .about-section__inner {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
  
  .about-section__image img,
  .about-section__image video {
    height: 400px;
  }
  
  .about-section__video {
    max-width: 280px;
  }
  
  .testimonials__grid {
    grid-template-columns: 1fr;
  }
  
  .footer__inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex !important;
    order: 0;
  }
  
  .header__inner {
    flex-wrap: wrap;
    padding: var(--space-3) var(--space-4);
    gap: var(--space-3);
  }
  
  .header__logo {
    order: 1;
    flex: 1;
    min-width: 0;
  }
  
  .header__logo img,
  .header__logo-text img {
    height: 50px !important;
    max-width: 100%;
  }
  
  .header__actions {
    order: 2;
    gap: var(--space-2);
  }
  
  .header__link {
    font-size: var(--fs-xs);
    padding: var(--space-1) var(--space-2);
  }
  
  .cart-icon {
    font-size: 1.2rem;
    padding: var(--space-1) var(--space-2);
  }
  
  .header__search {
    order: 3;
    width: 100%;
    max-width: none;
    margin-top: var(--space-2);
    flex: 1 1 100%;
  }
  
  .header__search input {
    font-size: var(--fs-xs);
    padding: var(--space-2) var(--space-3);
  }
  
  .header__search button {
    padding: var(--space-2) var(--space-4);
  }
  
  /* Navegación móvil - menú lateral */
  .nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height para móviles */
    background: var(--secondary);
    z-index: 100;
    transition: left var(--duration);
    display: none; /* Oculto por defecto */
    flex-direction: column;
    border-bottom: none;
  }
  
  .nav.nav--open {
    left: 0;
    display: flex; /* Mostrar cuando está abierto */
  }
  
  .nav__mobile-title {
    color: white;
    font-size: var(--fs-lg);
    font-weight: 700;
  }
  
  .nav__mobile-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: var(--space-2);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
  }
  
  .nav__mobile-close:hover {
    background: rgba(255, 255, 255, 0.1);
  }
  
  .nav__inner {
    flex-direction: column;
    padding: var(--space-2) 0 var(--space-6);
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch; /* Smooth scroll en iOS */
  }
  
  .nav__item {
    color: white;
    padding: var(--space-4) var(--space-5);
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .nav__item.active {
    background: var(--primary);
  }
  
  /* Dropdown en móvil */
  .nav__dropdown {
    width: 100%;
  }
  
  .nav__item--dropdown {
    width: 100%;
    justify-content: space-between;
  }
  
  /* Ocultar flechas del dropdown en móvil (se usa acordeón) */
  .nav__dropdown-arrow {
    display: none !important;
  }
  
  .nav__dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  
  .nav__dropdown-menu::before {
    display: none;
  }
  
  .nav__dropdown.open .nav__dropdown-menu {
    max-height: 1000px; /* Mayor altura para permitir sub-acordeones */
    pointer-events: auto;
  }
  
  /* Mega menú en móvil: una sola columna con sub-acordeones */
  .nav__dropdown-menu--mega {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
  }
  
  /* Sub-acordeón para Minorista/Mayorista */
  .nav__submenu-col {
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  /* En móvil, ocultar título desktop y mostrar toggle */
  .nav__submenu-title--desktop {
    display: none !important;
  }
  
  .nav__submenu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--space-3) var(--space-5);
    background: none;
    border: none;
    cursor: pointer;
    color: white;
  }
  
  .nav__submenu-title {
    color: var(--primary-light);
    font-size: var(--fs-sm);
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
    padding: 0;
  }
  
  .nav__submenu-arrow {
    display: block;
    width: 16px;
    height: 16px;
    color: var(--primary-light);
    transition: transform 0.2s ease;
    flex-shrink: 0;
  }
  
  .nav__submenu-col.open .nav__submenu-arrow {
    transform: rotate(180deg);
  }
  
  .nav__submenu-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: var(--space-3);
  }
  
  .nav__submenu-col.open .nav__submenu-list {
    max-height: 500px;
  }
  
  .nav__submenu-list a {
    color: rgba(255, 255, 255, 0.85);
    padding: 10px var(--space-5);
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .nav__submenu-list a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
  }
  
  /* Link "Ver todo" destacado */
  .nav__submenu-all a {
    color: var(--primary-light) !important;
    font-weight: 600;
    border-bottom: none;
  }
  
  /* Lista simple para Aflora (sin acordeón) */
  .nav__submenu-list--simple {
    max-height: none;
    padding: var(--space-2) 0;
  }
  
  .nav__submenu-list--simple a {
    padding: 12px var(--space-5);
  }
  
  .nav__dropdown.open .nav__dropdown-arrow {
    transform: rotate(180deg);
  }
  
  .nav__dropdown-item {
    color: white;
    padding: var(--space-3) var(--space-6);
    border-radius: 0;
  }
  
  .nav__dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
  }
  
  .nav__dropdown-icon {
    background: rgba(255, 255, 255, 0.1);
    width: 36px;
    height: 36px;
  }
  
  .nav__dropdown-item small {
    color: rgba(255, 255, 255, 0.6);
  }
  
  .hero {
    min-height: auto;
    position: relative;
  }
  
  .hero__content {
    padding: var(--space-5) var(--space-4);
    max-width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    transform: none;
    z-index: 10; /* Asegurar que esté sobre el video y overlay */
    background: linear-gradient(
      to top,
      rgba(1, 30, 72, 0.95) 0%,
      rgba(1, 30, 72, 0.7) 40%,
      transparent 100%
    );
    padding-top: var(--space-8); /* Más espacio arriba para el gradiente */
  }
  
  .hero__overlay {
    background: linear-gradient(
      to top,
      rgba(1, 30, 72, 0.85) 0%,
      rgba(1, 30, 72, 0.4) 50%,
      transparent 100%
    );
    z-index: 2;
  }
  
  .hero__eyebrow {
    font-size: var(--fs-xs);
    padding: var(--space-1) var(--space-3);
    margin-bottom: var(--space-2);
    background: rgba(255, 255, 255, 0.2);
  }
  
  .hero__title {
    font-size: var(--fs-xl);
    margin-bottom: var(--space-3);
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  }
  
  .hero__text {
    font-size: var(--fs-sm);
    margin-bottom: var(--space-4);
    display: none; /* Ocultar texto descriptivo en móviles para ahorrar espacio */
  }
  
  .hero__actions {
    flex-direction: column;
    width: 100%;
    gap: var(--space-3);
    margin-top: var(--space-2);
  }
  
  .hero__actions .btn {
    width: 100%;
    padding: var(--space-4) var(--space-5);
    font-size: var(--fs-base);
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  }
  
  .hero__actions .btn--primary {
    background: var(--primary);
    border: 2px solid var(--primary);
  }
  
  .hero__actions .btn--ghost {
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
  }
  
  .hero__scroll {
    display: none;
  }
  
  .features-bar {
    padding: var(--space-4) 0;
  }
  
  .features-bar__inner {
    grid-template-columns: 1fr;
    gap: var(--space-3);
    text-align: center;
  }
  
  .feature-item {
    justify-content: center;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-2);
  }
  
  .feature-icon {
    font-size: 1.5rem;
  }
  
  .feature-item strong {
    font-size: var(--fs-xs);
  }
  
  .feature-item p {
    font-size: var(--fs-xs);
  }
  
  .section {
    padding: var(--space-6) var(--space-4);
  }
  
  .section__header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }
  
  .section__header h2 {
    font-size: var(--fs-xl);
  }
  
  .categories__grid {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
  
  .category-card {
    height: 250px;
  }
  
  .category-card--featured {
    height: 250px;
  }
  
  .products__grid,
  .products__grid--3,
  .products__grid--4 {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }
  
  .product-card__body {
    padding: var(--space-3);
  }
  
  .product-card__title {
    font-size: var(--fs-sm);
  }
  
  .product-card__price {
    font-size: var(--fs-base);
  }
  
  .instagram__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer__social {
    justify-content: center;
  }
  
  .footer__bottom-inner {
    flex-direction: column;
    gap: var(--space-2);
    text-align: center;
  }
}

@media (max-width: 480px) {
  :root {
    --fs-4xl: 2.5rem;
    --fs-3xl: 2rem;
  }
  
  .hero__actions {
    flex-direction: column;
    width: 100%;
  }
  
  .hero__actions .btn {
    width: 100%;
  }
  
  .products__grid,
  .products__grid--3,
  .products__grid--4 {
    grid-template-columns: 1fr;
  }
  
  .instagram__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .testimonials__stats {
    gap: var(--space-5);
  }
  
  .whatsapp-float {
    width: 55px;
    height: 55px;
    bottom: 15px;
    right: 15px;
  }
}

/* ---------- 23) ANIMATIONS ---------- */

@keyframes fadeInUp {
  from { 
    opacity: 0; 
    transform: translateY(30px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Cart notification */
.cart-notification {
  position: fixed;
  top: 100px;
  right: 20px;
  background: var(--secondary);
  color: white;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  transform: translateX(120%);
  transition: transform var(--duration);
  max-width: 350px;
}

.cart-notification.show {
  transform: translateX(0);
}

.cart-notification--success {
  border-left: 4px solid var(--success);
}

.cart-notification--success span {
  color: #4CAF50;
}

.cart-notification--error {
  border-left: 4px solid var(--error);
}

.cart-notification p {
  margin: 0;
  font-size: var(--fs-sm);
}

/* Cart bounce animation */
@keyframes cartBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

.cart-bounce {
  animation: cartBounce 0.5s ease;
}

/* ---------- 24) REDUCED MOTION ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- 25) CLIENT SELECTOR (MINORISTA/MAYORISTA) ---------- */

.client-selector {
  padding: var(--space-12) 0;
  background: linear-gradient(135deg, var(--cream) 0%, var(--surface-2) 100%);
}

.client-selector__header {
  text-align: center;
  margin-bottom: var(--space-10);
}

.client-selector__header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--secondary);
  margin: var(--space-3) 0;
}

.client-selector__header p {
  color: var(--text-light);
  font-size: var(--fs-lg);
  max-width: 500px;
  margin: 0 auto;
}

.client-selector__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-8);
  max-width: 900px;
  margin: 0 auto;
}

/* Client Card Base */
.client-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-10) var(--space-8);
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 2px solid transparent;
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  transition: all var(--duration) var(--ease);
  overflow: hidden;
}

.client-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  transition: height var(--duration) var(--ease);
}

.client-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}

.client-card:hover::before {
  height: 8px;
}

/* Minorista Card */
.client-card--minorista::before {
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.client-card--minorista:hover {
  border-color: var(--primary);
}

.client-card--minorista .client-card__icon {
  color: var(--primary);
}

/* Mayorista Card */
.client-card--mayorista::before {
  background: linear-gradient(90deg, var(--secondary), var(--accent-blue));
}

.client-card--mayorista:hover {
  border-color: var(--secondary);
}

.client-card--mayorista .client-card__icon {
  color: var(--secondary);
}

/* Card Icon */
.client-card__icon {
  width: 80px;
  height: 80px;
  margin-bottom: var(--space-6);
  padding: var(--space-4);
  background: var(--surface-2);
  border-radius: 50%;
  transition: transform var(--duration) var(--ease), background var(--duration);
}

.client-card:hover .client-card__icon {
  transform: scale(1.1);
}

.client-card--minorista:hover .client-card__icon {
  background: rgba(230, 54, 131, 0.1);
}

.client-card--mayorista:hover .client-card__icon {
  background: rgba(1, 30, 72, 0.1);
}

.client-card__icon svg {
  width: 100%;
  height: 100%;
}

/* Card Title */
.client-card__title {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 600;
  margin: 0 0 var(--space-1);
}

.client-card--minorista .client-card__title {
  color: var(--primary-dark);
}

.client-card--mayorista .client-card__title {
  color: var(--secondary);
}

/* Card Subtitle */
.client-card__subtitle {
  color: var(--muted);
  font-size: var(--fs-base);
  margin: 0 0 var(--space-6);
}

/* Card Features */
.client-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-8);
  text-align: left;
  width: 100%;
}

.client-card__features li {
  padding: var(--space-2) 0;
  font-size: var(--fs-sm);
  color: var(--text-light);
  border-bottom: 1px solid var(--border);
}

.client-card__features li:last-child {
  border-bottom: none;
}

.client-card__features li strong {
  color: var(--text);
}

/* Card CTA */
.client-card__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  font-size: var(--fs-base);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-full);
  transition: all var(--duration) var(--ease);
  margin-top: auto;
}

.client-card--minorista .client-card__cta {
  background: var(--primary);
  color: white;
}

.client-card--minorista:hover .client-card__cta {
  background: var(--primary-dark);
  transform: translateX(4px);
}

.client-card--mayorista .client-card__cta {
  background: var(--secondary);
  color: white;
}

.client-card--mayorista:hover .client-card__cta {
  background: var(--secondary-light);
  transform: translateX(4px);
}

.client-card__cta svg {
  width: 18px;
  height: 18px;
  transition: transform var(--duration);
}

.client-card:hover .client-card__cta svg {
  transform: translateX(4px);
}

/* Badge Mayorista */
.client-card__badge {
  position: absolute;
  top: 24px;
  right: -32px;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: var(--black);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 40px;
  transform: rotate(45deg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Responsive */
@media (max-width: 768px) {
  .client-selector {
    padding: var(--space-8) 0;
  }
  
  .client-selector__cards {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    padding: 0 var(--space-4);
  }
  
  .client-card {
    padding: var(--space-8) var(--space-6);
  }
  
  .client-card__icon {
    width: 64px;
    height: 64px;
  }
  
  .client-card__badge {
    top: 18px;
    right: -36px;
    font-size: 0.65rem;
  }
}


/* ========================================================= 
   USER MENU (HEADER)
   ========================================================= */

.user-menu {
  position: relative;
}

.user-menu__trigger {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  color: var(--text);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  transition: all 0.2s var(--ease);
}

.user-menu__trigger:hover {
  background: var(--cream);
}

.user-menu__icon {
  width: 22px;
  height: 22px;
  stroke: var(--primary);
}

.user-menu__name {
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.user-menu__arrow {
  width: 16px;
  height: 16px;
  stroke: var(--muted);
  transition: transform 0.2s var(--ease);
}

.user-menu.open .user-menu__arrow {
  transform: rotate(180deg);
}

/* Dropdown */
.user-menu__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s var(--ease);
  z-index: 1000;
  overflow: hidden;
}

.user-menu.open .user-menu__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-menu__info {
  padding: var(--space-4);
  background: var(--surface-2);
}

.user-menu__info strong {
  display: block;
  font-size: var(--fs-sm);
  color: var(--text);
  margin-bottom: 2px;
}

.user-menu__info span {
  font-size: var(--fs-xs);
  color: var(--muted);
}

.user-menu__divider {
  height: 1px;
  background: var(--border);
}

.user-menu__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  font-size: var(--fs-sm);
  color: var(--text);
  text-decoration: none;
  background: transparent;
  border: none;
  width: 100%;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.15s var(--ease);
}

.user-menu__item:hover {
  background: var(--cream);
}

.user-menu__item svg {
  width: 18px;
  height: 18px;
  stroke: var(--muted);
}

.user-menu__item--logout {
  color: var(--error);
}

.user-menu__item--logout svg {
  stroke: var(--error);
}

.user-menu__item--logout:hover {
  background: #FFEBEE;
}

/* Responsive */
@media (max-width: 768px) {
  .user-menu__name {
    display: none;
  }
  
  .user-menu__arrow {
    display: none;
  }
  
  .user-menu__trigger {
    padding: var(--space-2);
  }
  
  .user-menu__dropdown {
    right: -10px;
    min-width: 200px;
  }
}
