/* =========================================================
   Eva.intim — Lencería e Intimidad
   base.css: estilos comunes a todas las páginas
   (pensado primero para celular, 375–430 px)
   ========================================================= */

/* ---------- Variables ---------- */
:root {
  --oro: #B58A3E;
  --oro-oscuro: #9A7333;      /* dorado para textos grandes sobre crema */
  --oro-texto: #846429;       /* dorado legible para textos chicos */
  --oro-claro: #D9BC85;       /* dorado sobre fondo oscuro */
  --carbon: #3A3A44;
  --crema: #F7EFE6;
  --rosa: #EFDCD3;
  --blanco: #FFFFFF;
  --gris: #625E68;            /* textos secundarios */
  --gris-claro: #77727B;      /* códigos y notas */

  --linea: rgba(181, 138, 62, .28);
  --linea-suave: rgba(181, 138, 62, .16);

  --radio: 12px;
  --radio-chico: 10px;
  --sombra: 0 1px 2px rgba(58, 58, 68, .04), 0 10px 28px -16px rgba(58, 58, 68, .18);
  --sombra-alta: 0 2px 4px rgba(58, 58, 68, .04), 0 22px 40px -18px rgba(58, 58, 68, .28);

  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "Jost", "Futura", "Century Gothic", "Segoe UI", sans-serif;

  --cabecera-alto: 56px;
  --barra-alto: 64px;                                            /* barra inferior (celular) */
  --abajo: calc(var(--barra-alto) + env(safe-area-inset-bottom, 0px));
  --margen: 16px;
  --ancho: 1200px;
  --seccion: 48px;

  --grano: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .23 0 0 0 0 .2 0 0 0 0 .2 0 0 0 .055 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (min-width: 600px) { :root { --margen: 24px; --seccion: 56px; } }
@media (min-width: 900px) { :root { --cabecera-alto: 80px; --barra-alto: 0px; --margen: 32px; --seccion: 88px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

/* El sitio es solo claro: así el modo oscuro del celular no oscurece las fotos ni los fondos blancos */
:root { color-scheme: only light; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--cabecera-alto) + 8px);
}

body {
  margin: 0;
  min-height: 100vh;
  padding-bottom: var(--abajo);   /* que la barra inferior no tape el contenido */
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--carbon);
  background: var(--crema);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgba(181, 138, 62, .12);
  overflow-x: hidden;
}

main { display: block; padding-top: var(--cabecera-alto); }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
}

svg {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--oro); outline-offset: 3px; border-radius: 4px; }

.visualmente-oculto {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.contenedor {
  width: 100%;
  max-width: calc(var(--ancho) + var(--margen) * 2);
  margin-inline: auto;
  padding-left: max(var(--margen), env(safe-area-inset-left, 0px));
  padding-right: max(var(--margen), env(safe-area-inset-right, 0px));
}

.seccion { position: relative; padding-block: var(--seccion); }

/* ---------- Detalles: divisor dorado con destello ---------- */
.divisor {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(200px, 64%);
  margin-block: 14px;
  color: var(--oro);
}
.divisor span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(181, 138, 62, 0), var(--oro));
}
.divisor span:last-child { background: linear-gradient(90deg, var(--oro), rgba(181, 138, 62, 0)); }
.divisor svg { width: 12px; height: 12px; fill: currentColor; stroke: none; }
.divisor--centro { margin-inline: auto; }

.antetitulo {
  font-family: var(--sans);
  font-weight: 500;
  font-size: .72rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--oro-texto);
}

.etiqueta {
  display: inline-block;
  padding: .5em 1em .45em;
  font-family: var(--sans);
  font-weight: 500;
  font-size: .66rem;
  line-height: 1;
  letter-spacing: .2em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--oro-texto);
  background: rgba(255, 255, 255, .8);
  border: 1px solid var(--oro);
  border-radius: 999px;
}

/* ---------- Datos que faltan confirmar (vista previa para el dueño) ----------
   Cada dato pendiente se escribe: <span class="por-confirmar">Por confirmar</span>
   Lleva !important para que se vea en rojo aunque el texto tenga otro color. */
