/* ============================================================================
   LOVEXSOLEDAD · Hoja de estilos (CSS puro, sin Bootstrap)
   ----------------------------------------------------------------------------
   Puntos de personalización rápida:
     - Colores del tema ......... variables dentro de :root
     - Imagen del HERO .......... regla .hero-bg (más abajo)
     - Tipografía ............... @font-face (archivos en assets/fonts/)
   Los logos y las fotos se cambian desde el HTML y desde js/photos.js.
   ========================================================================== */

/* ── FUENTE LOCAL (Outfit) ── */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/outfit-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/outfit-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ── VARIABLES DEL TEMA ── */
:root {
  --bg-dark: #F4F7F8;
  --bg-card: #FFFFFF;
  --accent-1: #082A60;
  --accent-2: #034AB4;
  --accent-3: #053F9A;
  --accent-4: #099248;
  --accent-1-rgb: 204, 0, 102;
  --accent-2-rgb: 255, 102, 153;
  --accent-3-rgb: 255, 179, 204;
  --border-color: #DDE5EA;
  --hero-gradient: linear-gradient(180deg, rgba(13, 0, 16, .4) 0%, rgba(13, 0, 16, .15) 40%, rgba(13, 0, 16, .88) 100%);
  --btn-gradient: linear-gradient(135deg,#099248, #034AB4);
  --nav-bg: #F4F7F8;
  --theme-color: #F4F7F8;
  --text-primary: #082A60;
  --muted: #4B5563;
  --red: #ED4956;
  --nav-h: 64px;

  /* Colores principales */
  --color-primary: #034AB4;
  --color-primary-dark: #082A60;
  --color-primary-light: #053F9A;

  /* Verdes */
  --color-secondary: #099248;
  --color-secondary-light: #21AC3B;
  --color-secondary-dark: #08783D;

  /* Fondos */
  --color-background: #F4F7F8;
  --color-surface: #FFFFFF;

  /* Textos */
  --color-text: #082A60;
  --color-text-secondary: #4B5563;
  --color-text-light: #FFFFFF;

  /* Estados */
  --color-success: #099248;
  --color-danger: #DC2626;
  --color-warning: #F59E0B;

  /* Bordes */
  --color-border: #DDE5EA;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100dvh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, .06) 2px, rgba(0, 0, 0, .06) 4px);
  pointer-events: none;
  z-index: 0;
}

/* Iconos inline */
.ic { display: inline-block; vertical-align: -2px; }
.ic-star { color: var(--accent-4); }

/* ── NAVBAR ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 3.75rem;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}
.navbar-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.navbar-logo img { height: 2.5rem; width: auto;}
.navbar-logo-secondary { height: 22px; width: auto; filter: brightness(0) invert(1); opacity: .8; }
.navbar-brand {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--accent-2), var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── HERO ── */
.hero {
  position: relative;
  overflow: hidden;
  display: block;
  padding: 0;
  justify-items: center;
}
/* ══════════════════════════════════════════════════════════════════════════
   CONTENIDO DEL HERO
   El hero crece con su contenido para que nunca se recorte. Reemplaza
   assets/hero/hero.jpg por tu propia imagen si quieres un fondo fotográfico.
   ══════════════════════════════════════════════════════════════════════════ */
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('/assets/hero/hero.png');
  background-size: cover;
  background-position: center 25%;
  filter: brightness(.55) saturate(1.3);
  transform: scale(1.04);
  transition: transform 8s ease;
}

.hero-bg img { max-width: 100%; object-fit: contain; }
/*.hero-overlay { position: absolute; inset: 0; background: var(--hero-gradient); }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none; }
.hero-orb-1 { width: 300px; height: 300px; background: radial-gradient(circle, rgba(var(--accent-2-rgb), .35), transparent 80%); top: -80px; left: -60px; }
.hero-orb-2 { width: 250px; height: 250px; background: radial-gradient(circle, rgba(var(--accent-3-rgb), .3), transparent 80%); top: -40px; right: -40px; }
.hero-orb-3 { width: 200px; height: 200px; background: radial-gradient(circle, rgba(var(--accent-1-rgb), .25), transparent 80%); bottom: 60px; left: 20%; }*/
.hero-content { position: relative; z-index: 2; padding: 0px 24px 20px; }
.hero-badge {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .25);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-radius: 100px;
  padding: 7px 18px;
  margin-bottom: clamp(30px, 4vw,120px);
}
.hero-badge span {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-3);
  animation: pulseAcc 2s infinite;
}
@keyframes pulseAcc {
  0%, 100% { box-shadow: 0 0 4px var(--accent-3); }
  50% { box-shadow: 0 0 16px var(--accent-3), 0 0 30px var(--accent-3); }
}

.content{
  justify-content: space-between;
}

.hero-date svg { flex-shrink: 0; }

.texto-pincel {
    display: flex;
    justify-content: center;
    align-items: center;

    background-image: url("/assets/logos/pinceda.svg");
    background-size: 100% 50%;
    background-repeat: no-repeat;
    background-position: center;
    padding: 5px 45px;
    box-sizing: border-box;
    margin-bottom: 40px;
}

