/* ============================================================
   TIENDA LA ULTIMA GEMA - Estilos
   Diseño: oscuro cálido de la marca, tarjetas limpias, 100% responsivo
   ============================================================ */
:root {
  --fondo: #262019;
  --fondo-suave: #2f2820;
  --fondo-banda: #322a20;
  --fondo-carta: #ffffff;
  --crema: #f6f1ea;
  --crema-suave: rgba(246, 241, 234, .65);
  --tinta: #1d1a17;
  --gris: #6d6660;
  --dorado: #c9a86a;
  --dorado-oscuro: #b3945a;
  --whatsapp: #1fa855;
  --peligro: #c0453a;
  --radio: 20px;
  --sombra: 0 10px 30px rgba(0, 0, 0, .35);
  --transicion: .22s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Poppins", sans-serif;
  background: var(--fondo);
  color: var(--crema);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }
a { color: inherit; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

.serif {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
}

/* ---------- Barra de anuncio ---------- */
.anuncio {
  background: var(--dorado);
  color: #fff;
  text-align: center;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: .45rem 1rem;
}

/* ---------- Cabecera fija ---------- */
.cabecera {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(38, 32, 25, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(246, 241, 234, .1);
}
.cabecera .logo {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.cabecera nav {
  display: flex;
  gap: clamp(.55rem, 1.5vw, 1.25rem);
}
.cabecera nav a {
  text-decoration: none;
  font-size: .84rem;
  font-weight: 500;
  color: var(--crema-suave);
  white-space: nowrap;
  transition: color var(--transicion);
}
.cabecera nav a:hover { color: var(--dorado); }
.cabecera-acciones { display: flex; align-items: center; gap: .55rem; }
.menu-boton {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(246, 241, 234, .25);
  background: transparent;
  color: var(--crema);
  font-size: 1.15rem;
}
.boton-carrito {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(246, 241, 234, .25);
  background: transparent;
  color: var(--crema);
  font-size: 1.15rem;
  transition: border-color var(--transicion), background var(--transicion);
}
.boton-carrito:hover { border-color: var(--dorado); background: rgba(255, 255, 255, .06); }
.boton-carrito .badge {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--dorado);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.boton-carrito .badge:empty { display: none; }
@media (max-width: 1080px) {
  .cabecera nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(38, 32, 25, .97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(246, 241, 234, .12);
    padding: .4rem 0 .6rem;
  }
  .cabecera nav.abierto { display: flex; }
  .cabecera nav a {
    padding: .8rem clamp(1rem, 4vw, 2.5rem);
    font-size: .92rem;
  }
  .cabecera nav a:hover { background: rgba(255, 255, 255, .05); }
  .menu-boton { display: grid; place-items: center; }
}

/* ---------- Héroe ---------- */
.heroe {
  position: relative;
  min-height: calc(100svh - 118px); /* el JS lo ajusta al alto exacto */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(2rem, 6vw, 4.5rem);
  background:
    linear-gradient(rgba(30, 24, 18, .38), rgba(38, 32, 25, .88)),
    url("../imagenes/portada.jpg") center 22% / cover no-repeat;
  overflow: hidden;
}
.heroe::before {
  content: "";
  position: absolute;
  top: 8%;
  right: 7%;
  width: min(32vw, 280px);
  height: min(34vh, 280px);
  border-top: 1.5px solid rgba(255, 255, 255, .8);
  border-right: 1.5px solid rgba(255, 255, 255, .8);
}
.heroe .contenido { max-width: 720px; }
.heroe-foto { display: none; }
.heroe h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--dorado);
}
.heroe .micro {
  margin-top: 1.6rem;
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .06em;
  color: rgba(246, 241, 234, .55);
}
.indicador {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: 26px;
  height: 44px;
  border: 1.5px solid rgba(246, 241, 234, .4);
  border-radius: 999px;
  display: none;
  justify-items: center;
  align-items: start;
  padding-top: 8px;
  z-index: 2;
}
.indicador span {
  width: 4px;
  height: 9px;
  border-radius: 2px;
  background: var(--dorado);
  animation: bajar-scroll 1.7s ease-in-out infinite;
}
@keyframes bajar-scroll {
  0% { transform: translateY(0); opacity: 1; }
  75% { transform: translateY(13px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* En pantallas grandes: composición premium — texto editorial a la
   izquierda y la foto en arco de boutique con anillo dorado. */
@media (min-width: 920px) {
  .heroe {
    background:
      radial-gradient(1000px 700px at 76% 38%, rgba(201, 168, 106, .17), transparent 62%),
      radial-gradient(720px 520px at 8% 88%, rgba(201, 168, 106, .09), transparent 65%),
      var(--fondo);
    display: grid;
    grid-template-columns: minmax(460px, 1.05fr) minmax(380px, .95fr);
    align-items: center;
    justify-content: center;
    column-gap: clamp(1.5rem, 4vw, 4rem);
    padding: clamp(2rem, 4vw, 3.2rem) clamp(2.5rem, 6vw, 6.5rem) clamp(3.4rem, 7vh, 5rem);
  }
  .heroe::before, .heroe::after { display: none; }
  .heroe .contenido { justify-self: start; max-width: 620px; }
  .heroe .contenido h1 { font-size: clamp(2.6rem, 4.8vw, 4.8rem); }
  .heroe .contenido .marca { font-size: clamp(1rem, 1.6vw, 1.4rem); }
  .heroe-foto { display: flex; justify-content: center; }
  .arco {
    position: relative;
    height: clamp(420px, 66vh, 700px);
    aspect-ratio: .78;
  }
  .arco::before {
    content: "";
    position: absolute;
    inset: 0;
    transform: translate(26px, 26px);
    border: 1.5px solid rgba(201, 168, 106, .55);
    border-radius: 34px;
  }
  .arco img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
    border-radius: 34px;
    box-shadow: 0 40px 90px rgba(0, 0, 0, .55);
  }
  .sello {
    position: absolute;
    left: -14%;
    bottom: 8%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: .15rem;
    background: rgba(31, 26, 20, .78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(201, 168, 106, .45);
    border-radius: 16px;
    padding: .75rem 1.05rem;
    font-size: .78rem;
    font-weight: 500;
    color: var(--crema);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .45);
  }
  .sello .estrellitas { color: var(--dorado); letter-spacing: .18em; font-size: .8rem; }
  .indicador { display: grid; }
}
.heroe .marca {
  font-family: "Cormorant Garamond", serif;
  letter-spacing: .5em;
  text-transform: uppercase;
  font-size: clamp(.95rem, 2.4vw, 1.35rem);
  margin-bottom: 1rem;
  color: var(--crema-suave);
}
.heroe h1 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: clamp(2.5rem, 8vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: .02em;
}
.heroe .lema {
  margin-top: 1rem;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  color: var(--crema-suave);
}
.heroe .acciones {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
}

/* ---------- Botones ---------- */
.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.7rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-weight: 600;
  font-size: .92rem;
  text-decoration: none;
  transition: transform var(--transicion), filter var(--transicion), background var(--transicion), border-color var(--transicion);
}
.boton:hover { transform: translateY(-2px); }
.boton.dorado { background: var(--dorado); color: #fff; }
.boton.dorado:hover { background: var(--dorado-oscuro); }
.boton.contorno { border-color: rgba(246, 241, 234, .4); color: var(--crema); background: transparent; }
.boton.contorno:hover { border-color: var(--dorado); }
.boton.verde { background: var(--whatsapp); color: #fff; }
.boton.verde:hover { filter: brightness(1.08); }
.boton.bloque { width: 100%; }
.boton:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- Secciones (ancho completo, contenido centrado) ---------- */
.seccion { padding: clamp(2.8rem, 6vw, 4.8rem) 1.5rem; }
.seccion > * { max-width: 1220px; margin-left: auto; margin-right: auto; }
.seccion > .subtitulo { max-width: 640px; }
.seccion > .faq { max-width: 780px; }
.seccion > .testimonios, .seccion > .ig-grid { max-width: 1020px; }
.seccion.banda-b {
  background: var(--fondo-banda);
  border-top: 1px solid rgba(246, 241, 234, .07);
  border-bottom: 1px solid rgba(246, 241, 234, .07);
}
.titulo {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: clamp(1.7rem, 4.5vw, 2.5rem);
  letter-spacing: .35em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: .6rem;
}
.subtitulo {
  text-align: center;
  color: var(--crema-suave);
  font-size: .95rem;
  max-width: 640px;
  margin: 0 auto 2.2rem;
  line-height: 1.8;
}

/* ---------- Barra de herramientas ---------- */
.herramientas {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  align-items: center;
  margin-bottom: 1rem;
}
.herramientas input[type="search"] {
  flex: 1 1 230px;
  max-width: 400px;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(246, 241, 234, .25);
  background: rgba(255, 255, 255, .06);
  color: var(--crema);
  font-size: .92rem;
  outline: none;
  transition: border-color var(--transicion);
}
.herramientas input[type="search"]::placeholder { color: rgba(246, 241, 234, .45); }
.herramientas input[type="search"]:focus { border-color: var(--dorado); }
.herramientas select {
  padding: .72rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(246, 241, 234, .25);
  background: var(--fondo-suave);
  color: var(--crema);
  font-size: .88rem;
  outline: none;
  cursor: pointer;
}
.herramientas .contador {
  margin-left: auto;
  font-size: .84rem;
  color: var(--crema-suave);
}
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.8rem; }
.chip {
  padding: .5rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(246, 241, 234, .28);
  background: transparent;
  color: var(--crema);
  font-size: .82rem;
  font-weight: 500;
  transition: background var(--transicion), border-color var(--transicion);
}
.chip:hover { border-color: var(--dorado); }
.chip.activo { background: var(--dorado); border-color: var(--dorado); color: #fff; font-weight: 600; }

/* ---------- Grilla de productos ---------- */
.grilla {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr));
  gap: 1.6rem;
}
.carta {
  background: var(--fondo-carta);
  color: var(--tinta);
  border-radius: var(--radio);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--sombra);
  transition: transform var(--transicion), box-shadow var(--transicion);
}
.carta:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(0, 0, 0, .45); }
.carta .foto {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 5 / 4;
}
.carta .foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.carta:hover .foto img { transform: scale(1.05); }
.carta.agotada .foto img { filter: grayscale(.9) opacity(.72); }
.carta.agotada .precio { color: var(--gris); }
.etiqueta {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  background: var(--dorado);
  color: #fff;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .35rem .75rem;
  border-radius: 999px;
  pointer-events: none;
}
.etiqueta.agotado { background: #857c72; }
.etiqueta.nuevo { background: var(--tinta); left: 12px; right: auto; }
.etiqueta.secundaria { top: 46px; }
.carta .cuerpo {
  padding: 1.05rem 1.15rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: .28rem;
  text-align: center;
  flex: 1;
}
.carta .coleccion-mini {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dorado-oscuro);
}
.carta .nombre { font-weight: 600; font-size: .96rem; line-height: 1.35; }
.carta .precio { font-weight: 700; font-size: 1.12rem; }
.carta .detalle { font-weight: 500; font-size: .8rem; color: var(--gris); }
.carta .acciones {
  margin-top: auto;
  padding-top: .8rem;
  display: flex;
  gap: .5rem;
}
.carta .agregar {
  flex: 1;
  padding: .62rem .8rem;
  border-radius: 999px;
  border: none;
  background: var(--tinta);
  color: #fff;
  font-weight: 600;
  font-size: .84rem;
  transition: background var(--transicion);
}
.carta .agregar:hover { background: #000; }
.carta .agregar:disabled { background: #d8d3cc; color: #857e75; cursor: not-allowed; }
.carta .ver {
  width: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1.5px solid #e5e1dc;
  background: #faf8f5;
  font-size: 1rem;
  transition: background var(--transicion);
}
.carta .ver:hover { background: #f0ece6; }
.sin-resultados {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 0;
  color: var(--crema-suave);
}

/* ---------- Cómo lucen ---------- */
.lucen-grilla {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr));
  gap: 1.1rem;
}
.lucen-grilla img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 16px;
  cursor: zoom-in;
  transition: transform var(--transicion);
}
.lucen-grilla img:hover { transform: scale(1.02); }

