/* =====================================================================
   CATÁLOGO DE VESTIDOS — Estilos
   Paleta y tipografías editables en :root
   ===================================================================== */

@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('../fonts/cormorant.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 300 700; font-display: swap; src: url('../fonts/cormorant-italic.woff2') format('woff2'); }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../fonts/jost.woff2') format('woff2'); }
@font-face { font-family: 'Pinyon Script'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/pinyon-script.woff2') format('woff2'); }

:root {
  --crema: #f7f1ea;
  --blanco: #fffdf9;
  --beige: #efe3d4;
  --rosa: #f6e5e1;
  --noche: #231c1a;

  --tinta: #2b2421;
  --suave: #7d6d64;
  --oro: #b08d57;
  --oro-claro: #d8bf91;
  --palo-rosa: #c99a94;
  --linea: rgba(43, 36, 33, .16);
  --wa: #25d366;

  --serif: 'Cormorant Garamond', 'Didot', 'Bodoni 72', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  --script: 'Pinyon Script', 'Snell Roundhand', 'Brush Script MT', cursive;

  --margen: clamp(10px, 2.6vw, 34px);
  --relleno: clamp(22px, 5vw, 76px);
  --sombra: 0 18px 40px -22px rgba(60, 40, 30, .35);
  --sombra-suave: 0 10px 30px -18px rgba(60, 40, 30, .28);
  --curva: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--crema);
  color: var(--tinta);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.bloqueado { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
svg { width: 1em; height: 1em; flex-shrink: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-weight: 400; }
:focus-visible { outline: 1.5px solid var(--oro); outline-offset: 3px; }

/* ---------- Barra de progreso ---------- */
.progreso { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60; pointer-events: none; }
.progreso span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--oro-claro), var(--oro)); }

/* =====================================================================
   CABECERA
   ===================================================================== */
.cabecera {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(18px, 4vw, 48px);
  color: #fff;
  transition: background .5s var(--curva), color .5s var(--curva), padding .5s var(--curva), box-shadow .5s;
}
.cabecera.solida {
  background: rgba(247, 241, 234, .9);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  color: var(--tinta);
  padding-top: 10px; padding-bottom: 10px;
  box-shadow: 0 1px 0 var(--linea);
}
.marca { display: flex; align-items: center; gap: 12px; }
.marca__logo {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid currentColor; display: grid; place-items: center;
  font-family: var(--serif); font-size: 17px; letter-spacing: .04em; font-style: italic;
  overflow: hidden;
}
.marca__logo img { width: 100%; height: 100%; object-fit: cover; }
.marca__nombre { font-family: var(--serif); font-size: 21px; line-height: 1; letter-spacing: .04em; }
.marca__nombre small { display: block; font-family: var(--sans); font-size: 9.5px; letter-spacing: .32em; text-transform: uppercase; opacity: .75; margin-top: 4px; }

.cabecera__acciones { display: flex; align-items: center; gap: 22px; }
.cabecera__wa { display: flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; opacity: .9; transition: opacity .3s; }
.cabecera__wa svg { font-size: 17px; }
.cabecera__wa:hover { opacity: 1; }
.btn-menu { display: flex; align-items: center; gap: 12px; font-size: 11px; letter-spacing: .26em; text-transform: uppercase; }
.btn-menu__lineas { width: 28px; height: 10px; position: relative; }
.btn-menu__lineas i { position: absolute; left: 0; right: 0; height: 1px; background: currentColor; transition: transform .45s var(--curva), top .45s var(--curva), width .45s; }
.btn-menu__lineas i:first-child { top: 1px; }
.btn-menu__lineas i:last-child { top: 8px; width: 70%; left: auto; }
.btn-menu:hover .btn-menu__lineas i:last-child { width: 100%; }
body.menu-abierto .cabecera { color: var(--tinta); background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
body.menu-abierto .btn-menu__lineas i:first-child { top: 4.5px; transform: rotate(45deg); }
body.menu-abierto .btn-menu__lineas i:last-child { top: 4.5px; width: 100%; transform: rotate(-45deg); }

/* =====================================================================
   ÍNDICE (menú a pantalla completa)
   ===================================================================== */
.menu {
  position: fixed; inset: 0; z-index: 45;
  background: var(--crema);
  padding: var(--margen);
  opacity: 0; visibility: hidden;
  transition: opacity .5s var(--curva), visibility .5s;
}
.menu.abierto { opacity: 1; visibility: visible; }
.menu__marco {
  height: 100%; border: 1px solid var(--linea); position: relative;
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center;
  padding: 90px clamp(24px, 6vw, 90px) 40px;
  gap: 40px;
}
.menu__marco::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--linea); pointer-events: none; }
.menu__titulo { font-family: var(--script); font-size: 46px; color: var(--oro); margin: 0 0 10px; line-height: 1; }
.menu__lista ol { counter-reset: n; }
.menu__lista li {
  opacity: 0; transform: translateY(16px);
  transition: opacity .6s var(--curva), transform .6s var(--curva);
}
.menu.abierto .menu__lista li { opacity: 1; transform: none; }
.menu__lista a {
  display: flex; align-items: baseline; gap: 18px;
  padding: 7px 0; border-bottom: 1px solid var(--linea);
  font-family: var(--serif); font-size: clamp(24px, 3.2vw, 40px); line-height: 1.2;
  transition: color .3s, padding-left .4s var(--curva);
}
.menu__lista a span { font-family: var(--sans); font-size: 11px; letter-spacing: .2em; color: var(--suave); min-width: 26px; }
.menu__lista a:hover, .menu__lista a.activo { color: var(--oro); padding-left: 10px; }
.menu__vista { margin: 0; justify-self: center; width: min(100%, 360px); aspect-ratio: 3 / 4; padding: 10px; background: var(--blanco); border: 1px solid var(--linea); box-shadow: var(--sombra); }
.menu__vista img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s; }

