:root {
  /* ---------- Color ----------
     Los tonos claros se han oscurecido lo justo para cumplir el contraste
     mínimo legal (4,5:1) sin perder la suavidad de la marca. */
  --bg: #F7F1EA;
  --bg-light: #FFFDF9;

  --accent-primary: #8B5A5A;          /* malva de marca */
  --accent-primary-hondo: #6E4344;    /* para degradados y estados activos */
  --accent-secondary: #D9B99B;        /* nude: solo fondos, nunca bajo texto blanco */
  --accent-botanical: #646851;        /* antes #A8AD8C (2,08:1). Ahora 5,14:1 */

  --text-dark: #4A3B35;               /* 9,5:1 sobre el fondo */
  --text-light: #6E5F5A;              /* antes #8A7A75, que se quedaba en 3,66:1 */
  --line: rgba(74, 59, 53, 0.08);
  --linea-fuerte: rgba(74, 59, 53, 0.16);

  /* ---------- Espaciado ----------
     Escala de 8 px. Usar estos valores en lugar de números sueltos: es lo que
     hace que los huecos "rimen" entre secciones. */
  --e-1: 0.25rem;   /*  4px */
  --e-2: 0.5rem;    /*  8px */
  --e-3: 1rem;      /* 16px */
  --e-4: 1.5rem;    /* 24px */
  --e-5: 2rem;      /* 32px */
  --e-6: 3rem;      /* 48px */
  --e-7: 4rem;      /* 64px */
  --e-8: 6rem;      /* 96px */

  /* ---------- Radios ----------
     Tres valores, no diez. */
  --r-s: 8px;
  --r-m: 16px;
  --r-l: 24px;
  --r-redondo: 999px;

  /* ---------- Sombras ---------- */
  --sombra-s: 0 2px 8px rgba(74, 59, 53, 0.06);
  --sombra-m: 0 8px 30px rgba(74, 59, 53, 0.10);
  --sombra-l: 0 20px 60px rgba(74, 59, 53, 0.14);

  /* ---------- Movimiento ---------- */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* ---------- Zona pulsable mínima ----------
     44px es el mínimo recomendado para que un dedo acierte. */
  --tactil: 44px;
}


/* ============================================================
   FOCO DE TECLADO
   ------------------------------------------------------------
   Quien navega con el tabulador debe ver siempre dónde está.
   Se usa :focus-visible para que el anillo aparezca al usar el
   teclado, pero no al hacer clic con el ratón.
   ============================================================ */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--accent-primary);
  outline-offset: 3px;
  border-radius: var(--r-s);
}

/* Sobre fondos malva el anillo malva no se vería */
.btn-cta:focus-visible,
.btn-whatsapp:focus-visible,
.filter-btn.is-active:focus-visible {
  outline-color: var(--text-dark);
}

/* Enlace para saltar al contenido: invisible hasta que se tabula */
.saltar-al-contenido {
  position: absolute;
  left: var(--e-3);
  top: -100px;
  z-index: 10000;
  background: var(--accent-primary);
  color: #fff;
  padding: var(--e-3) var(--e-4);
  border-radius: var(--r-s);
  font-weight: 600;
  transition: top 0.2s var(--ease);
}

.saltar-al-contenido:focus {
  top: var(--e-3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Los botones y campos de formulario NO heredan la tipografía por defecto:
   el navegador les pone la suya (Arial en Windows). Sin esto, los filtros del
   catálogo salían en Arial mientras el resto de la web iba en Inter. */
button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text-dark);
  line-height: 1.7;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container-header {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 4rem;
  padding: 0 2rem;
}

/* ========== HEADER ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  display: flex;
  align-items: center;
  background: rgba(247, 241, 234, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(74, 59, 53, 0.06);
  z-index: 100;
  padding: 0 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.logo {
  display: flex;
  text-decoration: none;
  transition: opacity 0.3s var(--ease);
  height: 50px;
  align-items: center;
  flex-shrink: 0;
}

.logo:hover {
  opacity: 0.8;
}

.logo-svg {
  height: 45px;
  width: auto;
}

.nav {
  display: flex;
  gap: 3rem;
  flex: 1;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: none;
  position: relative;
  transition: color 0.3s var(--ease);
  /* Zona pulsable de 44px: antes solo respondia la altura del texto */
  display: inline-flex;
  align-items: center;
  min-height: var(--tactil);
  padding: 0 var(--e-1);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: width 0.3s var(--ease);
}