/* ---------- Nosotros / Creadora (dos columnas) ---------- */
.duo {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(1.6rem, 4vw, 3.5rem);
  align-items: center;
}
.duo .marco {
  border-radius: var(--radio);
  overflow: hidden;
  background: var(--fondo-suave);
  border: 1px solid rgba(246, 241, 234, .12);
}
.duo .marco img { width: 100%; height: 100%; object-fit: cover; }
.duo .marco.logo { padding: clamp(1.5rem, 4vw, 2.8rem); }
.duo .marco.logo img { object-fit: contain; aspect-ratio: 1 / 1; }
.tag-seccion {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--dorado);
  margin-bottom: .7rem;
}
.duo h2 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.12;
  margin-bottom: 1rem;
}
.duo p { color: var(--crema-suave); font-size: .94rem; line-height: 1.9; margin-bottom: .9rem; }
.duo .firma { font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 1.15rem; color: var(--dorado); }
.insignias { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.insignia {
  padding: .45rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(201, 168, 106, .45);
  font-size: .78rem;
  font-weight: 500;
}
@media (max-width: 760px) {
  .duo { grid-template-columns: 1fr; }
  .duo .marco { max-width: 420px; margin: 0 auto; }
}

/* ---------- Collage de la sección Nosotros ---------- */
.collage-nosotros {
  position: relative;
  max-width: 420px;
  justify-self: center;
  width: 100%;
}
.collage-logo {
  background:
    radial-gradient(closest-side at 50% 42%, rgba(201, 168, 106, .28), transparent),
    linear-gradient(160deg, #fdfaf4, #f3ead9);
  border-radius: 32px;
  padding: clamp(1.8rem, 4vw, 2.8rem);
  box-shadow: 0 26px 60px rgba(0, 0, 0, .45);
  border: 1px solid rgba(201, 168, 106, .35);
}
.collage-logo img { width: 100%; }

/* ---------- Por qué elegirnos ---------- */
.ventajas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(235px, 100%), 1fr));
  gap: 1.2rem;
}
.ventaja {
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(246, 241, 234, .12);
  border-radius: var(--radio);
  padding: 1.6rem 1.3rem;
  text-align: center;
  transition: transform var(--transicion), border-color var(--transicion);
}
.ventaja:hover { transform: translateY(-4px); border-color: rgba(201, 168, 106, .6); }
.ventaja .icono { font-size: 1.9rem; margin-bottom: .7rem; }
.ventaja h3 { font-size: .98rem; margin-bottom: .45rem; font-weight: 600; }
.ventaja p { font-size: .84rem; color: var(--crema-suave); line-height: 1.7; }

