/* ================= NAV ================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  backdrop-filter: blur(10px);
  background: rgba(5, 4, 15, 0.55);
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 20px; letter-spacing: 0.03em; }
.nav-logo .glyph { color: var(--neon-gold); font-size: 22px; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--text-primary); font-weight: 600; font-size: 15px; letter-spacing: 0.02em; position: relative; }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--neon-cyan); transition: width 0.2s ease; }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,0.2); border-radius: 8px; padding: 8px 10px; color: var(--text-primary); font-size: 20px; cursor: pointer; }

/* ================= HERO ================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 24px 80px;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  background: #000 url('/img/bg/hero-caballeros.jpg') center 12%/cover;
}
.hero-collage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  z-index: 1;
  opacity: 0.55;
  mix-blend-mode: screen;
  filter: saturate(1.3) brightness(1.05);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%, #000 100%);
  mask-image: linear-gradient(90deg, transparent, #000 30%, #000 100%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(180deg, rgba(5,4,15,0.6), rgba(5,4,15,0.68) 45%, rgba(5,4,15,0.85) 80%, var(--bg-void));
  z-index: 2;
}
.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
}
.hero-text { max-width: 640px; }
.hero h1 { font-size: clamp(40px, 6vw, 76px); margin-bottom: 20px; }
.hero-sub { font-size: clamp(17px, 2vw, 22px); color: var(--text-primary); max-width: 560px; margin-bottom: 32px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.hero-stat { display: flex; flex-direction: column; }
.hero-stat b { font-family: var(--font-display); font-size: 22px; color: var(--neon-gold); }
.hero-stat span { font-size: 13px; color: var(--text-muted); letter-spacing: 0.03em; }
.hero-scroll { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 2; color: var(--text-faint); font-size: 13px; text-align: center; }
.hero-scroll .chev { display: block; margin: 6px auto 0; width: 12px; height: 12px; border-right: 2px solid var(--neon-cyan); border-bottom: 2px solid var(--neon-cyan); transform: rotate(45deg); }


/* ================= SECTION SHELL ================= */
section { position: relative; z-index: 1; padding: 100px 0; }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); }
.section-head.left { margin-left: 0; text-align: left; }

/* ================= COSMO CHARACTERS (fondo decorativo) ================= */
/* Personajes usados como textura ambiental repartida por el sitio, no como
   contenido clickeable — cada instancia se posiciona a mano por sección. */
.bg-character-wrap {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}
.bg-character-wrap::before {
  content: '';
  position: absolute;
  inset: -35%;
  background: radial-gradient(ellipse 50% 50% at center, var(--glow), transparent 68%);
  opacity: 0.55;
  filter: blur(18px);
}
.bg-character {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.55;
  mix-blend-mode: screen;
  filter: brightness(1.2) saturate(1.5);
  -webkit-mask-image: radial-gradient(ellipse 58% 58% at center, #000 30%, transparent 72%);
  mask-image: radial-gradient(ellipse 58% 58% at center, #000 30%, transparent 72%);
}
@media (max-width: 720px) {
  .bg-character-wrap { display: none; }
}

/* ================= ABOUT ================= */
#sobre-mi { position: relative; overflow: hidden; }
#sobre-mi .container { position: relative; z-index: 1; }
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: center; }
.about-photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-glow); box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.about-photo img { aspect-ratio: 4/5; object-fit: cover; }
.about-photo .tag { position: absolute; bottom: 14px; left: 14px; }
.about-facts { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.about-facts li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-primary); font-size: 16px; }
.about-facts .ic { color: var(--neon-cyan); flex-shrink: 0; }

/* ================= ESTILOS ================= */
#estilos { position: relative; overflow: hidden; }
#estilos .container { position: relative; z-index: 1; }
.styles-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.style-card { text-align: center; }
.style-card .ic-wrap {
  width: 62px; height: 62px; margin: 0 auto 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 28px;
  background: radial-gradient(circle, rgba(139,92,246,0.25), transparent 70%);
  border: 1px solid var(--border-glow);
}
.style-card h3 { font-size: 19px; margin-bottom: 8px; }
.style-card p { font-size: 15px; margin-bottom: 0; }