.por-confirmar { color: #C62828 !important; font-weight: 500; }

/* Encabezado de sección */
.encabezado { text-align: center; margin-bottom: 24px; }
.encabezado__titulo { margin-top: 6px; font-size: clamp(1.9rem, 4vw + 1rem, 2.8rem); }
.encabezado .divisor { margin-bottom: 0; }

/* Título de página (páginas internas) */
.pagina-cabeza {
  padding-top: 28px;
  padding-bottom: 20px;
  text-align: center;
}
.pagina-cabeza__titulo { margin-top: 6px; font-size: clamp(2.2rem, 5vw + 1rem, 3.4rem); }
.pagina-cabeza .etiqueta { margin-top: 12px; }
.pagina-cabeza__texto { margin-top: 2px; color: var(--gris); }

@media (min-width: 900px) {
  .pagina-cabeza { padding-top: 56px; padding-bottom: 32px; }
  .encabezado { margin-bottom: 40px; }
}

/* ---------- Pastillas de filtro (juguetes y lencería) ---------- */
.filtro {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  flex-shrink: 0;
  min-height: 44px;
  padding: .5em 1.05em;
  font-family: var(--sans);
  font-size: .9rem;
  white-space: nowrap;
  color: var(--carbon);
  background: var(--blanco);
  border: 1px solid rgba(181, 138, 62, .4);
  border-radius: 999px;
  scroll-snap-align: start;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.filtro:hover { border-color: var(--oro); }
.filtro__cantidad { font-size: .72rem; color: var(--oro-texto); font-variant-numeric: tabular-nums; }
.filtro[aria-pressed="true"] { background: var(--carbon); border-color: var(--carbon); color: var(--crema); }
.filtro[aria-pressed="true"] .filtro__cantidad { color: var(--oro-claro); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65em;
  min-height: 52px;
  padding: .85em 1.6em;
  font-family: var(--sans);
  font-weight: 500;
  font-size: .82rem;
  line-height: 1.25;
  letter-spacing: .13em;
  text-transform: uppercase;
  text-align: center;
  border: 1px solid transparent;
  border-radius: var(--radio-chico);
  transition: background-color .3s ease, color .3s ease, border-color .3s ease, transform .2s ease;
}
.btn__icono { width: 1.4em; height: 1.4em; stroke-width: 1.5; }
.btn:active { transform: scale(.98); }

.btn--primario { background: var(--carbon); color: var(--crema); }
.btn--primario:hover { background: var(--oro); color: var(--blanco); }

.btn--secundario { background: rgba(255, 255, 255, .4); color: var(--oro-texto); border-color: var(--oro); }
.btn--secundario:hover { background: var(--oro); color: var(--blanco); }

.btn--grande { min-height: 58px; font-size: .86rem; }
.btn--ancho { width: 100%; }

.icono-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--oro);
  border: 1px solid transparent;
  background: transparent;
  transition: color .3s ease, background-color .3s ease, border-color .3s ease;
}
.icono-btn svg { width: 22px; height: 22px; }
.icono-btn:hover { background: rgba(181, 138, 62, .1); border-color: var(--linea); }

/* =========================================================
   Cabecera (celular: delgada, logo centrado, se oculta al bajar)
   ========================================================= */
.cabecera {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--cabecera-alto);
  border-bottom: 1px solid var(--linea-suave);
  transition: transform .35s ease, border-color .35s ease;
}
/* El desenfoque va en un pseudo-elemento para no atrapar elementos fijos */
.cabecera::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(247, 239, 230, .88);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  transition: opacity .35s ease;
}

