/* ================================
   VARIABLES & RESET
   ================================ */
:root {
  --bg: #0c1018;
  --bg-alt: #121826;
  --bg-card: #18202f;
  --bg-card-hover: #1e283a;
  --text: #e8ebf1;
  --text-muted: #9aa6b8;
  --gold: #d4af37;
  --gold-dark: #b8941f;
  --gold-soft: rgba(212, 175, 55, 0.12);
  --blue: #4f8cff;
  --border: #25303f;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  /* Superficies que cambian con el tema */
  --nav-bg: rgba(12, 16, 24, 0.9);
  --input-bg: #0e1420;
  --input-bg-focus: #111927;
  --footer-bg: #080b11;
  --score-card-bg2: #0e1420;
  --track-bg: #0c1018;
  --font-head: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --transition: 0.3s ease;
}

/* ====== MODO DÍA (claro) ====== */
[data-theme="light"] {
  --bg: #f4f6fa;
  --bg-alt: #eaeef5;
  --bg-card: #ffffff;
  --bg-card-hover: #f2f5fb;
  --text: #3a4453;
  --text-muted: #5f6b7a;
  --gold: #b8901f;
  --gold-dark: #9a7715;
  --gold-soft: rgba(184, 144, 31, 0.13);
  --border: #e2e7ef;
  --white: #16202e;
  --shadow: 0 18px 45px rgba(28, 40, 64, 0.10);
  --nav-bg: rgba(255, 255, 255, 0.85);
  --input-bg: #f4f7fc;
  --input-bg-focus: #ffffff;
  --footer-bg: #eef1f7;
  --score-card-bg2: #eef2f8;
  --track-bg: #e3e8f0;
}

/* Transición suave al cambiar de tema */
body, .navbar, .footer, .card, .feature, .testi-card, .step,
.form-card, .field input, .field select, .field textarea, .score-card {
  transition: background-color var(--transition), color var(--transition),
    border-color var(--transition), box-shadow var(--transition);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-muted);
  line-height: 1.7;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }
.center { text-align: center; }

/* ================================
   TYPOGRAPHY
   ================================ */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-text { color: var(--text-muted); max-width: 640px; }
.center .section-text { margin: 0 auto; }
.gold { color: var(--gold); }

/* ================================
   BUTTONS
   ================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 32px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #1a1505;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.btn-dark { background: #0c1018; color: var(--white); }
.btn-dark:hover { transform: translateY(-2px); }
.full-width { width: 100%; justify-content: center; }

/* ================================
   NAVBAR
   ================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
}
.logo .logo-mark { width: 32px; height: 32px; color: var(--gold); }
.logo span { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--text-muted);
}
.nav-links a:hover, .nav-links a.active-link { color: var(--gold); }
/* El botón del menú conserva su texto oscuro legible sobre el dorado */
.nav-links a.btn-primary,
.nav-links a.btn-primary:hover { color: #1a1505; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 5px; z-index: 1001; }
.nav-toggle span { display: block; width: 25px; height: 2px; background: var(--white); margin: 6px 0; transition: all var(--transition); }

/* Botón modo día/noche */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  cursor: pointer;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: color var(--transition), border-color var(--transition), background var(--transition), transform var(--transition);
}
.theme-toggle:hover { color: var(--gold); border-color: var(--gold); transform: rotate(20deg); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* ================================
   HERO
   ================================ */
.hero {
  position: relative;
  padding: 110px 0;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(79, 140, 255, 0.16), transparent),
    radial-gradient(700px 500px at 10% 110%, rgba(212, 175, 55, 0.12), transparent),
    var(--bg);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; }
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 22px;
}
.hero-title .gold { color: var(--gold); }
.hero-lead { font-size: 1.12rem; color: var(--text-muted); margin-bottom: 32px; max-width: 540px; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 34px; margin-top: 44px; flex-wrap: wrap; }
.hero-trust .ht { display: flex; flex-direction: column; }
.hero-trust strong { font-family: var(--font-head); font-size: 2rem; color: var(--gold); }
.hero-trust span { font-size: 0.85rem; color: var(--text-muted); }

