/* Estilos propios de la landing "Gemelo Digital". Reusa variables, .hero, .pillars,
   .glass, .btn, .reveal, .chip, .site-header y .site-footer definidos en ../styles.css. */

/* El canvas de terrain-hero.js usa id="terrain-canvas" (distinto de #hero-canvas
   de la home): sin esta regla queda en flujo normal y empuja el contenido hacia abajo. */
#terrain-canvas{position:absolute;inset:0;z-index:0}

.gd-topbar{padding:.5rem 0}
.gd-topbar .wrap{display:flex;align-items:center;justify-content:space-between;gap:1rem}
.gd-topbar-right{display:flex;align-items:center;gap:1rem}
.gd-back{font-size:.9rem;font-weight:600;color:var(--muted)}
.gd-back:hover{color:var(--coral-deep)}

.gd-event-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.6rem;margin-top:2rem;align-items:stretch}
.gd-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:2rem;display:flex;flex-direction:column;gap:1rem}
.gd-card > .ic{width:54px;height:54px;border-radius:16px;display:grid;place-items:center;background:linear-gradient(135deg,var(--coral),var(--coral-deep))}
.gd-card > .ic svg{width:26px;height:26px;stroke:#fff;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.gd-presenter{display:flex;align-items:center;gap:1.1rem}
.gd-avatar{width:64px;height:64px;border-radius:50%;background:linear-gradient(135deg,var(--coral),var(--coral-deep));display:grid;place-items:center;color:#fff;font-family:"Wix Madefor Display",sans-serif;font-weight:800;font-size:1.3rem;flex-shrink:0}
.gd-presenter h4{font-size:1.15rem;margin-bottom:.15rem}
.gd-presenter p{color:var(--muted);font-size:.92rem}
.gd-event-row{display:flex;align-items:center;gap:.8rem}
.gd-event-row .ic{width:38px;height:38px;border-radius:10px;background:var(--peach);display:grid;place-items:center;flex-shrink:0}
.gd-event-row .ic svg{width:19px;height:19px;stroke:var(--coral-deep);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.gd-event-row .label{font-size:.72rem;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-weight:700}
.gd-event-row .value{font-weight:600;color:var(--navy)}

.gd-inscribe{background:var(--navy-deep);color:#fff}
.gd-inscribe .section-head h2{color:#fff}
.gd-inscribe .section-head p{color:#c9c9e2}
.gd-form-shell{margin-top:2rem}
.gd-form-wrap{background:#fff;border-radius:var(--radius);overflow:hidden;box-shadow:0 20px 60px rgba(0,0,0,.35)}
.gd-form-wrap iframe{width:100%;height:1200px;border:0;display:block}
.gd-form-fallback{font-size:.88rem;color:#c9c9e2}

.gd-qr-card{max-width:380px;margin:0 auto;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.18);border-radius:var(--radius);padding:2rem;text-align:center}
.gd-qr-card img{width:180px;height:180px;margin:0 auto 1rem;border-radius:12px;background:#fff;padding:10px}
.gd-qr-card p{font-size:.9rem;color:#c9c9e2}
.gd-cta-repeat{text-align:center;margin-top:1.2rem}

/* ---- captura del gemelo ---- */
.gd-shot{margin:0 0 2.2rem;border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);background:var(--navy)}
.gd-shot img{width:100%;height:auto;display:block}
.gd-shot figcaption{font-size:.85rem;color:#cfcfe6;padding:.9rem 1.2rem;background:var(--navy)}

/* ---- cifras ---- */
.gd-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:1.2rem}
.gd-stats div{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:1.5rem 1.4rem}
.gd-stats b{display:block;font-family:"Wix Madefor Display",sans-serif;font-size:2.1rem;line-height:1;color:var(--coral-deep)}
.gd-stats span{display:block;margin-top:.55rem;font-size:.9rem;color:var(--muted);line-height:1.4}

.gd-fuentes{margin-top:1.8rem;font-size:.88rem;color:var(--muted);line-height:1.6;max-width:70ch}

/* ---- preguntas ---- */
.gd-preguntas{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1rem;margin-top:2rem}
.gd-preguntas div{background:var(--cream);border:1px solid var(--line);border-radius:var(--radius);
  padding:1.35rem 1.5rem;font-family:"Wix Madefor Display",sans-serif;font-weight:600;color:var(--navy);line-height:1.35}

/* ---- juego ---- */
.gd-juego{max-width:640px;margin:2rem auto 0;text-align:center;background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.18);border-radius:var(--radius);padding:2.2rem}
.gd-juego p{color:#dcdcf0;line-height:1.65}
.gd-juego strong{color:#fff}
.gd-juego .btn{margin-top:1.5rem}
.gd-juego-nota{margin-top:1rem;font-size:.85rem;color:#a9a9c8}

/* ---- boton de whatsapp ---- */
.btn-wa{display:inline-flex;align-items:center;gap:.55rem;background:#25d366;color:#0b2b16;
  border:0;font-weight:700}
.btn-wa:hover{background:#1fbe5a}
.btn-wa svg{width:20px;height:20px;fill:currentColor;flex-shrink:0}
.gd-cta-repeat .btn{margin:.35rem}

/* ---- clips de vistas clave ---- */
.gd-clips{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:1.4rem;margin-top:2rem}
/* La tarjeta se ve siempre: la imagen fija carga de una y el video espera al clic. */
.gd-clip{margin:0;border-radius:var(--radius);overflow:hidden;background:var(--navy);box-shadow:var(--shadow)}
.gd-clip-vis{position:relative;line-height:0}
.gd-clip video{width:100%;height:auto;display:block;aspect-ratio:16/9;object-fit:cover;background:var(--navy)}
.gd-clip figcaption{font-size:.88rem;color:#cfcfe6;padding:.9rem 1.2rem;line-height:1.45}

.gd-play{position:absolute;inset:0;width:100%;height:100%;border:0;cursor:pointer;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem;
  background:rgba(14,14,38,.34);color:#fff;font-family:inherit;font-size:.86rem;font-weight:700;
  letter-spacing:.06em;text-transform:uppercase;transition:background .2s ease}
.gd-play:hover{background:rgba(14,14,38,.16)}
.gd-play svg{width:58px;height:58px;fill:#fff;background:rgba(201,64,1,.92);border-radius:50%;
  padding:14px 12px 14px 16px;box-shadow:0 6px 24px rgba(0,0,0,.35)}
.gd-clip.cargando .gd-play span::after{content:"…"}
.gd-clip.cargando .gd-play svg{opacity:.45}
.gd-clip.activo .gd-play{display:none}
.gd-clip.fallo .gd-play{background:rgba(14,14,38,.7)}
.gd-clip.fallo .gd-play svg{display:none}
.gd-clip.fallo .gd-play span::after{content:" no disponible"}

/* ---- claim calibrado ---- */
.gd-claim{max-width:70ch;margin-top:1.6rem;background:var(--peach);border-radius:var(--radius);padding:1.6rem 1.8rem}
.gd-claim p{font-family:"Wix Madefor Display",sans-serif;font-weight:600;font-size:1.12rem;color:var(--navy);line-height:1.5}

@media(max-width:900px){
  .gd-event-grid{grid-template-columns:1fr}
  .gd-stats b{font-size:1.8rem}
}