.cabecera__contenido {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.cabecera__logo { display: flex; align-items: center; min-height: 44px; border-radius: 6px; transition: opacity .35s ease; }
.cabecera__logo img { height: 42px; width: auto; }

.menu { display: none; }

@media (max-width: 899px) {
  .cabecera-oculta .cabecera { transform: translateY(-100%); }
}

/* Inicio: arriba de todo la cabecera es transparente y el logo grande del hero la reemplaza */
.js .pagina-inicio:not(.paso-hero) .cabecera { border-bottom-color: transparent; }
.js .pagina-inicio:not(.paso-hero) .cabecera::before { opacity: 0; }
.js .pagina-inicio:not(.paso-hero) .cabecera__logo { opacity: 0; pointer-events: none; }

/* Cabecera — computadora: menú completo */
@media (min-width: 900px) {
  .cabecera__contenido { justify-content: space-between; gap: 24px; }
  .cabecera__logo img { height: 58px; }

  .menu { display: flex; align-items: center; gap: 22px; }
  .menu__lista { display: flex; gap: 24px; }
  .menu__lista a {
    position: relative;
    display: inline-block;
    padding: 10px 0;
    font-size: .74rem;
    letter-spacing: .13em;
    text-transform: uppercase;
    transition: color .3s ease;
  }
  .menu__lista a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 4px;
    height: 1px;
    background: var(--oro);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s ease;
  }
  .menu__lista a:hover,
  .menu__lista a[aria-current="page"] { color: var(--oro-texto); }
  .menu__lista a:hover::after,
  .menu__lista a[aria-current="page"]::after { transform: scaleX(1); }

  .menu__redes { display: flex; gap: 2px; padding-left: 16px; border-left: 1px solid var(--linea); }
}

@media (min-width: 1100px) {
  .menu { gap: 28px; }
  .menu__lista { gap: 30px; }
  .menu__lista a { font-size: .78rem; letter-spacing: .14em; }
}

/* =========================================================
   Barra inferior estilo app (solo celular)
   ========================================================= */
.barra-inferior {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  height: var(--abajo);
  padding: 0 max(4px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(4px, env(safe-area-inset-left, 0px));
  border-top: 1px solid rgba(181, 138, 62, .4);
}
.barra-inferior::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(247, 239, 230, .9);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
}

.barra-inferior__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  min-height: 44px;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .03em;
  line-height: 1.1;
  color: var(--gris);
  transition: color .25s ease;
}
.barra-inferior__item svg { width: 24px; height: 24px; stroke-width: 1.35; transition: transform .25s ease; }
.barra-inferior__item span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.barra-inferior__item:active svg { transform: scale(.9); }

.barra-inferior__item[aria-current="page"] { color: var(--oro-texto); }
.barra-inferior__item[aria-current="page"] svg { color: var(--oro); stroke-width: 1.6; }
.barra-inferior__item[aria-current="page"]::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  width: 28px;
  height: 2px;
  background: var(--oro);
  border-radius: 0 0 2px 2px;
  transform: translateX(-50%);
}

@media (min-width: 900px) { .barra-inferior { display: none; } }

/* =========================================================
   Tarjeta de producto (inicio, juguetes, lencería)
   ========================================================= */
.grilla {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 600px) { .grilla { gap: 16px; } }
@media (min-width: 900px) { .grilla { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } }
@media (min-width: 1180px) { .grilla { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; } }

.producto {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--blanco);
  border: 1px solid var(--linea-suave);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  overflow: hidden;
  cursor: pointer;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease, border-color .35s ease;
}
@media (hover: hover) {
  .producto:hover { transform: translateY(-3px); box-shadow: var(--sombra-alta); border-color: rgba(181, 138, 62, .5); }
  .producto:hover .producto__foto img { transform: scale(1.04); }
}

.producto__foto {
  aspect-ratio: 1 / 1;
  background: var(--blanco);
  overflow: hidden;
}
.producto__foto img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}

.producto__info {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 10px 10px 12px;
  border-top: 1px solid var(--linea-suave);
}

.producto__nombre {
  min-height: 2.4em;            /* reserva 2 líneas para que las tarjetas queden parejas */
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.2;
}
.producto__nombre button {
  display: block;
  width: 100%;
  padding: 0;
  font: inherit;
  text-align: left;
  color: inherit;
  background: none;
  border: 0;
  border-radius: 4px;
}
.recorte-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.producto__codigo {
  margin-top: 2px;
  margin-bottom: 12px;
  font-size: .75rem;
  letter-spacing: .04em;
  color: var(--gris-claro);
}

.producto__precio {
  margin-top: auto;
  padding-top: 6px;
  font-size: .78rem;
  color: var(--gris);
}
.producto__precio strong {
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--carbon);
}

.producto__wa {
  margin-top: auto !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45em;
  min-height: 44px;
  padding: .4em .6em;
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  color: var(--oro-texto);
  border: 1px solid var(--oro);
  border-radius: var(--radio-chico);
  transition: background-color .3s ease, color .3s ease;
}
.producto__wa svg { width: 19px; height: 19px; stroke-width: 1.5; }
.producto__wa:hover { background: var(--oro); color: var(--blanco); }
.solo-ancho { display: none; }

