/* ==========================================================
   Para Naomi · estilos
   Paleta base: Romántica y Soñadora
   Extras suaves (azul y amarillo) para sus colores favoritos
   ========================================================== */
:root {
  --rosa: #FAD4D8;          /* Rosa suave · fondo principal */
  --durazno: #FFB7B2;       /* Rosa durazno · acentos */
  --hueso: #FDFBF7;         /* Blanco hueso · fondo general */
  --texto: #5C3A41;         /* Frambuesa suave · textos */
  --dorado: #E8C59C;        /* Dorado cálido · detalles y botones */

  --azul: #C4E0F0;          /* guiño a su color favorito */
  --azul-fuerte: #8FBEDD;
  --amarillo: #FFE9A9;      /* guiño a su otro color favorito */

  --texto-suave: rgba(92, 58, 65, .78);
  --linea: rgba(92, 58, 65, .12);
  --sombra: 0 12px 34px rgba(92, 58, 65, .12);
  --sombra-suave: 0 6px 18px rgba(92, 58, 65, .09);
  --radio: 22px;

  --f-titulo: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --f-script: 'Dancing Script', 'Brush Script MT', cursive;
  --f-cuerpo: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  font-family: var(--f-cuerpo);
  color: var(--texto);
  background: var(--hueso);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
body.is-admin { padding-bottom: 84px; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; color: inherit; background: none; border: 0; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-titulo); line-height: 1.2; font-weight: 600; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--azul-fuerte); outline-offset: 2px; }

.container { width: min(1120px, 100% - 40px); margin-inline: auto; position: relative; z-index: 1; }
.script { font-family: var(--f-script); font-weight: 700; }