.texto-pincel span {
    color: white;
    font-size: clamp(12px, 8vw, 100px);
    font-weight: 300;
}

/* ── DIVISOR NEÓN ── */
.neon-divider {
  height: 8px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent-1), var(--accent-3), var(--accent-4), var(--accent-2));
  background-size: 200% 100%;
  animation: neonFlow 3s linear infinite;
  box-shadow: 0 0 12px rgba(0, 0, 0, .3);
}
@keyframes neonFlow {
  0% { background-position: 0 0; }
  100% { background-position: 200% 0; }
}

/* ── PASOS ── */
.steps-wrap { padding: 32px 16px 48px; max-width: 540px; margin: 0 auto; position: relative; z-index: 1; }
.steps-label {
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-1);
  margin-bottom: 22px;
}
.steps-label svg { vertical-align: -2px; }
.step-card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 22px;
  margin-bottom: 14px;
  border: 1.5px solid transparent;
  box-shadow: 0 2px 20px rgba(0, 0, 0, .3);
  transition: border-color .3s, box-shadow .3s, background .3s;
  backdrop-filter: blur(8px);
}
.step-card.active {
  border-color: var(--accent-2);
  box-shadow: 0 0 20px rgba(0, 0, 0, .3), 0 4px 24px rgba(0, 0, 0, .3);
  background: rgba(255, 255, 255, .05);
}
.step-card.done {
  border-color: var(--accent-3);
  box-shadow: 0 0 20px rgba(0, 0, 0, .2);
  background: rgba(255, 255, 255, .03);
}
.step-card.locked { opacity: .6; }
.step-num { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 5px; }
.step-card.active .step-num { color: var(--accent-2); }
.step-card.done .step-num { color: var(--accent-3); }
.step-card.locked .step-num { color: var(--muted); }
.step-title { font-size: 1.12rem; font-weight: 800; margin-bottom: 8px; color: var(--text-primary); }
.step-desc { font-size: .9rem; color: var(--muted); line-height: 1.5; margin-bottom: 18px; }
.step-desc a { color: var(--accent-3); font-weight: 700; text-decoration: none; }
.step-desc a:hover { text-decoration: underline; }

/* ── BOTÓN ── */
.btn-gate {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 20px;
  background: var(--btn-gradient);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 0 20px rgba(0, 0, 0, .25), 0 4px 18px rgba(0, 0, 0, .3);
  transition: transform .15s, box-shadow .2s, filter .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn-gate:hover { filter: brightness(1.12); transform: translateY(-2px); box-shadow: 0 0 32px rgba(0, 0, 0, .4), 0 6px 24px rgba(0, 0, 0, .3); }
.btn-gate:active { transform: scale(.98); }
.btn-gate.done { background: linear-gradient(135deg, var(--accent-3), #009920); cursor: default; pointer-events: none; }
.btn-gate:disabled { cursor: default; }

.lock-area { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 0; }
.lock-icon {
  width: 52px;
  height: 52px;
  border: 2px dashed rgba(255, 255, 255, .2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lock-msg { font-size: 13px; color: var(--muted); text-align: center; }

/* ── BANNER DE ÉXITO ── */
.success-banner {
  display: none;
  background: rgba(0, 200, 100, .1);
  border: 1px solid var(--accent-4);
  color: var(--accent-3);
  text-align: center;
  padding: 13px 18px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 14px;
  margin-bottom: 14px;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.success-banner.show { display: flex; }

/* ── GALERÍA ── */
.gallery-wrap { display: none; }
.gallery-wrap.visible { display: block; }
.gallery-section-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-3);
  text-align: center;
  padding: 8px 0 14px;
}
.gallery-section-label svg { vertical-align: -2px; }
.gallery-grid { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; margin-top: 4px; }
@media (min-width: 480px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
.gallery-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 14px rgba(0, 0, 0, .4);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: 0 0 24px rgba(0, 0, 0, .5), 0 8px 28px rgba(0, 0, 0, .4); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.gallery-item:hover img { transform: scale(1.06); }
.gi-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .75) 0%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px 10px;
}
.gi-heart {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  -webkit-tap-highlight-color: transparent;
  transition: transform .15s;
}
.gi-heart:active { transform: scale(1.3); }
.gi-heart svg { transition: fill .2s, transform .2s; }
.gi-heart.liked svg { fill: var(--red); stroke: var(--red); animation: heartpop .3s ease; }
@keyframes heartpop {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}
.gi-views { display: flex; align-items: center; gap: 4px; color: rgba(255, 255, 255, .75); font-size: 12px; font-weight: 600; }
.gallery-empty {
  margin-top: 12px;
  padding: 20px;
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  border: 1px dashed var(--border-color);
  border-radius: 14px;
}
.gallery-empty code { color: var(--accent-3); }

/* ── COMPARTIR ── */
.share-section {
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--color-text);
  border-radius: 20px;
  padding: 26px 22px;
  margin: 22px 0;
  text-align: center;
  backdrop-filter: blur(8px);
}
.share-title { font-size: 1.15rem; font-weight: 800; margin-bottom: 7px; color: var(--text-primary); }
.share-sub { font-size: .85rem; color: var(--muted); margin-bottom: 18px; line-height: 1.4; }
.share-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.btn-share-page {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .1);
  border: 1.5px solid var(--accent-1);
  color: var(--color-text);
  font-family: 'Outfit', sans-serif;
  font-size: .88rem;
  font-weight: 700;
  padding: 11px 18px;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, transform .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn-share-page:hover { background: rgba(255, 255, 255, .18); transform: translateY(-1px); }

/* ── FOOTER ── */
footer {
  padding: 26px 20px 48px;
  text-align: center;
  background: var(--nav-bg);
  border-top: 1px solid var(--accent-1);
  position: relative;
  z-index: 1;
}
.footer-logo-main {
  display: block;
  margin: 0 auto 20px;
  height: 46px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: .6;
}
.footer-name {
  font-size: 1.25rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--accent-2), var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 4px;
  text-decoration: none;
}
.footer-sub { font-size: 1rem; color: var(--muted); }
.social-bar { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 18px; }
.social-link { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); color: var(--accent-2); transition: background .2s, transform .2s, border-color .2s; }
.social-link:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.3); transform: translateY(-2px); }
.footer-logos { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 18px; flex-wrap: wrap; }
.footer-logos img { height: 50px; width: auto; opacity: .8; transition: opacity .2s; }
.footer-logos img:hover { opacity: .9; }