/* =====================================================================
   PORTADA
   ===================================================================== */
.portada {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  overflow: hidden; background: #1a1412;
  isolation: isolate;
}
.portada__fondo { position: absolute; inset: -40px; z-index: -2; }
.portada__fondo img { width: 100%; height: 100%; object-fit: cover; filter: blur(28px) brightness(.55) saturate(1.1); transform: scale(1.1); }

.portada__hoja {
  position: relative;
  width: 100%; height: 100vh; height: 100svh;
  overflow: hidden;
  color: #fff;
  container-type: size;
}
.portada__foto { position: absolute; inset: 0; z-index: -1; }
.portada__foto img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; animation: acercar 14s var(--curva) both; }
.portada__foto::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 14, 12, .55) 0%, rgba(20, 14, 12, .12) 28%, rgba(20, 14, 12, .18) 55%, rgba(20, 14, 12, .78) 100%),
    radial-gradient(ellipse at center 42%, rgba(20, 14, 12, .28), transparent 65%);
}
@keyframes acercar { from { transform: scale(1.12); } to { transform: scale(1); } }

.portada__marco {
  position: absolute; inset: clamp(12px, 2.6vw, 22px);
  border: 1px solid rgba(255, 255, 255, .75);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: clamp(78px, 11vh, 100px) 20px clamp(26px, 4vh, 40px);
  text-align: center;
}
.portada__marco::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(255, 255, 255, .28); pointer-events: none; }
.portada__eyebrow { font-size: 10.5px; letter-spacing: .42em; text-transform: uppercase; opacity: .9; }