.nav-link:hover {
  color: var(--accent-primary);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-chat {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  transition: transform 0.2s var(--ease);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--tactil);
  min-height: var(--tactil);
  border-radius: var(--r-redondo);
}

.nav-chat:hover {
  transform: scale(1.2);
}

/* ========== HERO ========== */
.hero {
  margin-top: 80px;
  /* Antes 100vh + 80px de margen: el hero acababa midiendo más que la pantalla
     y había que hacer scroll a ciegas. Con 88vh se intuye que hay más abajo. */
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: var(--e-8) var(--e-5) var(--e-7);
  position: relative;
  background: linear-gradient(-45deg, rgba(212, 185, 155, 0.08), rgba(168, 173, 140, 0.04), rgba(217, 185, 155, 0.06), rgba(168, 173, 140, 0.03));
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  overflow: hidden;
}

.hero-decorative {
  position: absolute;
  top: 0;
  right: 0;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle at 30% 50%, rgba(212, 185, 155, 0.12) 0%, transparent 50%);
  filter: blur(100px);
  pointer-events: none;
  animation: floatBg 8s ease-in-out infinite;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  /* La imagen pesa algo más que el texto: en una marca de ropa manda la prenda */
  grid-template-columns: 1fr 1.05fr;
  gap: var(--e-7);
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  padding: 0 var(--e-5);
}

.hero-text {
  display: flex;
  flex-direction: column;
  /* Alineado a la izquierda en escritorio: es la composición editorial de las
     marcas de moda. Centrado deja el texto flotando sin eje de lectura. */
  align-items: flex-start;
  justify-content: center;
  text-align: left;
}

.hero-logo-container {
  margin-bottom: var(--e-5);
  max-width: 550px;
  width: 100%;
}

.hero-marca {
  font-family: 'Allura', cursive;
  /* Baja de 7rem a 5rem: ahora es firma de marca, no titular. Deja aire
     para el h1 y quita peso a la tipografía más ornamental de las tres. */
  font-size: clamp(3.2rem, 8vw, 5rem);
  font-weight: 400;
  color: var(--accent-primary);
  margin: 0;
  line-height: 1;
  letter-spacing: 2px;
  transition: transform 0.6s var(--ease);
}

.hero-logo-container:hover .hero-marca {
  transform: scale(1.05);
}

.hero-subtitle {
  font-family: 'Fraunces', serif;
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--accent-botanical);
  letter-spacing: 0.25em;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

/* El titular real de la página: dice qué vendes y a qué tallas */
/* Titular de la página. Va al tamaño del párrafo a propósito: cumple su papel
   para Google y para quien lee, pero deja todo el peso visual a la caligrafía
   de "Valía". Se distingue del párrafo solo por el color y un grosor mínimo. */
.hero-titular {
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.7;
  color: var(--text-dark);
  margin: 0 0 var(--e-2);
  letter-spacing: 0.4px;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 60ch;
  margin: 0 auto 2.5rem;
  line-height: 1.9;
  font-weight: 300;
  letter-spacing: 0.4px;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--e-2);
  min-height: var(--tactil);
  padding: var(--e-3) var(--e-6);
  /* El degradado antes terminaba en nude y el texto blanco quedaba en 1,85:1,
     prácticamente invisible en ese extremo. Ahora se mueve entre dos malvas:
     conserva la profundidad y el texto se lee en todo el botón. */
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-primary-hondo) 100%);
  color: #fff;
  text-decoration: none;
  border-radius: var(--r-redondo);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.05em;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  box-shadow: 0 10px 30px rgba(139, 90, 90, 0.22);
}