/* ---------- Testimonios ---------- */
.testimonios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 1.2rem;
  max-width: 1020px;
  margin: 0 auto;
}
.testimonio {
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(246, 241, 234, .12);
  border-radius: var(--radio);
  padding: 1.6rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: .85rem;
}
.testimonio .estrellas { color: var(--dorado); letter-spacing: .2em; font-size: .95rem; }
.testimonio .frase { font-size: .9rem; color: var(--crema-suave); line-height: 1.8; flex: 1; }
.cliente { display: flex; align-items: center; gap: .8rem; }
.cliente .avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--dorado);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  flex-shrink: 0;
}
.cliente strong { display: block; font-size: .88rem; }
.cliente span { font-size: .76rem; color: var(--crema-suave); }

/* ---------- Instagram ---------- */
.subtitulo a { color: var(--dorado); font-weight: 600; text-decoration: none; }
.subtitulo a:hover { text-decoration: underline; }
.ig-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: 1.2rem;
  max-width: 1020px;
  margin: 0 auto;
}
.ig-card {
  position: relative;
  display: block;
  border-radius: var(--radio);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  text-decoration: none;
  border: 1px solid rgba(246, 241, 234, .12);
}
.ig-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.ig-card:hover img { transform: scale(1.06); }
.ig-card .velo-ig {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(20, 15, 10, 0) 45%, rgba(20, 15, 10, .8));
  display: flex;
  align-items: flex-end;
  padding: 1rem 1.1rem;
  color: #fff;
  font-weight: 600;
  font-size: .85rem;
}
.ig-boton { text-align: center; margin-top: 2.2rem; }