/* ---------- Burbujas de fondo ---------- */
.bubbles { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.bubble {
  position: absolute; bottom: -140px; border-radius: 50%; opacity: 0;
  animation: rise linear infinite;
}
@keyframes rise {
  0%   { transform: translate3d(0, 0, 0); opacity: 0; }
  10%  { opacity: .55; }
  90%  { opacity: .4; }
  100% { transform: translate3d(var(--sway, 30px), -115vh, 0); opacity: 0; }
}

main, .footer, .nav { position: relative; z-index: 1; }

/* ---------- Navegación ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(253, 251, 247, .82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.nav.is-scrolled { border-color: var(--linea); box-shadow: 0 4px 20px rgba(92, 58, 65, .06); }
.nav__inner { width: min(1120px, 100% - 40px); margin: auto; display: flex; align-items: center; gap: 16px; height: 62px; }
.nav__brand { font-family: var(--f-script); font-size: 1.9rem; font-weight: 700; text-decoration: none; margin-right: auto; }
.nav__links { display: flex; gap: 4px; }
.nav__links a {
  text-decoration: none; padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  transition: background .2s;
}
.nav__links a:hover { background: var(--rosa); }
.nav__lock { font-size: 1rem; opacity: .45; width: 36px; height: 36px; border-radius: 50%; transition: opacity .2s, background .2s; }
.nav__lock:hover, body.is-admin .nav__lock { opacity: 1; background: var(--rosa); }
.nav__burger { display: none; width: 40px; height: 40px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav__burger span { width: 22px; height: 2px; background: var(--texto); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: 999px; font-weight: 700; text-decoration: none;
  background: var(--dorado); color: var(--texto); border: 2px solid var(--dorado);
  box-shadow: 0 6px 16px rgba(232, 197, 156, .45); transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(232, 197, 156, .55); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn--ghost { background: transparent; box-shadow: none; }
.btn--ghost:hover { background: rgba(232, 197, 156, .25); box-shadow: none; }
.btn--sm { padding: 7px 16px; font-size: .88rem; box-shadow: none; }
.btn--danger { background: transparent; border-color: #c9606f; color: #a23b4a; box-shadow: none; }
.btn--danger:hover { background: #fbe3e6; box-shadow: none; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .92); box-shadow: var(--sombra-suave); font-size: .95rem; transition: transform .2s;
}
.icon-btn:hover { transform: scale(1.1); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; padding: 56px 0 130px;
  background:
    radial-gradient(circle at 12% 18%, var(--rosa) 0, transparent 52%),
    radial-gradient(circle at 88% 26%, rgba(196, 224, 240, .85) 0, transparent 48%),
    radial-gradient(circle at 62% 96%, rgba(255, 233, 169, .75) 0, transparent 44%),
    var(--hueso);
}
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; min-height: calc(100svh - 190px); }
.hero__eyebrow { font-size: 1.7rem; color: var(--texto-suave); }
.hero__title { margin: 4px 0 14px; display: flex; flex-direction: column; }
.hero__name { font-family: var(--f-script); font-size: clamp(3.4rem, 9vw, 6.4rem); line-height: 1; font-weight: 700; }
.hero__surname { font-family: var(--f-titulo); font-size: clamp(1.2rem, 3vw, 1.9rem); letter-spacing: .14em; text-transform: uppercase; color: var(--texto-suave); margin-top: 6px; }
.hero__tagline { font-size: 1.15rem; max-width: 520px; color: var(--texto-suave); margin-bottom: 26px; }

.counter-label { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .82rem; color: var(--texto-suave); margin-bottom: 10px; }
.counter { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; max-width: 560px; }
.tile {
  background: rgba(255, 255, 255, .78); border: 1px solid rgba(255, 255, 255, .9); border-radius: 18px;
  padding: 12px 4px 8px; text-align: center; box-shadow: var(--sombra-suave);
}
.tile b { display: block; font-family: var(--f-titulo); font-size: clamp(1.4rem, 3.4vw, 2rem); line-height: 1.1; font-variant-numeric: tabular-nums; }
.tile small { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--texto-suave); }
.tile:nth-child(1) { border-bottom: 4px solid var(--durazno); }
.tile:nth-child(2) { border-bottom: 4px solid var(--azul-fuerte); }
.tile:nth-child(3) { border-bottom: 4px solid var(--dorado); }
.tile:nth-child(4) { border-bottom: 4px solid var(--rosa); }
.tile:nth-child(5) { border-bottom: 4px solid var(--azul); }
.tile:nth-child(6) { border-bottom: 4px solid var(--amarillo); }
.counter-total { margin-top: 12px; font-weight: 600; }
.countdown {
  margin-top: 14px; display: inline-block; padding: 8px 18px; border-radius: 999px; font-weight: 700;
  background: var(--amarillo); box-shadow: var(--sombra-suave);
}
.countdown:empty { display: none; }
.hero__cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }

.hero__visual { position: relative; display: grid; place-items: center; padding: 20px; }
.hero__visual::before, .hero__visual::after { content: ""; position: absolute; border-radius: 50%; z-index: 0; }
.hero__visual::before { width: 78%; aspect-ratio: 1; background: var(--azul); opacity: .7; top: 4%; right: 2%; }
.hero__visual::after { width: 44%; aspect-ratio: 1; background: var(--amarillo); bottom: 2%; left: 4%; opacity: .9; }
.hero__photo {
  position: relative; z-index: 1; width: min(360px, 78vw); aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 999px 999px 30px 30px; border: 8px solid #fff; box-shadow: var(--sombra);
  background: linear-gradient(160deg, var(--rosa), var(--azul));
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; cursor: zoom-in; }
.ph { width: 100%; height: 100%; display: grid; place-items: center; font-size: 6rem; }
.floaty { position: absolute; z-index: 2; font-size: 2rem; animation: floaty 5s ease-in-out infinite; filter: drop-shadow(0 4px 6px rgba(92, 58, 65, .18)); }
.floaty:nth-of-type(1) { top: 6%; left: 8%; }
.floaty:nth-of-type(2) { top: 18%; right: 2%; animation-delay: -1.5s; }
.floaty:nth-of-type(3) { bottom: 14%; right: 8%; animation-delay: -3s; }
.floaty:nth-of-type(4) { bottom: 4%; left: 14%; animation-delay: -2s; }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-12px) rotate(5deg); } }
.wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 90px; z-index: 1; display: block; }
.wave path { fill: var(--hueso); }

/* ---------- Secciones ---------- */
.section { position: relative; padding: 90px 0; }
.section--tint { background: linear-gradient(180deg, rgba(250, 212, 216, .38), rgba(250, 212, 216, .16)); }
.section--grad { background: linear-gradient(180deg, var(--hueso), rgba(196, 224, 240, .28)); }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 46px; }
.eyebrow { font-family: var(--f-script); font-weight: 700; font-size: 1.7rem; color: var(--texto-suave); }
.section__head h2 { font-size: clamp(2rem, 5vw, 3rem); }
.section__sub { margin-top: 8px; color: var(--texto-suave); font-size: 1.05rem; }
.divider { display: block; margin-top: 12px; color: var(--dorado); font-size: 1.1rem; letter-spacing: .6em; }
.divider::before, .divider::after { content: ""; display: inline-block; width: 46px; height: 2px; background: var(--dorado); vertical-align: middle; margin: 0 14px 0 0; opacity: .7; }
.divider::after { margin: 0 0 0 -.1em; }
.tools-row { display: none; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.badge { display: inline-block; background: var(--amarillo); border-radius: 999px; padding: 2px 12px; font-size: .78rem; font-weight: 700; margin-top: 8px; }

/* Visibilidad de elementos de administrador */
.admin-only { display: none !important; }
body.is-admin .admin-only { display: flex !important; }
body.is-admin .tools-row { display: flex !important; }
.section--off { display: none; }
body.is-admin .section--off { display: block; opacity: .6; }
.tools { position: absolute; top: 10px; right: 10px; gap: 6px; z-index: 5; }

/* Animación de entrada */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.in { opacity: 1; transform: none; }

.empty {
  text-align: center; padding: 40px 20px; border: 2px dashed var(--dorado); border-radius: var(--radio);
  background: rgba(255, 255, 255, .6); color: var(--texto-suave);
}

/* ---------- Graduación ---------- */
.grad {
  position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 0; background: #fff;
  border-radius: 32px; box-shadow: var(--sombra); overflow: hidden; border: 1px solid var(--linea);
}
.grad__text { padding: clamp(28px, 5vw, 56px); display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.grad__cap { font-size: 3rem; line-height: 1; }
.grad__text h3 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
.chip { display: inline-block; align-self: flex-start; background: var(--rosa); border-radius: 999px; padding: 3px 14px; font-size: .85rem; font-weight: 700; }
.grad__body { white-space: pre-line; font-size: 1.05rem; color: var(--texto-suave); }
.grad__img { position: relative; min-height: 320px; background: linear-gradient(150deg, var(--azul), var(--amarillo) 60%, var(--rosa)); }
.grad__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.grad__img .ph { position: absolute; inset: 0; font-size: 5rem; gap: 12px; }
.sparkle { position: absolute; font-size: 1.6rem; animation: floaty 4s ease-in-out infinite; }

/* ---------- Línea de tiempo ---------- */
.tl-range { text-align: center; font-weight: 700; margin: -18px 0 30px; color: var(--texto-suave); }
.timeline { position: relative; max-width: 1000px; margin: 0 auto; padding: 6px 0; }
.timeline::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 4px; transform: translateX(-50%); border-radius: 4px;
  background: linear-gradient(var(--durazno), var(--azul-fuerte) 50%, var(--dorado));
}
.timeline.is-open::before {
  -webkit-mask-image: linear-gradient(#000 0, #000 88%, transparent);
  mask-image: linear-gradient(#000 0, #000 88%, transparent);
}
.tl-marker { position: relative; z-index: 2; display: flex; justify-content: center; margin: 0 0 34px; }
.tl-marker--end { margin: 6px 0 0; }
.tl-pill {
  display: inline-flex; align-items: center; gap: 12px; background: #fff; border: 2px solid var(--dorado);
  border-radius: 999px; padding: 10px 24px 10px 14px; box-shadow: var(--sombra-suave);
}
.tl-pill__icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--amarillo); font-size: 1.3rem; }
.tl-pill strong { display: block; font-family: var(--f-titulo); line-height: 1.2; }
.tl-pill small { color: var(--texto-suave); font-weight: 600; }
.tl-pill--open { border-style: dashed; border-color: var(--azul-fuerte); }
.tl-pill--open .tl-pill__icon { background: var(--azul); font-size: 1.7rem; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.18); } }