.btn-cta:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(139, 90, 90, 0.32);
}

.btn-cta:active {
  transform: translateY(-1px);
}

.hero-image-frame {
  position: relative;
  aspect-ratio: 4/5;
  /* Antes estaba topado a 280px dentro de una columna del doble de ancho:
     la prenda quedaba como una miniatura. Ahora ocupa su columna entera. */
  width: 100%;
  max-width: 520px;
  margin-left: auto;
  border-radius: var(--r-l);
  overflow: hidden;
  box-shadow: var(--sombra-l);
  background: linear-gradient(135deg, rgba(217, 185, 155, 0.10) 0%, rgba(124, 130, 101, 0.05) 100%);
  transition: transform 0.6s var(--ease);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s var(--ease);
}

.hero-image-frame:hover .hero-image {
  transform: scale(1.04);
}

/* Filete botánico que enmarca la foto sin taparla */
.hero-image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: inherit;
  pointer-events: none;
}

/* ========== GALLERY ========== */
.gallery {
  padding: 60px 0;
  background: var(--bg-light);
}

.gallery-content {
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r-l);
  box-shadow: 0 30px 80px rgba(139, 90, 90, 0.15);
  border: 1px solid rgba(139, 90, 90, 0.08);
  transition: all 0.6s var(--ease);
}

.gallery-image:hover {
  transform: translateY(-8px);
  box-shadow: 0 50px 120px rgba(139, 90, 90, 0.2);
}

/* ========== CATALOG ========== */
.catalog {
  padding: 80px 0;
  background: var(--bg-light);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.about .section-title,
.contact .section-title {
  text-align: center;
  font-size: clamp(1.5rem, 4vw, 2rem);
  opacity: 0.9;
}

.section-header h2,
.section-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-light);
}

/* Nota personal del catálogo. Va en una caja discreta con un filete malva a la
   izquierda: se distingue del subtítulo sin gritar, y el ancho limitado evita
   líneas largas que cansan al leer. */
.catalogo-nota {
  /* 82 caracteres por línea: con los 243 del texto salen 3 líneas justas.
     Más estrecho se parte en 5-7 y queda apelmazado. */
  max-width: 82ch;
  margin: var(--e-4) auto 0;
  padding: var(--e-3) var(--e-4);
  border-left: 3px solid var(--accent-secondary);
  background: var(--bg-light);
  border-radius: 0 var(--r-s) var(--r-s) 0;
  font-size: 0.98rem !important;
  line-height: 1.75;
  text-align: left;
  color: var(--text-light);
}

.filter-strip {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.filter-btn {
  min-height: var(--tactil);
  padding: var(--e-2) var(--e-4);
  border: 2px solid var(--linea-fuerte);
  background: transparent;
  color: var(--text-dark);
  border-radius: var(--r-redondo);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s var(--ease);
}

.filter-btn:hover,
.filter-btn.is-active {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2.5rem;
}

.product-card {
  background: white;
  border-radius: var(--r-l);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.5s var(--ease);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.product-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 60px rgba(139, 90, 90, 0.12);
}

.product-img-wrapper {
  position: relative;
  /* Antes cuadrada. El vertical 3:4 es el estándar en moda: una prenda entra
     entera y se aprecia el largo, que es lo que decide la compra. */
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(212, 185, 155, 0.1) 0%, rgba(124, 130, 101, 0.05) 100%);
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}

.product-card:hover .product-img {
  transform: scale(1.08);
}

/* ===== Galería de fotos del producto ===== */

/* Las fotos secundarias se apilan encima de la principal, invisibles */
.product-img-alt {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s var(--ease), transform 0.5s var(--ease);
  pointer-events: none;
}

/* La que esté marcada como activa es la que se ve */
.product-img.esta-activa {
  opacity: 1;
  z-index: 1;
}

.product-img-wrapper.tiene-galeria .product-img:not(.esta-activa) {
  opacity: 0;
}

/* Puntitos indicadores */
.galeria-puntos {
  position: absolute;
  bottom: 0.9rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  z-index: 2;
}