/* ---------- Preguntas frecuentes ---------- */
.faq {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: .7rem;
}
.faq details {
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(246, 241, 234, .12);
  border-radius: 16px;
  transition: border-color var(--transicion);
}
.faq details[open] { border-color: rgba(201, 168, 106, .55); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.3rem;
  font-weight: 600;
  font-size: .92rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--dorado);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
  transition: transform .2s;
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  padding: 0 1.3rem 1.15rem;
  color: var(--crema-suave);
  font-size: .87rem;
  line-height: 1.8;
}

/* ---------- Contacto (sección) ---------- */
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: start;
}
@media (max-width: 820px) { .contacto-grid { grid-template-columns: 1fr; } }
.dato-contacto {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}
.dato-contacto .icono {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: rgba(201, 168, 106, .16);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.dato-contacto strong { display: block; font-size: .9rem; margin-bottom: .1rem; }
.dato-contacto span, .dato-contacto a { color: var(--crema-suave); font-size: .87rem; text-decoration: none; }
.dato-contacto a:hover { color: var(--dorado); }
.form-tarjeta {
  background: #fff;
  color: var(--tinta);
  border-radius: var(--radio);
  padding: clamp(1.3rem, 3vw, 1.9rem);
  box-shadow: var(--sombra);
}
.form-fila { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .9rem; }
@media (max-width: 560px) { .form-fila { grid-template-columns: 1fr; } }
.pot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- Pie ---------- */
.pie {
  background: var(--fondo-suave);
  border-top: 1px solid rgba(246, 241, 234, .08);
  text-align: center;
  padding: clamp(2.6rem, 6vw, 4rem) 1.5rem 2rem;
}
.pie .redes {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .9rem;
}
.pie .credito {
  margin-top: 2.2rem;
  font-size: .76rem;
  color: rgba(246, 241, 234, .4);
}

/* ---------- Velo y paneles ---------- */
.velo {
  position: fixed;
  inset: 0;
  background: rgba(15, 11, 8, .6);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.velo.visible { opacity: 1; pointer-events: auto; }

.panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 100%);
  background: #fff;
  color: var(--tinta);
  z-index: 61;
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
  transition: transform .28s ease;
  box-shadow: -12px 0 40px rgba(0, 0, 0, .35);
}
.panel.visible { transform: translateX(0); }
.panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.4rem;
  border-bottom: 1px solid #eee;
}
.panel > header h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.45rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.cerrar {
  border: none;
  background: #f2efeb;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: .95rem;
  transition: background var(--transicion);
}
.cerrar:hover { background: #e8e3dc; }

/* progreso hacia envío gratis */
.progreso-envio {
  padding: .9rem 1.4rem;
  background: #faf7f2;
  border-bottom: 1px solid #eee;
  font-size: .8rem;
  color: var(--gris);
}
.progreso-envio strong { color: var(--dorado-oscuro); }
.progreso-envio .barra {
  margin-top: .5rem;
  height: 6px;
  border-radius: 999px;
  background: #ece7df;
  overflow: hidden;
}
.progreso-envio .barra span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--dorado);
  transition: width .3s ease;
}