.tl-item { position: relative; width: 50%; padding: 0 48px 42px 0; }
.tl-item.right { margin-left: 50%; padding: 0 0 42px 48px; }
.tl-dot {
  position: absolute; top: 20px; right: -22px; width: 44px; height: 44px; border-radius: 50%; z-index: 3;
  display: grid; place-items: center; font-size: 1.25rem; background: var(--hueso); border: 3px solid var(--durazno); box-shadow: var(--sombra-suave);
}
.tl-item.right .tl-dot { right: auto; left: -22px; border-color: var(--azul-fuerte); }
.tl-item:nth-child(3n) .tl-dot { border-color: var(--dorado); }
.tl-card {
  position: relative; background: #fff; border-radius: var(--radio); padding: 18px 18px 22px; box-shadow: var(--sombra-suave);
  border: 1px solid rgba(250, 212, 216, .8); transition: transform .3s, box-shadow .3s;
}
.tl-card:hover { transform: translateY(-4px); box-shadow: var(--sombra); }
.tl-card h3 { font-size: 1.3rem; margin: 10px 0 6px; }
.tl-card p { color: var(--texto-suave); white-space: pre-line; }
.tl-media { display: grid; gap: 6px; grid-template-columns: repeat(2, 1fr); border-radius: 16px; overflow: hidden; margin-bottom: 4px; }
.tl-media__item { position: relative; display: block; overflow: hidden; aspect-ratio: 1; cursor: zoom-in; background: var(--rosa); }
.tl-media__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.tl-media__item:hover img { transform: scale(1.06); }
.tl-media.n1 { grid-template-columns: 1fr; }
.tl-media.n1 .tl-media__item { aspect-ratio: 4 / 3; }
.tl-media.n3 .tl-media__item:first-child, .tl-media.n5 .tl-media__item:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.tl-media.n4 .tl-media__item { aspect-ratio: 4 / 3; }
.tl-media .more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(92, 58, 65, .55); color: #fff; font-size: 1.6rem; font-weight: 700; }
.tl-empty { text-align: center; margin: 0 auto 34px; max-width: 420px; position: relative; z-index: 2; }

