/* Página /bot de SisMAC (fase F0). Paleta del doc 03: azul #0898D8, azul profundo #083888,
   noche #001A49, acento #F89808, claro #E5E5F7. Un solo archivo, sin dependencias. */
:root {
  --azul: #0898D8; --azul-accion: #2091F9; --profundo: #083888; --noche: #001A49; --casi-negro: #05080C;
  --naranja: #F89808; --claro: #E5E5F7; --gris: #f4f6fb; --texto: #1b2433; --suave: #5a6577;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', 'Segoe UI', Arial, sans-serif; color: var(--texto); background: #fff; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--azul-accion); }
img, video { max-width: 100%; display: block; }
.contenedor { width: min(1120px, 100% - 40px); margin: 0 auto; }
.contenedor--angosto { width: min(760px, 100% - 40px); }

/* barra */
.barra { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid #e3e8f2; }
.barra__fila { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.barra__logo img { height: 40px; width: auto; }
.barra__menu { margin-left: auto; display: flex; gap: 22px; }
.barra__menu a { color: var(--noche); text-decoration: none; font-weight: 500; font-size: 15px; }
.barra__menu a:hover { color: var(--azul-accion); }

/* botones */
.boton { display: inline-block; background: var(--naranja); color: #1a1205; font-weight: 700; font-size: 17px; text-decoration: none; padding: 15px 28px; border-radius: 12px; border: 0; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; box-shadow: 0 8px 24px rgba(248,152,8,.28); }
.boton:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(248,152,8,.38); }
.boton--chico { padding: 10px 18px; font-size: 14px; box-shadow: none; }
.boton--claro { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.55); box-shadow: none; }
.boton--claro:hover { background: rgba(255,255,255,.1); box-shadow: none; }
.boton--bloque { width: 100%; margin-top: 18px; }

/* portada */
.portada { background: radial-gradient(ellipse at 80% 40%, rgba(8,152,216,.28) 0%, rgba(8,152,216,0) 55%), linear-gradient(160deg, var(--noche) 0%, var(--casi-negro) 100%); color: #fff; padding: 72px 0 80px; overflow: hidden; }
.portada__rejilla { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.etiqueta { display: inline-block; border: 1.5px solid rgba(248,152,8,.6); color: var(--naranja); border-radius: 40px; padding: 6px 18px; font-weight: 600; font-size: 13px; letter-spacing: 1.6px; text-transform: uppercase; }
.portada h1 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.06; font-weight: 800; letter-spacing: -1.5px; margin: 20px 0 18px; }
.portada__sub { font-size: 19px; color: #c9d6e6; max-width: 560px; }
.portada__botones { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 26px; }
.portada__datos { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; color: #b8c8dc; font-size: 15px; }
.portada__datos li::before { content: '✓'; color: var(--azul); font-weight: 700; margin-right: 8px; }
.portada__video { justify-self: center; text-align: center; }
.telefono { width: min(300px, 70vw); aspect-ratio: 9 / 16; border-radius: 40px; overflow: hidden; background: #000; border: 9px solid #11161c; box-shadow: 0 0 0 2px #5d6a78, 0 40px 90px rgba(0,0,0,.6), 0 0 110px rgba(8,152,216,.3); }
.telefono video { width: 100%; height: 100%; object-fit: cover; background: #000; }

/* bloques */
.bloque { padding: 84px 0; }
.bloque h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; font-weight: 700; color: var(--noche); letter-spacing: -.8px; text-align: center; }
.bloque__sub { text-align: center; color: var(--suave); max-width: 640px; margin: 14px auto 0; }
.bloque--oscuro { background: linear-gradient(160deg, var(--noche) 0%, var(--profundo) 130%); color: #fff; }
.bloque--oscuro h2 { color: #fff; }
.bloque--gris { background: var(--gris); }
/* Fondo de la sección del formulario: se genera con ChatGPT (prompt M-IA-20) y se guarda como bot_assets/fondo_formulario.png.
   Mientras no exista, se ve el color lavanda de siempre. */
.bloque--formulario { background-color: var(--claro); background-image: url('../bot_assets/fondo_formulario.png'); background-size: cover; background-position: center; background-repeat: no-repeat; }
.bloque__nota { max-width: 780px; margin: 34px auto 0; text-align: center; color: var(--suave); font-size: 15px; }

/* tarjetas */
.tarjetas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 44px; }
.tarjeta { border: 1px solid #e3e8f2; border-radius: 18px; padding: 30px; background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.tarjeta:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,26,73,.1); }
.tarjeta svg { width: 40px; height: 40px; fill: none; stroke: var(--azul); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.tarjeta h3 { font-size: 19px; color: var(--noche); margin: 16px 0 8px; line-height: 1.3; }
.tarjeta p { color: var(--suave); font-size: 15.5px; }

/* pasos */
.pasos { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 44px; }
.pasos__n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--naranja); color: #1a1205; font-weight: 800; }
.pasos h3 { font-size: 19px; margin: 16px 0 8px; }
.pasos p { color: #c0d0e4; font-size: 15.5px; }

/* roles */
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.roles div { border-left: 4px solid var(--azul); padding: 4px 0 4px 18px; }
.roles h3 { color: var(--noche); font-size: 18px; margin-bottom: 6px; }
.roles p { color: var(--suave); font-size: 15.5px; }
.aviso { margin-top: 46px; background: var(--claro); border-radius: 16px; padding: 22px 28px; display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; color: var(--noche); }
.aviso span { color: var(--suave); }

/* preguntas */
details { background: #fff; border: 1px solid #e3e8f2; border-radius: 12px; padding: 0 22px; margin-top: 12px; }
details:first-of-type { margin-top: 36px; }
summary { cursor: pointer; font-weight: 600; color: var(--noche); padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--azul); font-size: 24px; line-height: 1; }
details[open] summary::after { content: '−'; }
details p { color: var(--suave); padding: 0 0 18px; font-size: 15.5px; }

/* formulario */
form { margin-top: 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; background: #fff; padding: 30px; border-radius: 18px; box-shadow: 0 18px 50px rgba(0,26,73,.12); }
.campo { display: flex; flex-direction: column; gap: 6px; }
.campo--ancho, .acepto, form .boton, .estado { grid-column: 1 / -1; }
label { font-size: 14px; font-weight: 600; color: var(--noche); }
input, select, textarea { font: inherit; font-size: 16px; padding: 12px 14px; border: 1.5px solid #cdd5e3; border-radius: 10px; background: #fff; color: var(--texto); }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(32,145,249,.25); border-color: var(--azul-accion); }
.acepto { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; color: var(--suave); }
.acepto input { margin-top: 4px; width: 18px; height: 18px; flex: 0 0 18px; }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.estado { min-height: 24px; font-size: 15px; font-weight: 600; }
.estado.ok { color: #0a7a3d; }
.estado.error { color: #b42318; }
.campo.invalido input, .campo.invalido select { border-color: #b42318; }

/* pie */
.pie { background: #1D293F; color: #cdd7e6; padding: 44px 0 20px; font-size: 15px; }
.pie a { color: #cdd7e6; }
.pie__fila { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.pie__legal { text-align: center; margin-top: 34px; font-size: 13px; color: #8c9ab0; }

/* botón flotante de WhatsApp */
/* logotipo oficial de WhatsApp (sin modificar) */
.wa-logo { display: inline-block; vertical-align: middle; width: 24px; height: 24px; margin-right: 10px; }
.boton .wa-logo { margin: -3px 10px 0 -4px; }
.flotante { position: fixed; right: 18px; bottom: 18px; z-index: 30; display: flex; align-items: center; gap: 10px; background: #fff; color: #1b2433; text-decoration: none; font-weight: 700; padding: 8px 18px 8px 10px; border-radius: 40px; box-shadow: 0 10px 28px rgba(0,26,73,.28); border: 1px solid #e3e8f2; }
.flotante img { width: 34px; height: 34px; }

@media (max-width: 860px) {
  .barra__menu { display: none; }
  .barra__fila { justify-content: space-between; }
  .portada { padding: 44px 0 56px; }
  .portada__rejilla, .tarjetas, .pasos, .roles, .pie__fila { grid-template-columns: 1fr; }
  .portada__video { order: 2; }
  .bloque { padding: 60px 0; }
  form { grid-template-columns: 1fr; padding: 22px; }
  .flotante span { display: none; }
  .flotante { padding: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* página de privacidad y cookies */
.legal { padding: 56px 0 84px; }
.legal h1 { font-size: clamp(30px, 4vw, 42px); line-height: 1.15; color: var(--noche); letter-spacing: -.8px; }
.legal__fecha { color: var(--suave); font-size: 14px; margin: 8px 0 28px; }
.legal h2 { font-size: 22px; color: var(--noche); margin: 34px 0 10px; }
.legal h3 { font-size: 18px; color: var(--noche); margin: 26px 0 8px; }
.legal p, .legal li { color: #33405a; font-size: 16px; }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 12px 22px; display: block; }
.legal li { margin-bottom: 6px; display: list-item; }
.legal__tabla { overflow-x: auto; margin: 14px 0 18px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid #e3e8f2; }
.legal th { background: var(--gris); color: var(--noche); font-weight: 600; }
.legal code { background: var(--gris); padding: 1px 6px; border-radius: 4px; font-size: 13px; }
.pie__legal a { color: #cdd7e6; }