/* Score card decorativo */
.score-card {
  background: linear-gradient(160deg, var(--bg-card) 0%, var(--score-card-bg2) 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  box-shadow: var(--shadow);
}
.score-card .sc-label { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 2px; color: var(--text-muted); }
.score-meter {
  font-family: var(--font-head);
  font-size: 4rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin: 10px 0 4px;
}
.score-meter small { font-size: 1rem; color: var(--gold); }
.score-bar { height: 10px; border-radius: 10px; background: var(--track-bg); overflow: hidden; margin: 18px 0 10px; }
.score-bar i { display: block; height: 100%; width: 78%; border-radius: 10px;
  background: linear-gradient(90deg, #e0533d 0%, #e0a93d 45%, #2ecc71 100%); }
.score-row { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--text-muted); }
.score-jump {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #2ecc71;
}

/* ================================
   CARDS (servicios)
   ================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 50px;
}
.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 34px;
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition),
    background var(--transition), box-shadow var(--transition);
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-dark) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.card:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
  background: var(--bg-card-hover);
  box-shadow: 0 18px 40px rgba(212, 175, 55, 0.14);
}
.card:hover::before { transform: scaleX(1); }
.card-icon {
  width: 58px; height: 58px;
  border-radius: 12px;
  background: var(--gold-soft);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  transition: transform var(--transition), background var(--transition);
}
.card:hover .card-icon {
  transform: scale(1.08) rotate(-4deg);
  background: rgba(212, 175, 55, 0.22);
}
.card-icon svg { width: 28px; height: 28px; transition: transform var(--transition); }
.card h3 { font-family: var(--font-head); font-size: 1.35rem; color: var(--white); margin-bottom: 12px; }
.card p { font-size: 0.95rem; margin-bottom: 16px; }
.card ul { margin-bottom: 22px; }
.card ul li { font-size: 0.9rem; padding-left: 24px; position: relative; margin-bottom: 8px; }
.card ul li::before { content: '✓'; position: absolute; left: 0; color: var(--gold); font-weight: 700; }

/* Número de fondo decorativo */
.card-num {
  position: absolute;
  top: 18px; right: 22px;
  font-family: var(--font-head);
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
  opacity: 0.08;
  transition: opacity var(--transition), transform var(--transition);
  pointer-events: none;
}
.card:hover .card-num { opacity: 0.18; transform: translateY(-2px) scale(1.05); }

/* Etiqueta / chip */
.card-tag {
  position: absolute;
  top: 22px; right: 22px;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 20px;
  border: 1px solid rgba(212, 175, 55, 0.25);
}
.card:has(.card-tag) .card-num { display: none; }

/* Enlace "Saber más" */
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold);
  opacity: 0.85;
  transition: gap var(--transition), opacity var(--transition);
}
.card-link svg { width: 17px; height: 17px; transition: transform var(--transition); }
.card:hover .card-link { opacity: 1; gap: 12px; }
.card:hover .card-link svg { transform: translateX(3px); }

/* Entrada animada escalonada (backwards: no bloquea el transform del hover) */
.cards-grid .card {
  animation: card-rise 0.6s ease backwards;
}
.cards-grid .card:nth-child(1) { animation-delay: 0.05s; }
.cards-grid .card:nth-child(2) { animation-delay: 0.15s; }
.cards-grid .card:nth-child(3) { animation-delay: 0.25s; }
.cards-grid .card:nth-child(4) { animation-delay: 0.35s; }
@keyframes card-rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .cards-grid .card { opacity: 1; animation: none; }
}

/* Banda CTA bajo los servicios */
.services-cta {
  margin-top: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 26px 34px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background:
    radial-gradient(420px 220px at 0% 0%, rgba(212, 175, 55, 0.10), transparent),
    var(--bg-card);
}
.services-cta-text { display: flex; flex-direction: column; gap: 4px; }
.services-cta-text strong { font-family: var(--font-head); font-size: 1.25rem; color: var(--white); }
.services-cta-text span { font-size: 0.95rem; color: var(--text-muted); }