/* ---------- Galería ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 30px; }
.chip-btn { padding: 7px 18px; border-radius: 999px; font-weight: 700; font-size: .9rem; background: #fff; border: 2px solid var(--rosa); transition: background .2s, border-color .2s; }
.chip-btn:hover { background: var(--rosa); }
.chip-btn.is-active { background: var(--dorado); border-color: var(--dorado); }
.masonry { columns: 3 260px; column-gap: 16px; }
.shot {
  position: relative; margin: 0 0 16px; break-inside: avoid; border-radius: 18px; overflow: hidden; background: var(--rosa);
  box-shadow: var(--sombra-suave); cursor: zoom-in;
}
.shot img { width: 100%; height: auto; transition: transform .6s; }
.shot:hover img { transform: scale(1.05); }
.shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 12px; color: #fff; font-weight: 600; font-size: .92rem;
  background: linear-gradient(transparent, rgba(60, 30, 36, .72)); opacity: 0; transition: opacity .3s;
}
.shot:hover figcaption, .shot:focus-within figcaption { opacity: 1; }
@media (hover: none) { .shot figcaption { opacity: 1; } }
.shot video, .tl-media__item video { width: 100%; height: auto; display: block; background: #3b2327; }
.tl-media__item video { height: 100%; object-fit: cover; }
.play-badge {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; padding-left: 4px; font-size: 1.2rem; color: var(--texto);
  background: rgba(255, 255, 255, .88); box-shadow: var(--sombra); pointer-events: none;
}
.thumb video { width: 100%; height: 100%; object-fit: cover; }
.lb-media video { max-width: 100%; max-height: 78svh; margin: auto; border-radius: 12px; background: #000; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.gallery-more { text-align: center; margin-top: 20px; }
.gallery-count { text-align: center; margin-bottom: 14px; color: var(--texto-suave); font-weight: 600; }

/* ---------- Favoritos ---------- */
.favs { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.fav {
  --acc: var(--durazno); position: relative; background: #fff; border-radius: var(--radio); padding: 26px 22px 24px;
  box-shadow: var(--sombra-suave); border-top: 6px solid var(--acc); transition: transform .3s, box-shadow .3s; overflow: hidden;
}
.fav:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: var(--sombra); }
.fav.acc-1 { --acc: var(--azul-fuerte); }
.fav.acc-2 { --acc: var(--dorado); }
.fav.acc-3 { --acc: var(--rosa); }
.fav__icon { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; font-size: 1.9rem; margin-bottom: 14px; background: color-mix(in srgb, var(--acc) 38%, #fff); }
.fav h3 { font-size: 1.25rem; margin-bottom: 6px; }
.fav p { color: var(--texto-suave); white-space: pre-line; }
.fav img { margin-top: 14px; border-radius: 14px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; cursor: zoom-in; }

/* ---------- Carta ---------- */
.letter {
  position: relative; max-width: 760px; margin: 0 auto; background: #fffdf8; border-radius: 10px;
  padding: clamp(30px, 6vw, 64px); box-shadow: var(--sombra); border: 1px solid rgba(232, 197, 156, .6);
  background-image: linear-gradient(transparent 0, transparent 95%, rgba(232, 197, 156, .22) 95%);
  background-size: 100% 2.1rem;
}
.letter::before { content: "💌"; position: absolute; top: -22px; left: 50%; transform: translateX(-50%); font-size: 2.2rem; filter: drop-shadow(0 4px 6px rgba(92, 58, 65, .2)); }
.letter h3 { font-family: var(--f-script); font-size: 2.6rem; font-weight: 700; margin-bottom: 14px; }
.letter__body { white-space: pre-line; font-size: 1.1rem; line-height: 2.1rem; }
.letter__sign { margin-top: 24px; font-family: var(--f-script); font-weight: 700; font-size: 1.9rem; text-align: right; }
.spotify { max-width: 760px; margin: 30px auto 0; }
.spotify iframe { width: 100%; height: 152px; border: 0; border-radius: 14px; }

/* ---------- Pie ---------- */
.footer { text-align: center; padding: 56px 20px 70px; background: var(--rosa); }
.footer .script { font-size: 2.2rem; display: block; }
.footer p { color: var(--texto-suave); }
.footer .heart { color: #d9626f; display: inline-block; animation: pulse 1.8s ease-in-out infinite; }

/* ---------- Barra de administrador ---------- */
.adminbar {
  position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 60; width: max-content; max-width: calc(100% - 20px);
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center;
  background: #fff; border: 2px solid var(--dorado); border-radius: 22px; padding: 8px 10px; box-shadow: 0 14px 40px rgba(92, 58, 65, .25);
}
.adminbar__tag { font-weight: 800; padding: 0 8px; }
.adminbar__status { font-size: .78rem; color: var(--texto-suave); padding: 0 6px; }
.adminbar__status.warn { display: block !important; width: 100%; text-align: center; color: #a23b4a; font-weight: 800; font-size: .82rem; padding: 4px 8px; background: #fbe3e6; border-radius: 12px; }
.adminbar button { padding: 7px 13px; border-radius: 999px; font-weight: 700; font-size: .85rem; background: var(--hueso); border: 1px solid var(--linea); }
.adminbar button:hover { background: var(--rosa); }
.adminbar button.is-dirty { background: var(--amarillo); border-color: var(--dorado); }

/* ---------- Modal ---------- */
.modal-wrap {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px;
  background: rgba(92, 58, 65, .5); backdrop-filter: blur(4px); animation: fade .25s;
}
@keyframes fade { from { opacity: 0; } }
.modal {
  width: min(560px, 100%); max-height: calc(100svh - 32px); overflow: auto; background: var(--hueso); border-radius: 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .3); animation: pop .3s;
}
.modal--wide { width: min(720px, 100%); }
@keyframes pop { from { transform: translateY(16px) scale(.97); opacity: 0; } }
.modal__head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; background: var(--rosa); }
.modal__head h3 { font-size: 1.25rem; }
.modal__body { padding: 20px; }
.modal form { display: grid; gap: 14px; }
.field { display: grid; gap: 5px; font-weight: 700; font-size: .92rem; }
.field input[type="text"], .field input[type="date"], .field input[type="password"], .field textarea {
  width: 100%; font: inherit; font-weight: 400; color: var(--texto); padding: 10px 14px; background: #fff;
  border: 2px solid rgba(232, 197, 156, .7); border-radius: 14px;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--azul-fuerte); box-shadow: 0 0 0 4px rgba(143, 190, 221, .3); }
.field small { font-weight: 400; color: var(--texto-suave); }
.field--check { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.field--check input { width: 20px; height: 20px; accent-color: #d9626f; }
.imgpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.imgpick:empty { display: none; }
.thumb { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--rosa); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 255, 255, .95); font-size: .7rem; box-shadow: var(--sombra-suave); }
.imgpick__bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.modal__actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 6px; }
.modal__actions .push { margin-right: auto; }
.confirm-msg { margin-bottom: 18px; }
.note { background: var(--amarillo); border-radius: 14px; padding: 12px 16px; font-size: .92rem; }
.steps { padding-left: 20px; display: grid; gap: 8px; margin: 12px 0 18px; }
.steps code { background: var(--rosa); padding: 1px 6px; border-radius: 6px; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(40, 20, 24, .92); display: grid; place-items: center; animation: fade .25s; padding: 20px; }
.lightbox figure { max-width: min(1100px, 100%); text-align: center; }
.lightbox img { max-width: 100%; max-height: 78svh; margin: auto; border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lightbox figcaption { color: #fff; margin-top: 14px; font-weight: 600; min-height: 1.5em; }
.lb-close, .lb-nav { position: absolute; color: #fff; background: rgba(255, 255, 255, .15); border-radius: 50%; width: 46px; height: 46px; font-size: 1.5rem; transition: background .2s; }
.lb-close:hover, .lb-nav:hover { background: rgba(255, 255, 255, .3); }
.lb-close { top: 16px; right: 16px; }
.lb-nav { top: 50%; transform: translateY(-50%); font-size: 2rem; line-height: 1; padding-bottom: 4px; }
.lb-prev { left: 14px; }
.lb-next { right: 14px; }

/* ---------- Toast y confeti ---------- */
.toast {
  position: fixed; left: 50%; bottom: 100px; transform: translate(-50%, 20px); z-index: 150; opacity: 0; pointer-events: none;
  background: var(--texto); color: #fff; padding: 11px 22px; border-radius: 999px; font-weight: 600; box-shadow: var(--sombra); transition: opacity .3s, transform .3s; max-width: calc(100% - 30px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: #a23b4a; }
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 130; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; min-height: 0; }
  .hero__tagline, .counter { margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .hero__visual { order: -1; max-width: 420px; margin: 0 auto; }
  .grad { grid-template-columns: 1fr; }
  .grad__img { min-height: 260px; order: -1; }
}
@media (max-width: 760px) {
  .nav__burger { display: flex; }
  .nav__links {
    position: absolute; top: 62px; left: 0; right: 0; flex-direction: column; background: var(--hueso); padding: 10px 20px 18px;
    border-bottom: 1px solid var(--linea); box-shadow: 0 14px 20px rgba(92, 58, 65, .08); display: none;
  }
  .nav__links.open { display: flex; }
  .nav__links a { padding: 12px 14px; }
  .nav__brand { margin-right: auto; }
}
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .counter { grid-template-columns: repeat(3, 1fr); }
  .timeline::before { left: 22px; transform: none; }
  .tl-item, .tl-item.right { width: 100%; margin-left: 0; padding: 0 0 34px 64px; }
  .tl-dot, .tl-item.right .tl-dot { left: 0; right: auto; }
  .tl-marker { justify-content: flex-start; }
  .tl-pill { margin-left: 0; }
  .tl-empty { text-align: left; margin-left: 64px; }
  .masonry { columns: 2 140px; column-gap: 10px; }
  .shot { margin-bottom: 10px; }
  .adminbar { border-radius: 18px; }
  .adminbar__status { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .bubbles { display: none; }
}