.portada__centro { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: -4vh; }
.portada__estrella { font-size: 42px; color: #f3e3c6; animation: brillar 3.5s ease-in-out infinite; filter: drop-shadow(0 0 12px rgba(243, 227, 198, .5)); }
@keyframes brillar { 0%, 100% { transform: scale(1) rotate(0); opacity: .95; } 50% { transform: scale(1.12) rotate(8deg); opacity: 1; } }
.portada__acento { font-family: var(--script); font-size: clamp(30px, 6vw, 44px); line-height: 1.1; color: #f3e3c6; margin-top: 6px; }
.portada__titulo {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(44px, 12vw, 80px); font-size: min(13cqw, 13cqh); line-height: .95;
  letter-spacing: .12em; text-transform: uppercase;
  margin-right: -.12em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, .25);
}
.portada__linea { display: flex; align-items: center; gap: 14px; margin-top: 14px; font-size: 10.5px; letter-spacing: .34em; text-transform: uppercase; opacity: .95; }
.portada__linea::before, .portada__linea::after { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .7; }

.portada__pie { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; }
.portada__bolsa {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .8);
  display: grid; place-items: center; font-size: 22px;
  background: rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.portada__compra { font-size: 10px; letter-spacing: .34em; text-transform: uppercase; opacity: .85; margin: 0; }
.portada__direccion { font-family: var(--serif); font-size: 21px; font-style: italic; margin: -6px 0 0; line-height: 1.2; }
.portada__tel { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: .16em; }
.portada__tel svg { font-size: 15px; }
.portada__cta {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 6px; padding: 13px 26px;
  background: #fff; color: var(--tinta);
  font-size: 11px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
  transition: background .35s, color .35s, transform .35s var(--curva);
}
.portada__cta svg { font-size: 18px; color: #1faa55; transition: color .35s; }
.portada__cta:hover { background: var(--tinta); color: #fff; transform: translateY(-2px); }
.portada__cta:hover svg { color: #fff; }
.portada__num { position: absolute; bottom: clamp(26px, 4vw, 36px); left: clamp(28px, 4.4vw, 40px); z-index: 2; font-family: var(--serif); font-size: 14px; letter-spacing: .1em; opacity: .8; }
.portada__bajar { position: absolute; bottom: 16px; left: 18px; font-size: 9.5px; letter-spacing: .3em; text-transform: uppercase; opacity: .8; display: flex; align-items: center; gap: 10px; }
.portada__bajar i { width: 1px; height: 26px; background: currentColor; display: block; animation: bajar 2s ease-in-out infinite; transform-origin: top; }
@keyframes bajar { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Entrada de la portada */
.portada .entra { opacity: 0; transform: translateY(18px); animation: entrar 1.1s var(--curva) forwards; }
@keyframes entrar { to { opacity: 1; transform: none; } }

/* En pantallas grandes la portada se ve como una revista vertical */
@media (min-width: 900px) {
  .portada { padding: 92px 0 36px; }
  .portada__hoja {
    width: auto; height: calc(100vh - 128px); max-height: 980px; min-height: 620px;
    aspect-ratio: 3 / 4;
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7);
  }
}

/* =====================================================================
   PÁGINAS DEL CATÁLOGO
   ===================================================================== */
.pagina { position: relative; padding: var(--margen); scroll-margin-top: 0; }
.pagina__marco {
  position: relative;
  border: 1px solid var(--linea);
  padding: clamp(56px, 8vw, 104px) var(--relleno) clamp(40px, 6vw, 70px);
}
.pagina__marco::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--linea); opacity: .6; pointer-events: none; }
/* Esquinas decorativas */
.pagina__marco::after {
  content: ""; position: absolute; inset: -4px; pointer-events: none;
  background:
    linear-gradient(var(--oro), var(--oro)) top left / 7px 7px no-repeat,
    linear-gradient(var(--oro), var(--oro)) top right / 7px 7px no-repeat,
    linear-gradient(var(--oro), var(--oro)) bottom left / 7px 7px no-repeat,
    linear-gradient(var(--oro), var(--oro)) bottom right / 7px 7px no-repeat;
  opacity: .8;
}

.tono-crema { background: rgba(255, 250, 245, .2); }
.tono-blanco { background: rgba(255, 255, 255, .14); }
.tono-beige { background: rgba(245, 232, 215, .3); }
.tono-rosa { background: rgba(255, 235, 240, .14); }
.tono-noche { background: rgba(35, 28, 26, .9); color: #f4ece4; --linea: rgba(216, 191, 145, .28); --suave: #b9a99c; }

.cabeza { text-align: center; max-width: 720px; margin: 0 auto clamp(36px, 6vw, 70px); }
.cabeza__num { display: inline-block; font-size: 10.5px; letter-spacing: .4em; text-transform: uppercase; color: var(--suave); }
.cabeza__estrella { display: block; margin: 14px auto 0; font-size: 22px; color: var(--oro); }
.cabeza__acento { font-family: var(--script); font-size: clamp(34px, 5.4vw, 54px); color: var(--palo-rosa); line-height: 1; margin: 6px 0 -6px; }
.tono-noche .cabeza__acento, .tono-rosa .cabeza__acento { color: var(--oro); }
.cabeza__titulo { font-family: var(--serif); font-size: clamp(38px, 6.4vw, 76px); line-height: 1.02; letter-spacing: .01em; }
.cabeza__sub { margin: 14px auto 0; color: var(--suave); font-size: 14px; letter-spacing: .04em; max-width: 46ch; }
.ornamento { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 22px; color: var(--oro); }
.ornamento::before, .ornamento::after { content: ""; width: clamp(40px, 10vw, 90px); height: 1px; background: currentColor; opacity: .6; }
.ornamento i { width: 6px; height: 6px; transform: rotate(45deg); border: 1px solid currentColor; }

.pie-pagina {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: clamp(40px, 6vw, 70px); padding-top: 18px;
  border-top: 1px solid var(--linea);
  font-size: 10px; letter-spacing: .32em; text-transform: uppercase; color: var(--suave);
}
.pie-pagina b { font-family: var(--serif); font-weight: 400; font-size: 15px; letter-spacing: .12em; color: var(--tinta); }
.tono-noche .pie-pagina b { color: #f4ece4; }

/* =====================================================================
   TARJETA DE VESTIDO
   ===================================================================== */
.vestido { position: relative; display: flex; flex-direction: column; }
.vestido__foto {
  position: relative; margin: 0;
  padding: clamp(6px, 1vw, 10px);
  background: var(--blanco);
  border: 1px solid var(--linea);
  box-shadow: var(--sombra-suave);
  cursor: zoom-in;
  transition: box-shadow .5s var(--curva), transform .5s var(--curva);
}
.vestido__marco { position: relative; overflow: hidden; aspect-ratio: 3 / 4; background: var(--beige); }
.vestido__marco img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--curva), filter .6s; }
.vestido__marco::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(30, 20, 16, .45));
  opacity: 0; transition: opacity .5s;
}
.vestido__zoom {
  position: absolute; z-index: 2; right: 14px; bottom: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; background: rgba(255, 253, 249, .92); color: var(--tinta);
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  opacity: 0; transform: translateY(8px);
  transition: opacity .45s var(--curva), transform .45s var(--curva);
}
.vestido__zoom svg { font-size: 15px; }
.vestido__etiqueta {
  position: absolute; z-index: 2; top: 14px; left: 14px;
  padding: 6px 12px; background: var(--tinta); color: #fff;
  font-size: 9.5px; letter-spacing: .28em; text-transform: uppercase;
}
@media (hover: hover) {
  .vestido__foto:hover { box-shadow: var(--sombra); transform: translateY(-4px); }
  .vestido__foto:hover img { transform: scale(1.06); }
  .vestido__foto:hover .vestido__marco::after { opacity: 1; }
  .vestido__foto:hover .vestido__zoom { opacity: 1; transform: none; }
}
@media (hover: none) { .vestido__zoom { opacity: 1; transform: none; padding: 8px; } .vestido__zoom span { display: none; } }