/* ================================
   VIDEOS
   ================================ */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 50px;
}
.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition),
    background var(--transition), box-shadow var(--transition);
}
.video-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
  box-shadow: 0 18px 40px rgba(212, 175, 55, 0.14);
}
.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(420px 220px at 50% 120%, rgba(212, 175, 55, 0.14), transparent),
    linear-gradient(150deg, var(--bg-card-hover) 0%, var(--score-card-bg2) 100%);
  overflow: hidden;
}
/* Cuando tengas tus videos, reemplaza el contenido de .video-thumb por:
   <video controls preload="none" poster="img/mi-poster.jpg">
     <source src="videos/mi-video.mp4" type="video/mp4">
   </video>   — se ajusta solo con la regla de abajo */
.video-thumb video,
.video-thumb iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; border: 0; display: block;
}
.video-play {
  position: relative; z-index: 2;
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(212, 175, 55, 0.92); color: #1a1505;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform var(--transition), background var(--transition);
}
/* Póster tipo video dentro de la tarjeta */
.video-poster {
  position: absolute; inset: 0; z-index: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  text-align: center; padding: 18px;
  background:
    radial-gradient(360px 200px at 30% 18%, rgba(79, 140, 255, 0.18), transparent 60%),
    radial-gradient(360px 220px at 80% 95%, rgba(212, 175, 55, 0.20), transparent 60%),
    linear-gradient(150deg, #0c1018, #060912);
}
.video-poster .vp-icon { font-size: 2.8rem; line-height: 1; transition: transform 0.3s; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.4)); }
.video-card:hover .video-poster .vp-icon { transform: scale(1.12); }
.video-poster .vp-title { font-family: var(--font-head); color: #fff; font-size: 0.98rem; max-width: 92%; line-height: 1.3; }
.video-poster .vp-time { position: absolute; bottom: 10px; right: 10px; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 0.72rem; font-weight: 600; padding: 3px 8px; border-radius: 6px; }
.video-play svg { width: 28px; height: 28px; margin-left: 3px; }
.video-card:hover .video-play { transform: scale(1.12); background: var(--gold); }
.video-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: rgba(0, 0, 0, 0.55); color: #fff;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.5px;
  padding: 5px 11px; border-radius: 20px;
  backdrop-filter: blur(4px);
}
.video-info { padding: 20px 22px; }
.video-info h3 { font-family: var(--font-head); font-size: 1.18rem; color: var(--white); margin-bottom: 6px; }
.video-info p { font-size: 0.9rem; }