.galeria-puntos .punto {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  transition: all 0.25s var(--ease);
}

.galeria-puntos .punto.activo {
  background: #fff;
  width: 20px;
  border-radius: var(--r-s);
}

/* Pista de "se puede ampliar", solo al pasar por encima.
   Va en .ampliable (todas las fichas) y no en .tiene-galeria, porque ampliar
   funciona igual tengan una foto o cinco. */
.ampliable::after {
  content: "Ampliar";
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  z-index: 2;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-dark);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: var(--r-l);
  opacity: 0;
  transform: translateY(-4px);
  transition: all 0.25s var(--ease);
  pointer-events: none;
}

.product-card:hover .ampliable::after {
  opacity: 1;
  transform: none;
}

.ampliable {
  cursor: zoom-in;
}

/* Cuando se llega desde el enlace del mensaje de WhatsApp, la ficha en
   cuestión se destaca unos segundos para que se vea de cuál se habla. */
.product-card:target {
  animation: destacarProducto 2.5s var(--ease);
}

@keyframes destacarProducto {
  0%, 60% {
    box-shadow: 0 0 0 4px var(--accent-primary), var(--sombra-l);
    transform: translateY(-6px);
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
    transform: none;
  }
}

/* El menú fijo taparía la ficha al saltar al enlace */
.product-card {
  scroll-margin-top: 110px;
}

/* ===== Colores disponibles en la ficha ===== */
.colores-producto {
  display: flex;
  align-items: center;
  gap: var(--e-1);
  flex-wrap: wrap;
  margin-bottom: var(--e-4);
}

.colores-titulo {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-right: var(--e-1);
}

.color-punto {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  /* El filete hace visible el blanco y el crudo sobre fondo claro */
  border: 1px solid rgba(74, 59, 53, 0.22);
  display: inline-block;
  transition: transform 0.2s var(--ease);
}

.color-punto:hover {
  transform: scale(1.25);
}

/* Visible solo para lectores de pantalla: un círculo de color sin texto
   no le dice nada a quien no ve la página. */
.solo-lectores {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.catalogo-vacio {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-light);
  font-size: 1.05rem;
}