/* Foto que no se encuentra: placeholder elegante en vez de un cuadro gris */
.vestido__marco.sin-foto { display: grid; place-items: center; background: linear-gradient(160deg, var(--rosa), var(--beige)); }
.vestido__marco.sin-foto img { display: none; }
.vestido__marco.sin-foto::before { content: attr(data-nombre); font-family: var(--script); font-size: 40px; color: var(--oro); }

.vestido__info { padding: 18px 4px 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.vestido__fila { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--linea); padding-bottom: 10px; }
.vestido__nombre { font-family: var(--serif); font-size: clamp(26px, 2.6vw, 32px); line-height: 1.05; }
.vestido__nombre small { display: block; font-family: var(--sans); font-size: 9.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--suave); margin-bottom: 4px; }
.vestido__precio { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 26px); font-style: italic; white-space: nowrap; color: var(--oro); }
.vestido__dato { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.vestido__dato > span { font-size: 9.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--suave); min-width: 58px; }
.tallas { display: flex; flex-wrap: wrap; gap: 6px; }
.tallas li { min-width: 32px; height: 28px; padding: 0 6px; display: grid; place-items: center; border: 1px solid var(--linea); font-size: 11.5px; font-weight: 400; letter-spacing: .06em; }
.colores { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.colores li { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; }
.colores i { width: 14px; height: 14px; border-radius: 50%; background: var(--c, #ccc); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), 0 0 0 2px var(--fondo-chip, #fff), 0 0 0 3px var(--linea); }
.vestido__desc { margin: 0; color: var(--suave); font-size: 14px; }

/* Botón WhatsApp de cada vestido */
.btn-wa {
  margin-top: auto;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 18px; min-height: 48px;
  border: 1px solid var(--tinta); color: var(--tinta);
  font-size: 10.5px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .45s var(--curva), border-color .45s;
}
.btn-wa::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--tinta); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--curva); }
.btn-wa svg { font-size: 18px; color: #1faa55; transition: color .45s; }
.btn-wa:hover { color: #fff; }
.btn-wa:hover::before { transform: scaleX(1); transform-origin: left; }
.btn-wa:hover svg { color: #fff; }
.vestido .btn-wa { margin-top: 6px; }
.btn-wa--claro { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-wa--claro::before { background: #fff; }
.btn-wa--claro:hover { color: var(--tinta); }
.btn-wa--claro:hover svg { color: #1faa55; }
.tono-noche .btn-wa { border-color: var(--oro-claro); color: #f4ece4; }
.tono-noche .btn-wa::before { background: var(--oro-claro); }
.tono-noche .btn-wa:hover { color: var(--noche); }
.tono-noche .btn-wa:hover svg { color: #157a3d; }
.tono-noche .tallas li { border-color: rgba(216, 191, 145, .4); }
.tono-noche .colores i { --fondo-chip: var(--noche); }

/* =====================================================================
   DISEÑOS DE SECCIÓN
   ===================================================================== */
.rejilla { display: grid; gap: clamp(28px, 4vw, 56px) clamp(18px, 3vw, 40px); }

/* 1. Trío */
.rejilla--trio { grid-template-columns: repeat(3, 1fr); }

/* 2. Destacado: el primero grande, el resto debajo */
.rejilla--destacado { grid-template-columns: repeat(2, 1fr); }
.rejilla--destacado .vestido:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 60px); align-items: center; }
.rejilla--destacado .vestido:first-child .vestido__info { padding: 0; gap: 16px; }
.rejilla--destacado .vestido:first-child .vestido__nombre { font-size: clamp(40px, 5vw, 64px); }
.rejilla--destacado .vestido:first-child .vestido__precio { font-size: clamp(28px, 3vw, 36px); }
.rejilla--destacado .vestido:first-child .vestido__info::before { content: "Destacado"; font-family: var(--script); font-size: 34px; color: var(--palo-rosa); line-height: 1; }
.rejilla--destacado .vestido:not(:first-child) .vestido__marco { aspect-ratio: 4 / 5; }

/* 3. Dúo con texto sobre la foto (gala) */
.rejilla--duo { grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 4vw, 48px); }
.rejilla--duo .vestido__foto { padding: 0; background: transparent; border-color: rgba(216, 191, 145, .45); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.rejilla--duo .vestido__foto::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(255, 255, 255, .45); z-index: 3; pointer-events: none; }
.rejilla--duo .vestido__marco { aspect-ratio: 2 / 3; }
.rejilla--duo .vestido__marco::after { opacity: 1; background: linear-gradient(180deg, transparent 45%, rgba(20, 14, 12, .92)); }
.rejilla--duo .vestido__info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; padding: clamp(22px, 3vw, 40px); color: #fff; }
.rejilla--duo .vestido__fila { border-color: rgba(255, 255, 255, .3); }
.rejilla--duo .vestido__nombre { font-size: clamp(34px, 4vw, 52px); }
.rejilla--duo .vestido__precio { color: var(--oro-claro); }
.rejilla--duo .vestido__dato > span { color: rgba(255, 255, 255, .7); }
.rejilla--duo .tallas li { border-color: rgba(255, 255, 255, .45); }
.rejilla--duo .colores i { --fondo-chip: transparent; }
.rejilla--duo .vestido__zoom { top: 26px; right: 26px; bottom: auto; }
.rejilla--duo .vestido__etiqueta { top: 26px; left: 26px; }

/* 4. Escalonado */
.rejilla--escalonado { grid-template-columns: repeat(3, 1fr); align-items: start; }
.rejilla--escalonado .vestido:nth-child(3n+2) { margin-top: clamp(40px, 8vw, 110px); }
.rejilla--escalonado .vestido:nth-child(3n+2) .vestido__foto { background: var(--blanco); }

/* 5. Carrusel */
.carrusel { position: relative; }
.rejilla--carrusel {
  display: flex; gap: clamp(16px, 2.4vw, 32px);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 6px 4px 26px; margin: 0 -4px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.rejilla--carrusel::-webkit-scrollbar { display: none; }
.rejilla--carrusel .vestido { flex: 0 0 clamp(260px, 27vw, 360px); scroll-snap-align: start; }
.carrusel__controles { display: flex; align-items: center; gap: 18px; margin-top: 8px; }
.carrusel__barra { flex: 1; height: 1px; background: var(--linea); position: relative; overflow: hidden; }
.carrusel__barra span { position: absolute; inset: 0 auto 0 0; width: 30%; background: var(--tinta); transition: transform .2s linear, width .2s; }
.carrusel__btn { width: 46px; height: 46px; border: 1px solid var(--linea); border-radius: 50%; display: grid; place-items: center; font-size: 18px; transition: background .3s, color .3s, border-color .3s; }
.carrusel__btn:hover { background: var(--tinta); color: #fff; border-color: var(--tinta); }
.carrusel__btn:disabled { opacity: .35; pointer-events: none; }

/* 6. Revista (doble página por vestido) */
.rejilla--revista { grid-template-columns: 1fr; gap: clamp(50px, 8vw, 110px); }
.rejilla--revista .vestido { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(26px, 5vw, 80px); align-items: center; }
.rejilla--revista .vestido:nth-child(even) .vestido__foto { order: 2; }
.rejilla--revista .vestido__info { padding: 0; gap: 16px; position: relative; }
.rejilla--revista .vestido__num { font-family: var(--serif); font-size: clamp(70px, 10vw, 140px); line-height: .8; color: transparent; -webkit-text-stroke: 1px var(--oro); opacity: .7; }
.rejilla--revista .vestido__nombre { font-family: var(--script); font-size: clamp(54px, 7vw, 92px); line-height: 1; }
.rejilla--revista .vestido__nombre small { font-family: var(--sans); }
.rejilla--revista .vestido__precio { font-size: clamp(28px, 3vw, 38px); }
.rejilla--revista .vestido__foto { padding: clamp(10px, 1.6vw, 18px); }
.rejilla--revista .vestido__foto::before { content: ""; position: absolute; inset: -14px 14px 14px -14px; border: 1px solid var(--oro); opacity: .45; z-index: -1; }
.rejilla--revista .vestido:nth-child(even) .vestido__foto::before { inset: -14px -14px 14px 14px; }
.rejilla--revista .btn-wa { align-self: flex-start; padding-inline: 28px; }

/* =====================================================================
   CONTACTO
   ===================================================================== */
.contacto__rejilla { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.contacto__foto { margin: 0; padding: 12px; background: var(--blanco); border: 1px solid var(--linea); box-shadow: var(--sombra); position: relative; }
.contacto__foto::before { content: ""; position: absolute; inset: 22px; border: 1px solid rgba(255, 255, 255, .8); z-index: 1; pointer-events: none; }
.contacto__foto img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.contacto__texto .cabeza { text-align: left; margin: 0 0 30px; }
.contacto__texto .ornamento { justify-content: flex-start; }
.contacto__texto .ornamento::before { display: none; }
.contacto__lista { display: grid; gap: 4px; margin-bottom: 30px; }
.contacto__lista li { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--linea); }
.contacto__lista svg { font-size: 22px; color: var(--oro); }
.contacto__lista small { display: block; font-size: 9.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--suave); }
.contacto__lista b { font-family: var(--serif); font-weight: 500; font-size: 21px; line-height: 1.25; }
.contacto__lista a:hover b { color: var(--oro); }
.contacto__cta { width: 100%; background: var(--tinta); color: #fff; font-size: 11.5px; padding: 18px; }
.contacto__cta::before { background: #1faa55; }
.contacto__cta svg { color: #fff; }
.redes { display: flex; gap: 12px; margin-top: 22px; }
.redes a { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--linea); display: grid; place-items: center; font-size: 19px; transition: background .3s, color .3s, transform .3s var(--curva); }
.redes a:hover { background: var(--tinta); color: #fff; transform: translateY(-3px); }
.creditos { text-align: center; padding: 26px 20px 34px; font-size: 10.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--suave); background: rgba(255, 253, 249, .3); }
.creditos b { font-family: var(--script); font-size: 26px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--oro); display: block; margin-bottom: 4px; }

/* =====================================================================
   BOTONES FLOTANTES
   ===================================================================== */
.wa-flotante {
  position: fixed; z-index: 40; right: clamp(16px, 3vw, 30px); bottom: calc(clamp(16px, 3vw, 30px) + env(safe-area-inset-bottom));
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--wa); color: #fff;
  display: grid; place-items: center; font-size: 32px;
  box-shadow: 0 12px 28px -8px rgba(18, 140, 70, .65);
  transition: transform .4s var(--curva);
}
.wa-flotante::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: pulso 2.4s ease-out infinite; }
@keyframes pulso { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }
.wa-flotante:hover { transform: scale(1.08); }
.wa-flotante__tip {
  position: absolute; right: calc(100% + 14px); top: 50%; transform: translateY(-50%) translateX(6px);
  white-space: nowrap; background: var(--blanco); color: var(--tinta);
  padding: 9px 14px; font-size: 12px; letter-spacing: .06em; box-shadow: var(--sombra-suave); border: 1px solid var(--linea);
  opacity: 0; pointer-events: none; transition: opacity .35s, transform .35s var(--curva);
}
.wa-flotante:hover .wa-flotante__tip, .wa-flotante.saluda .wa-flotante__tip { opacity: 1; transform: translateY(-50%); }

.subir {
  position: fixed; z-index: 40; right: clamp(22px, calc(3vw + 6px), 36px); bottom: calc(clamp(90px, calc(3vw + 76px), 104px) + env(safe-area-inset-bottom));
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--blanco); border: 1px solid var(--linea); color: var(--tinta);
  display: grid; place-items: center; font-size: 18px; box-shadow: var(--sombra-suave);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .4s, visibility .4s, transform .4s var(--curva), background .3s, color .3s;
}
.subir.visible { opacity: 1; visibility: visible; transform: none; }
.subir:hover { background: var(--tinta); color: #fff; }
body.menu-abierto .wa-flotante, body.menu-abierto .subir { opacity: 0; pointer-events: none; }

/* =====================================================================
   VISOR DE FOTOS
   ===================================================================== */
.visor {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(24, 18, 16, .94);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 60px 70px; color: #fff;
  opacity: 0; transition: opacity .35s;
}
.visor[hidden] { display: none; }
.visor.abierto { opacity: 1; }
.visor__figura { margin: 0; display: flex; align-items: center; gap: clamp(24px, 4vw, 60px); max-width: 1100px; width: 100%; height: 100%; }
.visor__foto { height: 100%; flex: 0 1 auto; display: flex; align-items: center; justify-content: center; min-width: 0; }
.visor__foto img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; border: 1px solid rgba(255, 255, 255, .25); padding: 8px; background: rgba(255, 255, 255, .04); transition: opacity .3s, transform .4s var(--curva); }
.visor__foto img.cargando { opacity: 0; transform: scale(.98); }
.visor__info { flex: 0 0 280px; display: flex; flex-direction: column; gap: 12px; }
.visor__contador { font-size: 10px; letter-spacing: .32em; text-transform: uppercase; opacity: .7; }
.visor__info h3 { font-family: var(--serif); font-size: 44px; line-height: 1; }
.visor__precio { margin: 0; font-family: var(--serif); font-style: italic; font-size: 28px; color: var(--oro-claro); }
.visor__detalle { margin: 0 0 8px; font-size: 13px; line-height: 1.8; opacity: .85; }
.visor__cerrar { position: absolute; top: 16px; right: 18px; width: 48px; height: 48px; display: grid; place-items: center; font-size: 24px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 50%; transition: background .3s; }
.visor__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); display: grid; place-items: center; font-size: 22px; transition: background .3s; }
.visor__nav--izq { left: 12px; }
.visor__nav--der { right: 12px; }
.visor__cerrar:hover, .visor__nav:hover { background: rgba(255, 255, 255, .14); }


/* =====================================================================
   FONDO CON MOVIMIENTO
   Colores editables aquí: --vivo-1 ... --vivo-5
   Velocidad: cambia --velocidad (1 = normal, 2 = el doble de lento)
   Para apagarlo: en js/config.js pon  fondoAnimado: false
   ===================================================================== */
:root {
  --vivo-1: #f497b0;   /* rosa chicle */
  --vivo-2: #fbb48a;   /* durazno */
  --vivo-3: #c7a2f5;   /* lila */
  --vivo-4: #f3cf73;   /* dorado */
  --vivo-5: #ff86a8;   /* rosa fucsia suave */
  --velocidad: 1;
}
.fondo-vivo {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: linear-gradient(120deg, #fde8ee, #fbe3d6, #efe2fb, #fdf0d9, #fbdbe6, #fde8ee);
  background-size: 300% 300%;
  animation: degradado calc(12s * var(--velocidad)) ease-in-out infinite !important;
}
@keyframes degradado { 0%, 100% { background-position: 0% 20%; } 50% { background-position: 100% 80%; } }

.mancha {
  position: absolute; display: block; border-radius: 50%;
  width: 60vmax; height: 60vmax; opacity: 1;
  will-change: transform;
}
.mancha--1 { background: radial-gradient(circle, var(--vivo-1) 0%, transparent 60%); top: -20vmax; left: -16vmax; animation: flotar-a calc(13s * var(--velocidad)) ease-in-out infinite alternate !important; }
.mancha--2 { background: radial-gradient(circle, var(--vivo-2) 0%, transparent 60%); bottom: -24vmax; right: -18vmax; animation: flotar-b calc(16s * var(--velocidad)) ease-in-out infinite alternate !important; }
.mancha--3 { background: radial-gradient(circle, var(--vivo-3) 0%, transparent 60%); top: 15%; left: 35%; width: 50vmax; height: 50vmax; animation: flotar-c calc(18s * var(--velocidad)) ease-in-out infinite alternate !important; }
.mancha--4 { background: radial-gradient(circle, var(--vivo-4) 0%, transparent 60%); top: 45%; left: -18vmax; width: 46vmax; height: 46vmax; animation: flotar-b calc(14s * var(--velocidad)) ease-in-out infinite alternate-reverse !important; }
.mancha--5 { background: radial-gradient(circle, var(--vivo-5) 0%, transparent 58%); top: -10vmax; right: -12vmax; width: 42vmax; height: 42vmax; opacity: .85; animation: flotar-a calc(15s * var(--velocidad)) ease-in-out infinite alternate-reverse !important; }
@keyframes flotar-a { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(30vw, 20vh) scale(1.25); } 100% { transform: translate(10vw, 48vh) scale(.9); } }
@keyframes flotar-b { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-28vw, -20vh) scale(1.2); } 100% { transform: translate(-45vw, 10vh) scale(.9); } }
@keyframes flotar-c { 0% { transform: translate(0, 0) scale(.85) rotate(0); } 50% { transform: translate(-34vw, 24vh) scale(1.2) rotate(60deg); } 100% { transform: translate(20vw, -22vh) scale(1) rotate(120deg); } }