@media (min-width: 600px) {
  .producto__info { padding: 14px 14px 16px; }
  .producto__nombre { font-size: 1.18rem; }
  .solo-ancho { display: inline; }
}

/* =========================================================
   Pie de página (corto)
   ========================================================= */
.pie {
  padding: 32px 0 76px;   /* abajo: lugar para el botón flotante */
  background: var(--crema);
  border-top: 1px solid var(--linea);
}

.pie__contenido {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.pie__marca { display: block; border-radius: 6px; }
.pie__logo { width: 96px; height: auto; }
.pie__frase { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--gris); }

.pie__menu { display: none; }
.pie__redes { display: flex; gap: 8px; }
.pie__redes .icono-btn { border-color: var(--linea); }

.pie__legal p {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gris);
}
.pie__legal p + p { margin-top: 4px; }

@media (min-width: 900px) {
  .pie { padding: 44px 0 32px; }
  .pie__contenido {
    grid-template-columns: auto auto 1fr auto;
    align-items: center;
    justify-items: start;
    gap: 16px 28px;
    text-align: left;
  }
  .pie__frase { padding-left: 24px; border-left: 1px solid var(--linea); }
  .pie__menu {
    display: flex;
    flex-wrap: wrap;
    justify-self: center;
    gap: 4px 22px;
  }
  .pie__menu a {
    padding: 8px 0;
    font-size: .74rem;
    letter-spacing: .13em;
    text-transform: uppercase;
    transition: color .3s ease;
  }
  .pie__menu a:hover, .pie__menu a[aria-current="page"] { color: var(--oro-texto); }
  .pie__legal {
    grid-column: 1 / -1;
    justify-self: stretch;
    display: flex;
    justify-content: center;
    gap: 12px 32px;
    padding-top: 18px;
    border-top: 1px solid var(--linea-suave);
  }
  .pie__legal p + p { margin-top: 0; }
}

/* =========================================================
   Botón flotante de WhatsApp (arriba de la barra inferior)
   ========================================================= */
.wa-flotante {
  position: fixed;
  right: max(14px, env(safe-area-inset-right, 0px));
  bottom: calc(var(--abajo) + 14px);
  z-index: 40;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: var(--blanco);
  background: var(--oro);
  border-radius: 50%;
  box-shadow: 0 12px 26px -10px rgba(58, 58, 68, .5);
  transition: background-color .3s ease, transform .3s ease;
}
.wa-flotante svg { width: 27px; height: 27px; stroke-width: 1.5; }
.wa-flotante::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--oro);
  border-radius: 50%;
  opacity: 0;
  animation: halo 3s ease-out 2s 3;
  pointer-events: none;
}
.wa-flotante:hover { background: var(--carbon); }
.wa-flotante:active { transform: scale(.94); }

@media (min-width: 900px) {
  .wa-flotante { right: 28px; bottom: 28px; width: 60px; height: 60px; }
}

/* =========================================================
   Animaciones
   ========================================================= */
.js [data-revelar] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease var(--retraso, 0s), transform .6s cubic-bezier(.2, .7, .2, 1) var(--retraso, 0s);
}
.js [data-revelar].visible { opacity: 1; transform: none; }

@keyframes entrar {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes halo {
  0% { opacity: .9; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.6); }
}
@keyframes titilar {
  0%, 100% { opacity: .25; transform: scale(.7) rotate(0deg); }
  50% { opacity: 1; transform: scale(1) rotate(45deg); }
}

/* Accesibilidad: menos movimiento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
  }
  .js [data-revelar] { opacity: 1; transform: none; }
}

/* Ajustes de revisión: tarjetas más limpias */
.producto__nombre { margin-bottom: 12px; }
.producto__codigo { margin-top: -8px; }

/* Botón de producto en una sola línea en celulares chicos */
.producto__wa span { white-space: nowrap; }
@media (max-width: 389px) { .producto__wa { font-size: .8rem; gap: .35em; padding-inline: .4em; } .producto__wa svg { width: 16px; height: 16px; } }