/* ================= COSMO BANNER (parallax) ================= */
.cosmo-banner {
  position: relative;
  min-height: 56vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 90px 24px;
  background-image: url('/img/bg/scroll-sanctuary.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}
.cosmo-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,4,15,0.8), rgba(5,4,15,0.45) 45%, rgba(5,4,15,0.85));
}
.cosmo-banner-content { position: relative; z-index: 1; text-align: center; max-width: 720px; margin: 0 auto; }
.cosmo-banner-content h2 {
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1.35;
  margin-bottom: 32px;
}
@media (max-width: 720px) {
  /* background-attachment: fixed es problemático/lento en navegadores móviles (iOS Safari en particular) */
  .cosmo-banner { background-attachment: scroll; min-height: 40vh; padding: 64px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .cosmo-banner { background-attachment: scroll; }
}

/* ================= GALERIA ================= */
#galeria { position: relative; overflow: hidden; }
#galeria .container { position: relative; z-index: 1; }
.gallery-note { max-width: 640px; margin: -32px auto 40px; text-align: center; font-size: 14px; color: var(--text-faint); }
.gallery-filters { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.filter-pill {
  padding: 8px 18px; border-radius: 999px; border: 1px solid rgba(139,92,246,0.4);
  background: transparent; color: var(--text-muted); font-family: var(--font-body); font-weight: 600;
  font-size: 14px; cursor: pointer; transition: all 0.15s ease;
}
.filter-pill.active, .filter-pill:hover { border-color: var(--neon-cyan); color: var(--neon-cyan); box-shadow: var(--shadow-glow-cyan); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-item { position: relative; border-radius: var(--radius-md); overflow: hidden; border: 1px solid rgba(139,92,246,0.25); aspect-ratio: 1/1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .overlay {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 14px;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.85));
  font-size: 13px; color: var(--text-primary); font-weight: 600;
}
.gallery-item .placeholder-badge { position: absolute; top: 10px; right: 10px; }
.gallery-empty { text-align: center; color: var(--text-faint); padding: 40px; }

/* ================= COTIZADOR ================= */
#cotizador { position: relative; overflow: hidden; }
#cotizador .container { position: relative; z-index: 1; }
.quoter { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: start; }
.quoter-steps-nav { display: flex; gap: 8px; margin-bottom: 28px; }
.step-dot { flex: 1; height: 4px; border-radius: 4px; background: rgba(255,255,255,0.1); }
.step-dot.done { background: var(--neon-gold); box-shadow: 0 0 8px rgba(255,206,61,0.6); }
.step-dot.active { background: var(--neon-cyan); box-shadow: 0 0 8px rgba(47,228,255,0.7); }

.q-step { display: none; }
.q-step.active { display: block; animation: fadein 0.25s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px);} to { opacity: 1; transform: translateY(0);} }
.q-step h3 { font-size: 22px; margin-bottom: 6px; }
.q-step .hint { font-size: 14px; color: var(--text-faint); margin-bottom: 22px; }

.option-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 8px; }
.option-card {
  position: relative;
  cursor: pointer;
  border: 1.5px solid rgba(139,92,246,0.3);
  border-radius: var(--radius-md);
  padding: 18px;
  background: rgba(255,255,255,0.02);
  transition: all 0.15s ease;
}
.option-card input { position: absolute; opacity: 0; pointer-events: none; }
.option-card .title { font-weight: 700; color: var(--text-primary); font-size: 16px; margin-bottom: 4px; }
.option-card .desc { font-size: 13px; color: var(--text-faint); }
.option-card:hover { border-color: var(--neon-cyan); }
.option-card.selected { border-color: var(--neon-gold); background: rgba(255,206,61,0.08); box-shadow: var(--shadow-glow-gold); }

.q-nav { display: flex; justify-content: space-between; margin-top: 28px; gap: 12px; }

.q-toggle-row { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 14px; border: 1px dashed rgba(255,206,61,0.4); border-radius: var(--radius-md); background: rgba(255,206,61,0.05); }
.q-toggle-row input { width: 20px; height: 20px; accent-color: var(--neon-gold); }
.q-toggle-row label { margin: 0; color: var(--text-primary); font-weight: 600; cursor: pointer; }

.summary-card { position: sticky; top: 100px; }
.summary-card h4 { font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.1em; font-size: 13px; color: var(--text-faint); margin-bottom: 18px; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--text-muted); padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.summary-row b { color: var(--text-primary); }
.summary-price { text-align: center; margin: 22px 0; }
.summary-price .amount { font-family: var(--font-display); font-size: 34px; }
.summary-price .caption { font-size: 12px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.08em; }
.summary-sessions { text-align: center; font-size: 13px; color: var(--text-muted); margin-bottom: 18px; }

.q-result { text-align: center; padding: 20px 0; }
.q-result .amount { font-family: var(--font-display); font-size: 48px; margin: 10px 0; }
.q-success { text-align: center; padding: 30px 10px; }
.q-success .icon { font-size: 48px; margin-bottom: 14px; }

/* ================= CONTACTO / FOOTER ================= */
#contacto { position: relative; overflow: hidden; }
#contacto .container { position: relative; z-index: 1; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ic { width: 40px; height: 40px; border-radius: 50%; background: rgba(47,228,255,0.1); border: 1px solid var(--border-glow); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 18px; }
.contact-list b { color: var(--text-primary); display: block; }
.social-row { display: flex; gap: 12px; margin-top: 24px; }
.social-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border-glow); display: flex; align-items: center; justify-content: center; font-size: 20px; transition: all 0.15s ease; }
.social-btn:hover { border-color: var(--neon-magenta); box-shadow: var(--shadow-glow-magenta); }

footer {
  position: relative;
  border-top: 1px solid rgba(139,92,246,0.2);
  padding: 56px 0 32px;
  text-align: center;
  background-image: linear-gradient(180deg, var(--bg-void) 0%, rgba(5,4,15,0.7) 35%, rgba(5,4,15,0.92) 100%), url('/img/bg/footer-stairs.jpg');
  background-size: cover;
  background-position: center 35%;
}
footer p { font-size: 13px; color: var(--text-faint); margin: 4px 0; position: relative; z-index: 1; }
footer a { color: var(--text-faint); }

/* ================= RESPONSIVE ================= */
@media (max-width: 980px) {
  .hero-collage { opacity: 0.4; }
  .about-grid { grid-template-columns: 1fr; }
  .styles-grid { grid-template-columns: repeat(2, 1fr); }
  .quoter { grid-template-columns: 1fr; }
  .summary-card { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta .btn-outline { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open .nav-links {
    display: flex; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column;
    background: rgba(5,4,15,0.98); padding: 20px 24px; gap: 18px; border-bottom: 1px solid var(--border-glow);
  }
  .hero-collage { opacity: 0.28; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .styles-grid { grid-template-columns: 1fr; }
  .option-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 18px; }
}