/* Destellos que suben flotando */
.destellos { position: absolute; inset: 0; }
.destello {
  position: absolute; bottom: -40px; display: block;
  color: var(--c, var(--oro));
  animation: subir-destello calc(var(--dur, 16s) * var(--velocidad)) linear infinite !important;
  animation-delay: var(--del, 0s) !important;
  will-change: transform, opacity;
}
.destello svg { width: 100%; height: 100%; display: block; animation: titilar 2.2s ease-in-out infinite !important; animation-delay: var(--del, 0s) !important; filter: drop-shadow(0 0 6px rgba(255, 255, 255, .95)) drop-shadow(0 0 2px var(--c)); }
.destello--punto { border-radius: 50%; background: radial-gradient(circle, #fff 0%, var(--c) 45%, transparent 70%); }
@keyframes subir-destello {
  0% { transform: translate3d(0, 0, 0) rotate(0); opacity: 0; }
  8% { opacity: 1; }
  50% { transform: translate3d(var(--x, 30px), -55vh, 0) rotate(160deg); }
  92% { opacity: 1; }
  100% { transform: translate3d(calc(var(--x, 30px) * -1), -112vh, 0) rotate(320deg); opacity: 0; }
}
@keyframes titilar { 0%, 100% { opacity: .45; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.15); } }

/* Pétalos que caen */
.petalo {
  position: absolute; top: -40px; display: block;
  width: var(--t, 16px); height: calc(var(--t, 16px) * .8);
  background: linear-gradient(135deg, #fff 0%, var(--c, #f6a6b8) 55%, var(--c2, #e98aa2) 100%);
  border-radius: 100% 0 100% 0;
  opacity: .85;
  box-shadow: 0 2px 6px rgba(200, 100, 120, .18);
  animation: caer calc(var(--dur, 14s) * var(--velocidad)) linear infinite !important;
  animation-delay: var(--del, 0s) !important;
  will-change: transform;
}
@keyframes caer {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg) rotateX(0deg); }
  25%  { transform: translate3d(var(--x, 60px), 28vh, 0) rotate(90deg) rotateX(180deg); }
  50%  { transform: translate3d(calc(var(--x, 60px) * -.5), 56vh, 0) rotate(180deg) rotateX(360deg); }
  75%  { transform: translate3d(var(--x, 60px), 84vh, 0) rotate(270deg) rotateX(540deg); }
  100% { transform: translate3d(0, 112vh, 0) rotate(360deg) rotateX(720deg); }
}