.panel .items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.item-carrito { display: flex; gap: .9rem; align-items: center; }
.item-carrito img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
}
.item-carrito .datos { flex: 1; min-width: 0; }
.item-carrito .n { font-weight: 600; font-size: .85rem; line-height: 1.3; }
.item-carrito .p { font-size: .8rem; color: var(--gris); }
.item-carrito .sub { font-size: .82rem; font-weight: 700; margin-top: .15rem; }
.item-carrito .oferta-aplicada { color: var(--whatsapp); font-weight: 600; font-size: .72rem; }
.stepper { display: flex; align-items: center; gap: .4rem; }
.stepper button {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid #ddd;
  background: #fff;
  font-weight: 600;
  line-height: 1;
}
.stepper span { font-weight: 600; min-width: 1.4em; text-align: center; font-size: .88rem; }
.item-carrito .quitar { border: none; background: none; color: var(--peligro); font-size: 1rem; padding: .3rem; }
.panel .vacio { text-align: center; color: var(--gris); padding: 3rem 1rem; font-size: .92rem; }
.panel > footer {
  background: #faf8f5;
  border-top: 1px solid #eee;
  padding: 1.1rem 1.4rem 1.25rem;
}
.panel .fila-total { display: flex; justify-content: space-between; font-weight: 600; }
.panel .nota { font-size: .72rem; color: var(--gris); margin: .3rem 0 .9rem; }
.panel .vaciar {
  margin-top: .6rem;
  width: 100%;
  border: none;
  background: none;
  color: var(--gris);
  font-size: .8rem;
  text-decoration: underline;
}

