/* ─────────────────────────────────────────────────────────────
   VALORA · layout.css — estructura de página
───────────────────────────────────────────────────────────── */

/* ── CANVAS BACKGROUND ── */
#scene-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

/* ── VIGNETTE ── */
#vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    ellipse at 50% 50%,
    transparent 40%,
    rgba(12,18,32,0.60) 100%
  );
}

/* ── SCROLL PROGRESS ── */
#scroll-bar {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--green));
  z-index: 600;
  box-shadow: 0 0 8px var(--gold-glow);
  transition: width 0.1s linear;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  height: var(--nav-h);
  padding: 0 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(12,18,32,0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 0.5px solid var(--bd);
}

.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 34px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  color: var(--ts);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.25s var(--ease);
}

.nav-links a:hover { color: var(--tp); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: var(--gold);
  color: var(--bg0) !important;
  padding: 9px 22px;
  border-radius: var(--r-sm);
  font-weight: 700 !important;
  font-size: 13px !important;
  box-shadow: var(--sh-gold);
  transition: opacity 0.2s, transform 0.2s;
}

.nav-cta:hover { opacity: 0.88; transform: translateY(-1px); }
.nav-cta::after { display: none !important; }

/* ── PÁGINA: PHONE STICKY + CONTENIDO ── */
.page-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  height: 100vh;
  padding-top: var(--nav-h);
}

/* Columna izquierda: scrollable */
.content-col {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Columna derecha: phone siempre visible */
.phone-col {
  width: 340px;
  flex-shrink: 0;
  height: calc(100vh - var(--nav-h));
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-left: 0.5px solid var(--bd);
  background: rgba(12,18,32,0.60);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.phone-col::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 25%, rgba(201,168,108,0.08) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 90%, rgba(29,184,122,0.05) 0%, transparent 50%);
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  padding: 56px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ── SECCIONES ── */
.section {
  padding: 72px 64px;
  border-top: 0.5px solid var(--bd);
  position: relative;
}

.section-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(26px, 2.8vw, 38px);
  color: var(--tp);
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin-bottom: 14px;
}

.section-title em {
  font-style: italic;
  color: var(--gold);
}

.section-desc {
  font-size: 15px;
  color: var(--ts);
  line-height: 1.75;
  max-width: 540px;
  margin-bottom: 40px;
}

/* ── GRIDS ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* ── FOOTER ── */
footer {
  position: relative;
  z-index: 2;
  border-top: 0.5px solid var(--bd);
  padding: 28px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  background: rgba(12,18,32,0.80);
  backdrop-filter: blur(12px);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  row-gap: 8px;
}

.footer-links a {
  font-size: 13px;
  color: var(--tt);
  transition: color 0.2s;
  padding: 3px 12px;
  white-space: nowrap;
}

.footer-links a + a {
  border-left: 0.5px solid var(--bd);
}

.footer-links a:hover { color: var(--ts); }

.footer-copy {
  font-size: 12px;
  color: var(--tt);
  font-family: var(--mono);
}

/* ── PHONE MOCKUP STRUCTURE ── */
.phone-wrap { position: relative; width: 215px; z-index: 1; }

.phone-shell {
  background: #070f1e;
  border-radius: 42px;
  padding: 9px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08),
    0 0 0 2.5px #070f1e,
    0 0 0 4px rgba(255,255,255,0.04),
    0 32px 64px rgba(0,0,0,0.90),
    0 0 50px rgba(201,168,108,0.07);
}

.phone-notch {
  position: absolute;
  top: 9px; left: 50%;
  transform: translateX(-50%);
  width: 76px; height: 22px;
  background: #070f1e;
  border-radius: 0 0 13px 13px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.phone-notch-cam { width: 6px; height: 6px; border-radius: 50%; background: #111b2e; }
.phone-notch-spk { width: 28px; height: 3px; border-radius: 2px; background: #111b2e; }

.phone-screen {
  border-radius: 33px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 9 / 19.5;
  background: var(--bg0);
}

.phone-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.85s ease; }
.phone-slide.active { opacity: 1; }
.phone-slide img { width: 100%; height: 100%; object-fit: cover; }

.phone-glow {
  position: absolute;
  bottom: -22px; left: 50%;
  transform: translateX(-50%);
  width: 120px; height: 40px;
  background: radial-gradient(ellipse, rgba(201,168,108,0.25) 0%, transparent 70%);
  pointer-events: none;
}

.phone-dots { display: flex; gap: 5px; z-index: 1; }

.phone-dot {
  width: 5px; height: 5px;
  border-radius: 3px;
  background: var(--bdm);
  transition: width 0.35s var(--ease), background 0.35s ease;
}

.phone-dot.active { width: 18px; background: var(--gold); }

.phone-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--tt);
  letter-spacing: 1px;
  text-transform: uppercase;
  z-index: 1;
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  html, body { height: auto; overflow: auto; }

  .page-wrap {
    flex-direction: column;
    height: auto;
    padding-top: var(--nav-h);
  }

  .content-col { overflow: visible; }

  .phone-col {
    width: 100%;
    height: auto;
    position: static;
    padding: 48px 24px;
    border-left: none;
    border-top: 0.5px solid var(--bd);
    background: rgba(12,18,32,0.90);
  }

  .hero, .section { padding: 52px 24px; }

  nav { padding: 0 20px; }
  .nav-links { display: none; }

  footer { padding: 24px; flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }

  .plans-grid { grid-template-columns: 1fr; }

  #scene-canvas { opacity: 0.5; }
}

@media (max-width: 600px) {
  .hero, .section { padding: 44px 18px; }
  .features-grid { grid-template-columns: 1fr; }
}


/* ── SECCIÓN ALTERNANCIA DE FONDO para contraste ── */
.section:nth-child(even) {
  background: rgba(255,255,255,0.012);
}

.split-section:nth-child(even) {
  background: rgba(255,255,255,0.012);
}

/* ── SECTION LABEL línea dorada ── */
.section-label,
.cons-tag {
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-label::before,
.cons-tag::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

/* ── SOCIAL ICONS (footer index) ── */
.footer-social {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0.5px solid var(--bd);
  color: var(--tt);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.social-icon svg {
  width: 15px;
  height: 15px;
}

.social-icon:hover {
  color: var(--gold);
  border-color: var(--gold-line);
  background: var(--gold-dim);
}