/* ===== Visor de fotos a pantalla completa ===== */
.visor {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(30, 24, 22, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.visor.abierto {
  display: flex;
  animation: visorEntra 0.25s ease;
}

@keyframes visorEntra {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.visor-imagen {
  max-width: min(90vw, 700px);
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--r-m);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.visor-cerrar,
.visor-flecha {
  position: absolute;
  background: rgba(255, 255, 255, 0.14);
  border: none;
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.visor-cerrar:hover,
.visor-flecha:hover {
  background: rgba(255, 255, 255, 0.3);
}

.visor-cerrar { top: 1.2rem; right: 1.2rem; }
.visor-flecha.atras    { left: 1.2rem; }
.visor-flecha.adelante { right: 1.2rem; }

.visor-contador {
  position: absolute;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

@media (max-width: 540px) {
  .visor-flecha.atras    { left: 0.5rem; }
  .visor-flecha.adelante { right: 0.5rem; }
  .visor { padding: 1rem; }
}

.product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--accent-primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--r-s);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.product-badge.new {
  background: var(--accent-botanical);
}

.product-info {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-info h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.product-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.product-price {
  display: flex;
  gap: 0.8rem;
  align-items: baseline;
  margin-bottom: 1rem;
}

.price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.price-old {
  font-size: 0.95rem;
  color: var(--text-light);
  text-decoration: line-through;
}

.sizes {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.sizes span {
  font-size: 0.8rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  color: var(--text-light);
  background: var(--bg-light);
  /* Para que "XXXL" no se parta y una "S" no quede más estrecha que un "42" */
  white-space: nowrap;
  min-width: 1.6rem;
  text-align: center;
}

.btn-whatsapp {
  /* Empuja el boton al fondo de la ficha. Sin esto, si un producto tiene el
     nombre en dos lineas y el de al lado en una, sus botones quedan a
     alturas distintas dentro de la misma fila. */
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: auto;
  padding: 0.8rem 1.2rem;
  background: var(--accent-primary);
  color: white;
  text-decoration: none;
  border-radius: var(--r-s);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s var(--ease);
  border: none;
  cursor: pointer;
}

.btn-whatsapp:hover {
  background: var(--accent-secondary);
  transform: translateY(-2px);
}

.icon-whatsapp {
  width: 18px;
  height: 18px;
}

/* ========== ABOUT ========== */
.about {
  padding: 80px 0;
  background: var(--bg);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-content p {
  font-size: 1.05rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.about-content strong {
  color: var(--accent-primary);
  font-weight: 600;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.feature {
  background: white;
  padding: 2rem;
  border-radius: var(--r-m);
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  transition: all 0.4s var(--ease);
  border: 1px solid var(--line);
}

.feature:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(139, 90, 90, 0.1);
}

/* Iconos de trazo en lugar de emojis: el emoji lo dibuja el sistema operativo,
   así que cambia de aspecto en cada dispositivo y no respeta la paleta.
   Un SVG heredando currentColor va siempre en el malva de la marca. */
.feature-icon {
  margin-bottom: var(--e-3);
  display: flex;
  justify-content: center;
  color: var(--accent-primary);
}

.feature-icon svg {
  width: 34px;
  height: 34px;
}

.nav-chat svg {
  display: block;
  color: var(--text-dark);
  transition: color 0.2s var(--ease);
}

.nav-chat:hover svg {
  color: var(--accent-primary);
}

.feature h3 {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.feature p {
  font-size: 0.95rem;
  color: var(--text-light);
}

.video-container {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--r-s);
}

/* ========== CONTACT ========== */
.contact {
  padding: 80px 0;
  background: var(--bg-light);
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 3rem auto 0;
}

.contact-card {
  background: white;
  padding: 2rem;
  border-radius: var(--r-m);
  text-decoration: none;
  color: inherit;
  text-align: center;
  transition: all 0.4s var(--ease);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--line);
}

.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(139, 90, 90, 0.1);
}

.contact-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  display: block;
  transition: transform 0.3s var(--ease);
}

.contact-card:hover .contact-icon {
  transform: scale(1.2);
}

.whatsapp-card .contact-icon {
  color: #25D366;
}

.email-card .contact-icon {
  color: var(--accent-primary);
}

/* ========== VIDEO SECTION ========== */
.video-section {
  padding: 50px 0;
  background: transparent;
}

.video-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.video-section .section-title {
  margin-bottom: 1.5rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  opacity: 0.85;
}

.video-wrapper {
  position: relative;
  border-radius: var(--r-m);
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(139, 90, 90, 0.06);
  background: rgba(217, 185, 155, 0.02);
  border: 1px solid rgba(139, 90, 90, 0.04);
  transition: all 0.5s var(--ease);
  opacity: 0.88;
}

.video-wrapper:hover {
  opacity: 1;
  box-shadow: 0 15px 35px rgba(139, 90, 90, 0.09);
}

.feature-video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r-m);
}

.contact-card h3 {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.contact-card p {
  font-size: 1rem;
  color: var(--text-light);
  font-weight: 500;
}

.social-section {
  text-align: center;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--line);
}

.social-section h3 {
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: 2rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.5rem;
  background: white;
  border: 2px solid var(--line);
  border-radius: var(--r-redondo);
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  transition: all 0.3s var(--ease);
  cursor: pointer;
}

.social-btn:hover {
  transform: translateY(-4px);
  border-color: var(--accent-primary);
}

.social-btn svg {
  width: 24px;
  height: 24px;
}

.social-btn.instagram:hover {
  color: #E4405F;
}

.social-btn.tiktok:hover {
  color: #000;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--bg);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--line);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.logo-svg-footer {
  height: 70px;
  width: auto;
}

.footer-nav {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  text-align: center;
}

.footer-nav a {
  font-size: 0.95rem;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s var(--ease);
  /* En el pie los enlaces van juntos: sin altura suficiente se pulsa el de al lado */
  display: inline-flex;
  align-items: center;
  min-height: var(--tactil);
  padding: 0 var(--e-2);
}

.footer-nav a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  text-align: center;
  line-height: 1.8;
}

.footer-thanks {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  font-weight: 400;
  font-style: italic;
  color: var(--accent-primary);
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.footer-bottom p:not(.footer-thanks) {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ========== CHATBOT ========== */
.chatbot {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 320px;
  max-height: 60vh;
  background: white;
  border-radius: var(--r-m);
  border: 3px solid var(--accent-primary);
  box-shadow: 0 20px 60px rgba(139, 90, 90, 0.2);
  display: flex;
  flex-direction: column;
  z-index: 500;
  transform: translateY(120%);
  transition: transform 0.4s var(--ease);
}

.chatbot.is-open {
  transform: translateY(0);
}

.chatbot-header {
  padding: 1.2rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-primary);
}

.chatbot-close {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--text-light);
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--tactil);
  min-height: var(--tactil);
  border-radius: var(--r-redondo);
}

.chatbot-close:hover {
  color: var(--text-dark);
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.message {
  font-size: 0.9rem;
  line-height: 1.5;
}

.message.bot {
  color: var(--text-dark);
}

.message.user {
  align-self: flex-end;
  background: var(--accent-primary);
  color: white;
  padding: 0.6rem 1rem;
  border-radius: var(--r-m);
  max-width: 80%;
}

.chatbot-input {
  padding: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 0.5rem;
}

.chatbot-input input {
  flex: 1;
  min-height: var(--tactil);
  border: 1px solid var(--linea-fuerte);
  background: var(--bg-light);
  border-radius: var(--r-s);
  padding: var(--e-2) var(--e-3);
  /* 16px evita que el movil haga zoom al enfocar el campo */
  font-size: 16px;
  color: var(--text-dark);
  transition: border-color 0.3s;
}

.chatbot-input input:focus {
  border-color: var(--accent-primary);
}

.chatbot-input button {
  background: var(--accent-primary);
  border: none;
  color: white;
  width: var(--tactil);
  height: var(--tactil);
  flex-shrink: 0;
  border-radius: var(--r-s);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background 0.3s;
}

.chatbot-input button:hover {
  background: var(--accent-secondary);
}

/* ========== LEGAL PAGE ========== */
.legal-section {
  padding: 100px 0 60px;
  background: var(--bg-light);
  font-weight: 400;
}

.legal-container {
  max-width: 800px;
}

.legal-section h1 {
  font-family: 'Fraunces', serif;
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--accent-primary);
  margin-bottom: 2rem;
  margin-top: 0;
}

.legal-section h2 {
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--accent-primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.legal-section p {
  font-weight: 400;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.legal-section ul {
  font-weight: 400;
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.legal-section ul li {
  margin-bottom: 0.8rem;
  line-height: 1.8;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .hero-inner {
    /* Al apilarse, la foto va primero: es lo que engancha */
    grid-template-columns: 1fr;
    gap: var(--e-6);
  }

  /* Apilado, el texto alineado a la izquierda quedaría descolgado */
  .hero-text {
    text-align: center;
    align-items: center;
    order: 2;
  }

  .hero-image-frame {
    order: 1;
    max-width: 420px;
    margin: 0 auto;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .header {
    height: 70px;
    padding: 0 1rem;
  }

  .container-header {
    padding: 0 1rem;
    gap: 1rem;
  }

  .nav {
    display: none;
  }

  .hero {
    margin-top: 70px;
    padding: 40px 1rem;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-tagline {
    font-size: 1.3rem;
  }

  .products-grid {
    /* Dos por fila, como en cualquier tienda de moda. Con una sola, para ver
       36 prendas hay que hacer el triple de scroll y cansa. */
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }

  .footer-nav {
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
  }

  .chatbot {
    width: 100%;
    height: auto;
    max-height: 50vh;
    bottom: 0;
    right: 0;
    left: 0;
    border-radius: 16px 16px 0 0;
  }
}

@media (max-width: 540px) {
  .section-header h2,
  .section-title {
    font-size: 1.8rem;
  }

  .filter-strip {
    gap: 0.5rem;
  }

  .filter-btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }

  .contact-cards {
    grid-template-columns: 1fr;
  }

  .chatbot {
    width: calc(100% - 2rem);
    margin: 0 1rem;
  }
}

/* ========== EXTRA MOBILE BREAKPOINTS ========== */
@media (max-width: 480px) {
  .header {
    height: 65px;
    padding: 0 0.8rem;
  }

  .logo-svg {
    height: 50px;
  }

  .nav {
    display: none;
  }

  .nav-chat {
    font-size: 1.1rem;
    padding: 0.3rem;
  }

  .hero {
    margin-top: 65px;
    padding: 30px 1rem;
  }

  .hero-inner {
    padding: 0;
  }

  .hero-marca {
    font-size: clamp(2.5rem, 10vw, 5rem);
  }

  .hero-description {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .btn-cta {
    padding: 0.9rem 2rem;
    font-size: 0.95rem;
  }

  .hero-image-frame {
    /* Sin tope de altura: choca con la proporción 4:5 y deja la foto recortada.
       Se limita el ancho y la altura sale sola. */
    max-width: 320px;
  }

  .container {
    padding: 0 1rem;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .filter-strip {
    gap: 0.5rem;
  }

  .filter-btn {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }

  /* A dos columnas cada ficha mide ~165px: hay que apretar el contenido
     o el nombre y el precio se amontonan. */
  .product-info {
    padding: 0.9rem 0.8rem;
  }

  .product-info h3 {
    font-size: 0.92rem;
    line-height: 1.35;
  }

  .product-desc {
    font-size: 0.78rem;
    /* Como mucho dos lineas: si no, fichas de alturas distintas */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-price .price {
    font-size: 1.05rem;
  }

  .sizes {
    gap: 0.25rem;
    margin-bottom: 0.9rem;
  }

  .sizes span {
    font-size: 0.68rem;
    padding: 0.25rem 0.4rem;
    min-width: 1.3rem;
  }

  .colores-titulo { display: none; }   /* los circulos ya se entienden solos */

  .color-punto { width: 13px; height: 13px; }

  /* A dos columnas el boton mide ~130px: "Contacta por WhatsApp" se parte en
     tres lineas y queda un tocho de 96px de alto. Se recorta a "WhatsApp",
     que en una ficha pequena se entiende igual de bien. */
  .solo-ancho { display: none; }

  .btn-whatsapp {
    font-size: 0.82rem;
    padding: 0.75rem 0.4rem;
    gap: 0.2rem;
    white-space: nowrap;
  }

  .product-badge {
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.3rem 0.55rem;
    font-size: 0.68rem;
  }

  .product-card {
    border-radius: var(--r-m);
  }

  .product-info {
    padding: 1rem;
  }

  .product-info h3 {
    font-size: 1rem;
  }

  .sizes {
    gap: 0.4rem;
  }

  .sizes span {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
  }

  .btn-whatsapp {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
  }

  .contact-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .contact-card {
    padding: 1.2rem;
  }

  .contact-icon {
    width: 40px;
    height: 40px;
  }

  .social-links {
    flex-direction: column;
    gap: 1rem;
  }

  .social-btn {
    width: 100%;
  }

  .footer-bottom {
    line-height: 1.6;
  }

  .footer-thanks {
    font-size: 1.1rem;
  }

  .chatbot {
    width: calc(100% - 1rem);
    margin: 0 0.5rem;
    height: auto;
    max-height: 45vh;
  }

  .legal-section {
    padding: 70px 0 40px;
  }

  .legal-section h1 {
    font-size: 1.8rem;
  }

  .legal-section h2 {
    font-size: 1rem;
  }
}

@media (max-width: 360px) {
  .hero-marca {
    font-size: clamp(2rem, 8vw, 4rem);
  }

  .section-header h2 {
    font-size: 1.3rem;
  }

  .filter-btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
  }

  .chatbot {
    width: calc(100% - 0.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