/* ---------- Modales (producto y checkout) ---------- */
.modal-velo {
  position: fixed;
  inset: 0;
  background: rgba(15, 11, 8, .72);
  z-index: 70;
  display: none;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: clamp(.8rem, 3vw, 2.5rem) 1rem;
}
.modal-velo.visible { display: flex; }
.modal {
  background: #fff;
  color: var(--tinta);
  border-radius: 22px;
  width: min(880px, 100%);
  margin: auto;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
  position: relative;
}
.modal .cerrar-modal {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
}
.modal-producto { display: grid; grid-template-columns: 1fr 1fr; }
.modal-producto .foto { position: relative; }
.modal-producto .foto img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.modal-producto.agotada .foto img { filter: grayscale(.9) opacity(.72); }
.modal-producto .info { padding: clamp(1.4rem, 3.5vw, 2.4rem); display: flex; flex-direction: column; gap: .7rem; }
.modal-producto .coleccion-mini {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dorado-oscuro);
}
.modal-producto h3 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  line-height: 1.15;
}
.modal-producto .precio { font-weight: 700; font-size: 1.35rem; }
.modal-producto .detalle { color: var(--gris); font-size: .9rem; }
.modal-producto .fila-cantidad {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: .4rem;
}
.modal-producto .fila-cantidad .stepper button { width: 34px; height: 34px; }
.modal-producto .acciones-modal {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  padding-top: 1rem;
}
.modal-producto .link-secundario {
  text-align: center;
  font-size: .82rem;
  color: var(--gris);
}
.modal-producto .link-secundario a { color: var(--gris); }
@media (max-width: 720px) {
  .modal-producto { grid-template-columns: 1fr; }
  .modal-producto .foto img { max-height: 46vh; min-height: 0; }
}

/* checkout */
.modal-checkout { padding: clamp(1.4rem, 3.5vw, 2.2rem); }
.modal-checkout h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.checkout-cuerpo { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1.8rem; }
@media (max-width: 720px) { .checkout-cuerpo { grid-template-columns: 1fr; } }
.campo { margin-bottom: .9rem; }
.campo label { display: block; font-size: .8rem; font-weight: 600; margin-bottom: .32rem; }
.campo input[type="text"], .campo input[type="tel"], .campo textarea, .campo select {
  width: 100%;
  padding: .68rem .95rem;
  border-radius: 12px;
  border: 1.5px solid #ddd;
  font-size: .92rem;
  outline: none;
  background: #fff;
  transition: border-color var(--transicion);
}
.campo input:focus, .campo textarea:focus, .campo select:focus { border-color: var(--dorado); }
.campo .error-campo { display: none; font-size: .74rem; color: var(--peligro); margin-top: .25rem; }
.campo.invalido input, .campo.invalido select, .campo.invalido textarea { border-color: var(--peligro); }
.campo.invalido .error-campo { display: block; }
.resumen {
  background: #faf7f2;
  border-radius: 16px;
  padding: 1.1rem 1.2rem;
  align-self: start;
}
.resumen h4 {
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gris);
  margin-bottom: .7rem;
}
.resumen .linea {
  display: flex;
  justify-content: space-between;
  gap: .8rem;
  font-size: .84rem;
  padding: .28rem 0;
}
.resumen .linea .cant { color: var(--gris); }
.resumen .division { border: none; border-top: 1px solid #e8e2d8; margin: .6rem 0; }
.resumen .linea.total { font-weight: 700; font-size: .95rem; }
.resumen .envio-ok { color: var(--whatsapp); font-weight: 600; }
.nota-final { font-size: .74rem; color: var(--gris); margin: .8rem 0 1rem; line-height: 1.6; }

/* ---------- Visor de foto ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 11, 8, .93);
  z-index: 80;
  display: none;
  place-items: center;
  padding: 1.5rem;
  cursor: zoom-out;
}
.lightbox.visible { display: grid; }
.lightbox img {
  max-width: 94vw;
  max-height: 86vh;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
}

/* ---------- Aviso flotante (toast) ---------- */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 90;
  background: var(--tinta);
  color: #fff;
  padding: .8rem 1.5rem;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 500;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .5);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  max-width: 92vw;
  text-align: center;
}
.toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Botón flotante de WhatsApp ---------- */
.whatsapp-flotante {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 45;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: grid;
  place-items: center;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
  transition: transform var(--transicion), filter var(--transicion);
}
.whatsapp-flotante:hover { transform: translateY(-2px); filter: brightness(1.08); }
.whatsapp-flotante svg { width: 30px; height: 30px; fill: #fff; }
.whatsapp-flotante .globo {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: #fff;
  color: var(--tinta);
  padding: .55rem 1.1rem;
  border-radius: 999px;
  font-family: "Poppins", sans-serif;
  font-size: .86rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .4);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.whatsapp-flotante .globo::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: #fff;
}
.whatsapp-flotante:hover .globo,
.whatsapp-flotante:focus-visible .globo {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
