/* Vídeos de demostración de ConectAICA: vista rápida en la portada, sección destacada y ventana modal. */

.btn svg use[href="#i-play"]{fill:currentColor}

/* --- Sección destacada --- */
.video-section{background:var(--sand)}
.video-feature{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:22px;align-items:stretch}
.video-frame{border-radius:var(--radius);overflow:hidden;background:#071f1c;box-shadow:var(--shadow);aspect-ratio:16/9}
.video-player{display:block;width:100%;height:100%;background:#071f1c}
.video-chapters{display:flex;flex-direction:column;padding:22px 18px 18px;border:1px solid var(--line);border-radius:var(--radius);background:#fff;box-shadow:0 1px 2px rgba(2,48,55,.04),0 8px 24px rgba(2,48,55,.06)}
.video-chapters h3{margin:0 6px 10px;font-size:13px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--green-700)}
.video-chapters ol{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.video-chapters button{width:100%;display:flex;align-items:center;gap:12px;padding:8px 10px;border:0;border-radius:10px;background:transparent;text-align:left;font-size:15px;color:var(--ink);cursor:pointer;transition:background-color 150ms ease}
.video-chapters button span{flex:none;min-width:40px;padding:2px 0;border-radius:6px;background:var(--mint-soft);color:var(--green-900);font-size:12px;font-weight:600;text-align:center;font-variant-numeric:tabular-nums}
.video-chapters button:hover,.video-chapters button[aria-current="true"]{background:#eef6f2}
.video-chapters button[aria-current="true"] span{background:var(--mint)}
.video-chapters button:focus-visible{outline:3px solid var(--mint);outline-offset:1px}
.video-chapters__cta{margin-top:auto;background:var(--green-900);color:#fff;font-size:14px}
.video-chapters__cta:hover{background:var(--green-800)}
.video-chapters__cta svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2}
.video-note{margin:16px 0 0;text-align:center;font-size:13px;color:var(--muted)}

/* --- "Cómo funciona": enlace al vídeo --- */
.steps-video{margin:30px 0 0;text-align:center}
.steps-video__btn{display:inline-flex;align-items:center;gap:10px;min-height:46px;padding:0 20px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--green-900);font-size:15px;font-weight:600;cursor:pointer;transition:border-color 150ms ease,box-shadow 150ms ease}
.steps-video__btn svg{width:16px;height:16px;fill:var(--green-900);stroke:var(--green-900);stroke-width:1.5}
.steps-video__btn:hover{border-color:var(--green-700);box-shadow:0 6px 18px rgba(2,88,100,.1)}
.steps-video__btn:focus-visible{outline:3px solid var(--mint);outline-offset:2px}

/* --- Ventana modal --- */
.modal-video{width:min(1120px,calc(100vw - 32px));max-height:calc(100vh - 32px);padding:0;border:0;border-radius:22px;background:#fff;box-shadow:0 40px 120px rgba(2,48,55,.28);overflow:hidden;color:var(--ink)}
.modal-video::backdrop{background:rgba(7,31,28,.66);backdrop-filter:blur(3px)}
.modal-video__cabecera{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 14px 12px 24px;border-bottom:1px solid var(--line)}
.modal-video__cabecera h2{margin:0;font-size:18px;font-weight:600;line-height:1.2}
.modal-video__cerrar{width:40px;height:40px;display:grid;place-items:center;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--green-900);cursor:pointer}
.modal-video__cerrar svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2}
.modal-video__cerrar:focus-visible{outline:3px solid var(--mint);outline-offset:2px}
.modal-video__marco{aspect-ratio:16/9;background:#071f1c}
.modal-video__marco video{display:block;width:100%;height:100%}
.modal-video__nota{margin:0;padding:10px 24px 14px;font-size:13px;color:var(--muted)}
.modal-video__nota a{color:var(--green-700);font-weight:600;text-decoration:underline;text-underline-offset:3px}

/* --- Formulario: campo trampa (oculto a personas y lectores de pantalla) --- */
.hp-field{position:absolute!important;left:-10000px;width:1px;height:1px;overflow:hidden}

@media (max-width:900px){
  .video-feature{grid-template-columns:1fr}
  .video-chapters ol{grid-template-columns:1fr 1fr}
}
@media (max-width:640px){
  .video-chapters ol{grid-template-columns:1fr}
  .modal-video{width:100vw;max-width:100vw;max-height:100vh;border-radius:0}
}
@media (prefers-reduced-motion:reduce){.modal-video::backdrop{backdrop-filter:none}}

/* El encabezado fijo no tapa el título al llegar desde el menú */
#video-demo{scroll-margin-top:84px}

/* --- Portada más compacta (sobrescribe valores de conectaica.css sin modificarlo) --- */
.hero{padding-top:140px}
.hero-assurances{margin-bottom:38px}
.app-shell{min-height:0}
.app-main{padding:24px 28px}
.process-line{margin-top:16px}
@media (max-width:1000px){.hero{padding-top:120px}}
@media (max-width:560px){.hero{padding-top:104px}.hero-assurances{margin-bottom:28px}.app-shell{min-height:0}.app-main{padding:16px}}