/* ── LIGHTBOX ── */
.lb {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #1b2057;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.lb.active { opacity: 1; pointer-events: all; }
.lb-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  flex-shrink: 0;
  background: #1b2057;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.lb-counter-top { font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .6); }
.lb-close {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, .08);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background .2s;
  -webkit-tap-highlight-color: transparent;
}
.lb-close:hover { background: rgba(var(--accent-2-rgb), .3); }
.lb-img-wrap { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; min-height: 0; }
.lb-img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; transition: transform .3s cubic-bezier(.165, .84, .44, 1); }
.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background .2s;
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
}
.lb-nav:hover { background: rgba(255, 255, 255, .2); }
.lb-prev { left: 10px; }
.lb-next { right: 10px; }
@media (max-width: 400px) { .lb-nav { display: none; } }
.lb-panel { background: #1b2057; flex-shrink: 0; border-top: 1px solid rgba(255, 255, 255, .07); }
.lb-stats { display: flex; align-items: center; gap: 18px; padding: 12px 16px 8px; }
.lb-stat-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  -webkit-tap-highlight-color: transparent;
  transition: transform .15s;
}
.lb-stat-btn:active { transform: scale(1.2); }
.lb-stat-btn.liked svg { fill: var(--red); stroke: var(--red); animation: heartpop .3s; }
.lb-stat-val { font-size: 13px; font-weight: 700; color: #fff; }
.lb-views { display: flex; align-items: center; gap: 5px; color: rgba(255, 255, 255, .5); font-size: 12px; }
.lb-spacer { flex: 1; }
.lb-share-row { display: flex; align-items: center; gap: 0; padding: 4px 8px 10px; overflow-x: auto; scrollbar-width: none; }
.lb-share-row::-webkit-scrollbar { display: none; }
.lb-share-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 64px;
  padding: 8px 4px;
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .03em;
  -webkit-tap-highlight-color: transparent;
  transition: opacity .2s;
}
.lb-share-btn:hover { opacity: .7; }
.lb-share-icon { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.lb-dl-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 64px;
  padding: 8px 4px;
  text-decoration: none;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .03em;
  -webkit-tap-highlight-color: transparent;
  transition: opacity .2s;
}
.lb-dl-btn:hover { opacity: .7; }
.ic-wa { background: #25D366; }
.ic-copy { background: #2d0050; }
.ic-dl { background: linear-gradient(135deg, var(--accent-2), var(--accent-1)); }

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(90px);
  z-index: 500;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 13px 22px;
  border-radius: 100px;
  box-shadow: 0 0 24px rgba(0, 0, 0, .3), 0 6px 28px rgba(0, 0, 0, .3);
  white-space: nowrap;
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1);
  pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ── PÍLDORA EN LÍNEA ── */
.online-pill {
  position: fixed;
  bottom: 28px;
  right: 20px;
  z-index: 400;
  background: rgba(0, 0, 0, .88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 200, 100, .3);
  padding: 8px 16px;
  border-radius: 30px;
  box-shadow: 0 0 16px rgba(0, 0, 0, .2);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(20px);
  transition: all .4s ease;
}
.online-pill.show { opacity: 1; transform: translateY(0); }
.pulse { width: 10px; height: 10px; background: var(--accent-3); border-radius: 50%; box-shadow: 0 0 6px var(--accent-3); animation: pulsing 2s infinite; }
@keyframes pulsing {
  0% { box-shadow: 0 0 0 0 rgba(0, 200, 100, .5); }
  70% { box-shadow: 0 0 0 8px rgba(0, 200, 100, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 200, 100, 0); }
}

/* ── PREFERENCIA DE MOVIMIENTO REDUCIDO ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