/* Reproductor de video-tutoriales */
.vid-modal {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.vid-modal.open { display: flex; animation: vidFade 0.25s ease; }
@keyframes vidFade { from { opacity: 0; } to { opacity: 1; } }
.vid-box {
  width: 100%; max-width: min(880px, 94vw);
  border-radius: 16px; overflow: hidden; background: #05070c;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.vid-screen {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background:
    radial-gradient(600px 380px at 18% 12%, rgba(79, 140, 255, 0.18), transparent 60%),
    radial-gradient(620px 420px at 85% 95%, rgba(212, 175, 55, 0.20), transparent 60%),
    linear-gradient(150deg, #0c1018 0%, #060912 100%);
}
.vid-screen::after { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.55); }
.vid-brand { position: absolute; top: 16px; left: 18px; z-index: 3; font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; color: #fff; opacity: 0.9; }
.vid-brand span { color: var(--gold); }
.vid-close {
  position: absolute; top: 12px; right: 14px; z-index: 5;
  width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(0, 0, 0, 0.45); color: #fff; font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center; transition: background 0.2s;
}
.vid-close:hover { background: var(--gold); color: #1a1505; }
.vid-scene { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; text-align: center; padding: 8% 9%; }
.vs { animation: vsIn 0.6s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes vsIn { from { opacity: 0; transform: translateY(22px) scale(0.96); } to { opacity: 1; transform: none; } }
.vs-icon { font-size: clamp(3rem, 9vw, 5rem); margin-bottom: 14px; line-height: 1; filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.45)); animation: vsFloat 4s ease-in-out infinite; }
@keyframes vsFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.vid-scene h2 { font-family: var(--font-head); color: #fff; font-size: clamp(1.6rem, 5vw, 2.6rem); margin-bottom: 14px; line-height: 1.2; }
.vid-scene h3 { font-family: var(--font-head); color: #fff; font-size: clamp(1.3rem, 4.4vw, 2rem); margin-bottom: 12px; line-height: 1.25; }
.vid-scene p { color: #c9d2e0; font-size: clamp(0.95rem, 2.6vw, 1.15rem); max-width: 560px; margin: 0 auto; line-height: 1.6; }
.vs-badge { display: inline-block; color: var(--gold); border: 1px solid rgba(212, 175, 55, 0.5); border-radius: 30px; padding: 6px 16px; font-size: 0.72rem; font-weight: 700; letter-spacing: 2px; margin-bottom: 18px; }
.vs-line { width: 64px; height: 3px; background: var(--gold); border-radius: 3px; margin: 0 auto 18px; animation: vsLine 0.8s ease both; }
@keyframes vsLine { from { width: 0; opacity: 0; } to { width: 64px; opacity: 1; } }

/* Medidor de puntaje animado */
.vmeter { width: 82%; max-width: 360px; margin: 8px auto 2px; }
.vmeter-num { font-family: var(--font-head); font-weight: 700; color: var(--gold); line-height: 1; font-size: clamp(2.4rem, 8vw, 3.6rem); }
.vmeter-bar { height: 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.12); overflow: hidden; margin: 12px 0 8px; }
.vmeter-bar i { display: block; height: 100%; width: 0; border-radius: 10px; background: linear-gradient(90deg, #e0533d 0%, #e0a93d 45%, #2ecc71 100%); transition: width 1.6s cubic-bezier(.2, .7, .2, 1); }
.vmeter-cap { color: #c9d2e0; font-size: 0.85rem; }

/* Barras de utilización animadas */
.vbars { display: flex; gap: 18px; justify-content: center; align-items: flex-end; margin: 6px auto 10px; }
.vbar { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.vbar-track { width: 34px; height: 92px; background: rgba(255, 255, 255, 0.10); border-radius: 8px; display: flex; align-items: flex-end; overflow: hidden; }
.vbar-track i { display: block; width: 100%; height: 0; border-radius: 8px; background: linear-gradient(180deg, #2ecc71, #27a35a); animation: barGrow 0.9s cubic-bezier(.2, .7, .2, 1) forwards; }
.vbars.high .vbar-track i { background: linear-gradient(180deg, #e0533d, #c0392b); }
@keyframes barGrow { to { height: var(--h); } }
.vbar span { color: #9aa6b8; font-size: 0.72rem; }
.vbars-cap { color: #c9d2e0; font-size: 0.88rem; }
/* Botón grande de play/pausa sobre el video */
.vid-bigplay { position: absolute; inset: 0; z-index: 2; background: transparent; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.vid-bigplay::before {
  content: ''; width: 78px; height: 78px; border-radius: 50%;
  background: rgba(212, 175, 55, 0.95); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s, opacity 0.3s;
}
.vid-bigplay::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  transform: translate(-40%, -50%);
  border-style: solid; border-width: 13px 0 13px 22px;
  border-color: transparent transparent transparent #1a1505;
  transition: opacity 0.3s;
}
.vid-bigplay:hover::before { transform: scale(1.08); }
.vid-modal.playing .vid-bigplay::before,
.vid-modal.playing .vid-bigplay::after { opacity: 0; }
/* Barra de controles */
.vid-controls { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #0a0d14; border-top: 1px solid #1b2433; }
.vid-controls button { background: none; border: none; color: #e8ebf1; cursor: pointer; font-size: 0.95rem; padding: 4px; line-height: 1; transition: color 0.2s; }
.vid-controls button:hover { color: var(--gold); }
.vid-play { min-width: 22px; }
.vid-full { font-size: 1.05rem; }
.vid-time, .vid-dur { font-size: 0.76rem; color: #9aa6b8; font-variant-numeric: tabular-nums; min-width: 32px; text-align: center; }
.vid-seek { flex: 1; height: 6px; border-radius: 6px; background: #1b2433; cursor: pointer; position: relative; }
.vid-fill { height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--gold), var(--gold-dark)); position: relative; }
.vid-fill::after { content: ''; position: absolute; right: -6px; top: 50%; transform: translateY(-50%); width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.25); }
@media (max-width: 560px) {
  .vid-controls { gap: 8px; padding: 10px 12px; }
  .vid-scene { padding: 6% 6%; }
  .vid-scene p { font-size: 0.82rem; }
  .vs-icon { font-size: 2.2rem; margin-bottom: 6px; }
  .vmeter-num { font-size: 2rem; }
  .vmeter-bar { height: 8px; margin: 8px 0 6px; }
  .vmeter-cap, .vbars-cap { font-size: 0.76rem; }
  .vbars { gap: 12px; }
  .vbar-track { width: 26px; height: 58px; }
  .video-poster .vp-icon { font-size: 2.2rem; }
}

/* ================================
   STEPS (proceso)
   ================================ */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 50px; }
.step {
  text-align: center;
  padding: 24px 16px;
  border-radius: 16px;
  border: 1px solid transparent;
  transition: transform var(--transition), border-color var(--transition),
    background var(--transition), box-shadow var(--transition);
}
.step:hover {
  transform: translateY(-6px);
  border-color: var(--border);
  background: var(--bg-card);
  box-shadow: 0 16px 36px rgba(212, 175, 55, 0.12);
}
.step-num {
  width: 60px; height: 60px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--transition), background var(--transition), color var(--transition);
}
.step:hover .step-num {
  background: var(--gold);
  color: #0e1420;
  transform: scale(1.08);
}
.step h4 { font-family: var(--font-head); font-size: 1.15rem; color: var(--white); margin-bottom: 8px; }
.step p { font-size: 0.9rem; }

/* ================================
   FEATURES
   ================================ */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 50px; }
.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 30px;
  transition: transform var(--transition), border-color var(--transition),
    background var(--transition), box-shadow var(--transition);
}
.feature:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  background: var(--bg-card-hover);
  box-shadow: 0 16px 36px rgba(212, 175, 55, 0.12);
}
.feature-icon { color: var(--gold); margin-bottom: 16px; transition: transform var(--transition); }
.feature:hover .feature-icon { transform: scale(1.12) translateY(-2px); }
.feature-icon svg { width: 34px; height: 34px; }
.feature h4 { font-family: var(--font-head); font-size: 1.2rem; color: var(--white); margin-bottom: 8px; }
.feature p { font-size: 0.92rem; }

/* ================================
   CTA BANNER
   ================================ */
.cta-banner {
  text-align: center;
  padding: 90px 0;
  background:
    radial-gradient(700px 400px at 50% -20%, rgba(212, 175, 55, 0.18), transparent),
    var(--bg-alt);
}
.cta-banner h2 { font-family: var(--font-head); font-size: clamp(1.9rem, 4vw, 2.6rem); color: var(--white); margin-bottom: 14px; }
.cta-banner p { margin-bottom: 28px; }

/* ================================
   TESTIMONIALS
   ================================ */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 50px; }
.testi-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 30px;
  transition: transform var(--transition), border-color var(--transition),
    background var(--transition), box-shadow var(--transition);
}
.testi-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  background: var(--bg-card-hover);
  box-shadow: 0 16px 36px rgba(212, 175, 55, 0.12);
}
.testi-stars { color: var(--gold); margin-bottom: 14px; letter-spacing: 2px; transition: letter-spacing var(--transition); }
.testi-card:hover .testi-stars { letter-spacing: 4px; }
.testi-card p { color: var(--text); font-style: italic; margin-bottom: 16px; }
.testi-author { font-weight: 600; color: var(--gold); font-size: 0.9rem; }

/* ================================
   CONTACT / FORM
   ================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: start; }

/* Panel de información */
.contact-info-title { font-family: var(--font-head); font-size: 1.7rem; color: var(--white); margin-bottom: 10px; }
.contact-info-lead { color: var(--text-muted); margin-bottom: 26px; max-width: 420px; }
.contact-info-item { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.contact-info-item .ci-icon {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 12px;
  background: var(--gold-soft); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--transition), background var(--transition), color var(--transition);
}
.contact-info-item .ci-icon svg { width: 22px; height: 22px; }
.contact-info-item .ci-body { flex: 1; }
.contact-info-item h4 { font-family: var(--font-head); font-size: 1.05rem; color: var(--white); margin-bottom: 2px; }
.contact-info-item p { font-size: 0.95rem; }
.contact-info-item .ci-arrow {
  width: 18px; height: 18px; color: var(--gold);
  opacity: 0; transform: translateX(-6px);
  transition: opacity var(--transition), transform var(--transition);
}
a.contact-info-item {
  color: inherit; cursor: pointer; padding: 14px; margin: 0 -14px 4px;
  border: 1px solid transparent; border-radius: 14px;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
a.contact-info-item:hover {
  background: var(--bg-card); border-color: var(--border);
  transform: translateX(4px);
}
a.contact-info-item:hover .ci-icon { background: var(--gold); color: #0e1420; transform: scale(1.06); }
a.contact-info-item:hover .ci-arrow { opacity: 1; transform: translateX(0); }

.contact-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.contact-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; font-weight: 600; color: var(--text);
  padding: 8px 14px; border-radius: 30px;
  border: 1px solid var(--border); background: var(--bg-card);
}
.contact-badge svg { width: 16px; height: 16px; color: var(--gold); }

/* Tarjeta de formulario */
.form-card {
  position: relative;
  background:
    radial-gradient(500px 260px at 100% 0%, rgba(212, 175, 55, 0.08), transparent),
    var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.form-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-dark) 100%);
}
.form-card-title { font-family: var(--font-head); font-size: 1.5rem; color: var(--white); margin-bottom: 6px; }
.form-card-sub { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 26px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Campos con etiqueta flotante */
.field { position: relative; margin-bottom: 18px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 22px 16px 8px;
  border: 1px solid var(--border); border-radius: 12px;
  font-family: var(--font-body); font-size: 0.95rem;
  color: var(--white); background: var(--input-bg);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
}
.field textarea { resize: vertical; min-height: 120px; padding-top: 26px; }
.field label {
  position: absolute; left: 16px; top: 15px;
  font-size: 0.95rem; color: var(--text-muted);
  pointer-events: none;
  transition: top var(--transition), font-size var(--transition), color var(--transition);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold);
  background: var(--input-bg-focus);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}
/* Flotar la etiqueta al enfocar o con contenido */
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label,
.field-select select:focus ~ label,
.field-select select:valid ~ label {
  top: 7px; font-size: 0.72rem; color: var(--gold); font-weight: 600;
}
/* Flecha personalizada del select */
.field-select::after {
  content: '';
  position: absolute; right: 18px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none; transition: border-color var(--transition);
}
.field-select:focus-within::after { border-color: var(--gold); }
.field-select select:invalid { color: var(--text-muted); }

.btn.full-width svg { width: 18px; height: 18px; transition: transform var(--transition); }
.btn.full-width:hover svg { transform: translateX(4px); }
.form-note {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  margin-top: 14px; font-size: 0.82rem; color: var(--text-muted);
}
.form-note svg { width: 15px; height: 15px; color: var(--gold); flex-shrink: 0; }
.form-status { margin-top: 14px; font-size: 0.9rem; text-align: center; }

/* ================================
   PAGE HEADER
   ================================ */
.page-header {
  padding: 80px 0;
  text-align: center;
  background:
    radial-gradient(700px 400px at 50% -30%, rgba(212, 175, 55, 0.15), transparent),
    var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.page-header h1 { font-family: var(--font-head); font-size: clamp(2.2rem, 5vw, 3rem); color: var(--white); margin-bottom: 10px; }
.page-header p { max-width: 580px; margin: 0 auto; }

/* ================================
   FOOTER
   ================================ */
.footer { background: var(--footer-bg); padding: 64px 0 0; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 36px; }
.footer .logo { margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.8; max-width: 320px; }
.footer h4 { font-family: var(--font-head); color: var(--white); font-size: 1.05rem; margin-bottom: 16px; }
.footer-col li { margin-bottom: 10px; font-size: 0.9rem; }
.footer-col a:hover { color: var(--gold); }
.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.footer-social a {
  width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; transition: all var(--transition);
}
.footer-social a:hover { background: var(--gold); border-color: var(--gold); color: #1a1505; }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid var(--border); padding: 22px 0; text-align: center; font-size: 0.82rem; }
.footer-disclaimer { font-size: 0.75rem; color: #6b7686; max-width: 900px; margin: 0 auto 10px; line-height: 1.6; }

/* ================================
   SCROLL REVEAL
   ================================ */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ================================
   WHATSAPP FLOAT
   ================================ */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px;
  width: 56px; height: 56px; background: #25d366; color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4); z-index: 1500; transition: transform var(--transition);
}
.whatsapp-float:hover { transform: translateY(-3px) scale(1.05); color: #fff; }
.whatsapp-float svg { width: 32px; height: 32px; }

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 900px) {
  .section { padding: 68px 0; }
  .hero { padding: 70px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .hero-image { order: -1; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero-trust { justify-content: center; gap: 28px; }
  .cards-grid, .features-grid, .testi-grid { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: block; }
  /* En móvil: barra sin blur (evita el parpadeo/"cacharreo") */
  .navbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  .nav-links {
    position: fixed; top: 0; right: -100%;
    width: 270px; height: 100vh; height: 100dvh; background: var(--bg-alt);
    flex-direction: column; justify-content: center; gap: 26px; padding: 0 24px;
    box-shadow: -5px 0 20px rgba(0,0,0,0.5); transition: right var(--transition);
  }
  .nav-links.active { right: 0; }
  /* Botón día/noche siempre visible arriba a la derecha (fuera del menú) */
  .nav-links > li:last-child {
    position: fixed; top: 13px; right: 62px; z-index: 1001; margin: 0;
  }
  .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }
}
@media (max-width: 560px) {
  .section { padding: 56px 0; }
  .container { padding: 0 18px; }
  .hero { padding: 50px 0 42px; }
  .hero-title { font-size: clamp(2rem, 8vw, 2.6rem); }
  .hero-lead { font-size: 1rem; }
  .section-title { font-size: clamp(1.7rem, 7vw, 2.2rem); }
  .video-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-brand p, .contact-info-lead { margin-left: auto; margin-right: auto; }
  .footer-social { justify-content: center; }
  .form-row { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .hero-buttons .btn { justify-content: center; }
  /* Tarjeta de puntaje compacta y centrada */
  .score-card { padding: 26px 24px; border-radius: 18px; max-width: 360px; margin: 0 auto; }
  .score-meter { font-size: 3rem; }
  /* Stats de confianza en una fila pareja */
  .hero-trust { gap: 0; justify-content: space-between; width: 100%; max-width: 360px; margin: 30px auto 0; }
  .hero-trust .ht { flex: 1; align-items: center; }
  .hero-trust strong { font-size: 1.6rem; }
  .hero-trust span { font-size: 0.72rem; }
  /* Secciones y tarjetas más compactas */
  .card { padding: 26px 22px; }
  .services-cta { flex-direction: column; text-align: center; padding: 24px; }
  .services-cta .btn { width: 100%; justify-content: center; }
  .feature, .testi-card { padding: 24px; }
  .form-card { padding: 26px 20px; }
  .page-header { padding: 52px 0; }
  .cta-banner { padding: 60px 0; }
  .whatsapp-float { width: 52px; height: 52px; bottom: 18px; right: 18px; }
  .whatsapp-float svg { width: 28px; height: 28px; }
}