/* Fondo apagado desde config.js */
body.sin-fondo-vivo .fondo-vivo { display: none; }
body.sin-fondo-vivo .tono-crema { background: var(--crema); }
body.sin-fondo-vivo .tono-blanco, body.sin-fondo-vivo .creditos { background: var(--blanco); }
body.sin-fondo-vivo .tono-beige { background: var(--beige); }
body.sin-fondo-vivo .tono-rosa { background: var(--rosa); }
body.sin-fondo-vivo .tono-noche { background: var(--noche); }

@media (max-width: 640px) {
  .mancha--5 { display: none; }
}

/* =====================================================================
   ANIMACIONES AL DESPLAZARSE
   ===================================================================== */
.revela { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--curva), transform 1s var(--curva); transition-delay: var(--d, 0s); }
.revela.visible { opacity: 1; transform: none; }

/* Aviso de vista previa del panel */
.aviso-borrador { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 80; background: var(--tinta); color: #fff; padding: 10px 18px; font-size: 12px; letter-spacing: .08em; box-shadow: var(--sombra); }

/* =====================================================================
   ADAPTACIÓN A TABLETAS Y CELULARES
   ===================================================================== */
@media (max-width: 1024px) {
  .rejilla--trio, .rejilla--escalonado { grid-template-columns: repeat(2, 1fr); }
  .rejilla--trio .vestido:last-child:nth-child(odd) { grid-column: 1 / -1; max-width: 560px; justify-self: center; width: 100%; }
  .rejilla--escalonado .vestido:nth-child(3n+2) { margin-top: 0; }
  .rejilla--escalonado .vestido:nth-child(even) { margin-top: 70px; }
  .rejilla--escalonado .vestido:last-child:nth-child(odd) { grid-column: 1 / -1; max-width: 560px; justify-self: center; width: 100%; }
  .visor__figura { flex-direction: column; justify-content: center; gap: 18px; }
  .visor__foto { height: auto; max-height: 68vh; }
  .visor__foto img { max-height: 68vh; }
  .visor__info { flex: none; align-items: center; text-align: center; gap: 6px; }
  .visor__info h3 { font-size: 34px; }
  .visor__detalle { display: none; }
}

@media (max-width: 820px) {
  .menu__marco { grid-template-columns: 1fr; align-content: center; }
  .menu__vista { display: none; }
  .cabecera__wa span { display: none; }
  .rejilla--destacado { grid-template-columns: 1fr 1fr; }
  .rejilla--destacado .vestido:first-child { grid-template-columns: 1fr; }
  .rejilla--revista .vestido { grid-template-columns: 1fr; gap: 30px; }
  .rejilla--revista .vestido:nth-child(even) .vestido__foto { order: 0; }
  .rejilla--revista .vestido__num { font-size: 64px; margin-bottom: -10px; }
  .contacto__rejilla { grid-template-columns: 1fr; }
  .contacto__texto .cabeza { text-align: center; }
  .contacto__texto .ornamento { justify-content: center; }
  .contacto__texto .ornamento::before { display: block; }
}

@media (max-width: 899px) { .portada__bajar { display: none; } }

@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .marca__nombre { font-size: 18px; }
  .marca__logo { width: 36px; height: 36px; font-size: 15px; }
  .btn-menu__texto { display: none; }
  .pagina__marco { padding-top: 60px; }
  /* En celular: una foto grande por fila */
  .rejilla--trio, .rejilla--escalonado, .rejilla--destacado, .rejilla--duo { grid-template-columns: 1fr; gap: 46px; }
  .rejilla--escalonado .vestido:nth-child(n) { margin-top: 0; }
  .rejilla--trio .vestido:last-child:nth-child(odd), .rejilla--escalonado .vestido:last-child:nth-child(odd) { max-width: none; }
  .rejilla--destacado .vestido:not(:first-child) .vestido__marco { aspect-ratio: 3 / 4; }
  .rejilla--carrusel .vestido { flex-basis: 80vw; }
  .rejilla--duo .vestido__marco { aspect-ratio: 3 / 4.6; }
  .carrusel__btn { display: none; }
  .visor { padding: 64px 14px 24px; }
  .visor__nav { top: auto; bottom: 22px; transform: none; width: 44px; height: 44px; }
  .visor__nav--izq { left: 14px; } .visor__nav--der { right: 14px; }
  .visor__info .btn-wa { padding: 12px 16px; }
  .wa-flotante { width: 56px; height: 56px; font-size: 30px; }
  .portada__direccion { font-size: 19px; }
  .pie-pagina { font-size: 9px; letter-spacing: .24em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .revela { opacity: 1; transform: none; transition: none; }
}
