/* ---------------------------------------------------------------------------
   Landing del curso de IA — Sa Calma Boats
   Tipografía de marca (Gotham) para titulares, sistema para lectura.
   --------------------------------------------------------------------------- */

@font-face {
  font-family: "Gotham";
  src: url("/static/fuentes/Gotham-Ultra.otf") format("opentype");
  font-weight: 800;
  font-display: swap;
}

:root {
  --navy-900: #08243d;
  --navy-800: #0d2b45;
  --navy-700: #14395c;
  --navy-600: #1f4e79;
  --ocean: #2b7fa8;
  --ocean-claro: #6fb3d2;
  --texto: #16202b;
  --suave: #5d6f80;
  --tenue: #8b9aa8;
  --borde: #dde5ec;
  --papel: #f7f9fb;
  --blanco: #fff;
  --exito: #1f7a4d;
  --error: #c0432b;
  --sombra: 0 1px 2px rgba(13,43,69,.04), 0 8px 24px rgba(13,43,69,.06);
  --sombra-alta: 0 2px 4px rgba(13,43,69,.06), 0 18px 50px rgba(13,43,69,.13);
  --r: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16.5px; line-height: 1.6; color: var(--texto); background: var(--papel);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, .display { font-family: "Gotham", -apple-system, sans-serif; font-weight: 800;
  letter-spacing: -.02em; line-height: 1.05; text-transform: uppercase; }

.wrap { width: 100%; max-width: 820px; margin: 0 auto; padding: 0 22px; }

/* ============================ CABECERA ==================================== */
.cabecera { position: relative; color: #fff; overflow: hidden; }
.cabecera__foto { position: absolute; inset: 0;
  background: url("/static/img/hero.jpg") center 45% / cover no-repeat; filter: saturate(.7); }
.cabecera__velo { position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(8,36,61,.94) 0%, rgba(8,36,61,.86) 48%,
    rgba(13,43,69,.66) 100%); }
.cabecera__cont { position: relative; z-index: 2; padding: 30px 0 52px; }

.marca { display: flex; align-items: center; gap: 14px; margin-bottom: 40px; }
.marca img { height: 30px; width: auto; filter: brightness(0) invert(1); opacity: .95; }
.marca__linea { width: 1px; height: 22px; background: rgba(255,255,255,.28); }
.marca__rotulo { font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.66); font-weight: 700; }

.cabecera h1 { font-size: clamp(30px, 5.4vw, 46px); margin: 0 0 14px; max-width: 18ch; }
.cabecera .entradilla { font-size: clamp(16px, 2vw, 18.5px); line-height: 1.55; margin: 0;
  max-width: 52ch; color: rgba(255,255,255,.88); font-weight: 300; }

/* ficha de datos del curso, montada sobre el corte de la cabecera */
.datos-curso { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 0; background: var(--blanco); border: 1px solid var(--borde); border-radius: var(--r);
  box-shadow: var(--sombra); margin-top: -26px; position: relative; z-index: 3;
  overflow: hidden; }
.datos-curso .dato { padding: 16px 20px; border-right: 1px solid var(--borde); }
.datos-curso .dato:last-child { border-right: 0; }
.datos-curso b { display: block; font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase;
  color: var(--tenue); font-weight: 700; margin-bottom: 4px; }
.datos-curso span { font-size: 14.5px; color: var(--navy-800); line-height: 1.4; }

/* ============================ SECCIONES =================================== */
.seccion { padding: 62px 0 10px; }
.seccion__titulo { font-size: clamp(24px, 4.4vw, 34px); color: var(--navy-800); margin: 0 0 12px; }
.seccion__entrada { font-size: 17px; color: var(--suave); margin: 0 0 30px; max-width: 46ch; }

.fichas-def { margin: 0; }
.fichas-def .fila { display: grid; grid-template-columns: 132px 1fr; gap: 22px;
  padding: 17px 0; border-top: 1px solid var(--borde); }
.fichas-def .fila:last-child { border-bottom: 1px solid var(--borde); }
.fichas-def dt { font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--navy-700); font-weight: 700; padding-top: 3px; }
.fichas-def dd { margin: 0; font-size: 15.5px; color: var(--texto); line-height: 1.6; }

.nota-info { margin-top: 26px; padding: 16px 20px; background: #eef3f7;
  border-left: 3px solid var(--navy-700); border-radius: 0 8px 8px 0; font-size: 15px;
  color: var(--navy-800); }
.nota-info b { font-weight: 700; }

/* ============================ FORMULARIO ================================== */
.form-cabecera { padding: 68px 0 0; }
.form-cabecera .seccion__titulo { margin-bottom: 8px; }

.paso { background: var(--blanco); border: 1px solid var(--borde); border-radius: var(--r);
  padding: 26px 26px 28px; margin-top: 16px; box-shadow: var(--sombra); }
.paso__cab { display: flex; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.paso__n { font-family: "Gotham", sans-serif; font-size: 13px; color: var(--tenue);
  letter-spacing: .06em; }
.paso__t { font-size: 19px; font-weight: 700; color: var(--navy-800); letter-spacing: -.01em; }
.paso__ayuda { font-size: 15px; color: var(--suave); margin: 0 0 6px; }

label.campo { display: block; margin-top: 20px; }
label.campo > .etq { display: block; font-weight: 600; font-size: 15.5px; color: var(--navy-800);
  margin-bottom: 7px; }
.opc { color: var(--tenue); font-weight: 400; font-size: 13.5px; }
label.campo > .pista { display: block; font-size: 14px; color: var(--suave); margin: -3px 0 8px; }

input[type=text], input[type=password], select, textarea {
  width: 100%; padding: 13px 14px; font: inherit; font-size: 16px; color: var(--texto);
  background: #fbfcfd; border: 1.5px solid #cfdae3; border-radius: 10px;
  transition: border-color .14s, box-shadow .14s, background .14s;
}
input::placeholder, textarea::placeholder { color: var(--tenue); }
textarea { resize: vertical; min-height: 86px; line-height: 1.55; }
input:focus, select:focus, textarea:focus { outline: none; background: #fff;
  border-color: var(--ocean); box-shadow: 0 0 0 4px rgba(43,127,168,.13); }
select { appearance: none; background-image:
  url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235d6f80' stroke-width='2.5' stroke-linecap='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }

/* opciones tipo tarjeta */
.opciones { display: grid; gap: 10px; margin-top: 8px; }
.opciones.rejilla2 { grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); }
.opcion { position: relative; display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border: 1.5px solid #cfdae3; border-radius: 11px; cursor: pointer;
  background: #fbfcfd; transition: border-color .14s, background .14s, transform .1s; }
.opcion:hover { border-color: var(--ocean-claro); background: #fff; }
.opcion:active { transform: scale(.995); }
.opcion input { position: absolute; opacity: 0; pointer-events: none; }
.opcion .marca-radio { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid #b9c8d4; margin-top: 1px; display: flex; align-items: center;
  justify-content: center; transition: border-color .14s, background .14s; }
.opcion .marca-radio::after { content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: #fff; transform: scale(0); transition: transform .16s cubic-bezier(.3,1.5,.6,1); }
.opcion .txt { font-size: 15.5px; font-weight: 600; color: var(--texto); }
.opcion .txt small { display: block; font-weight: 400; color: var(--suave); font-size: 13.5px;
  margin-top: 2px; line-height: 1.45; }
.opcion.sel { border-color: var(--navy-700); background: #f1f7fb;
  box-shadow: inset 0 0 0 1px var(--navy-700); }
.opcion.sel .marca-radio { border-color: var(--navy-700); background: var(--navy-700); }
.opcion.sel .marca-radio::after { transform: scale(1); }

/* barra de progreso */
.progreso { position: sticky; bottom: 0; z-index: 20; background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px); border-top: 1px solid var(--borde); padding: 13px 0;
  margin-top: 26px; }
.progreso__barra { height: 5px; background: #e6edf3; border-radius: 4px; overflow: hidden;
  margin-bottom: 11px; }
.progreso__fill { display: block; height: 100%; width: 0; border-radius: 4px;
  background: linear-gradient(90deg, var(--ocean) 0%, var(--ocean-claro) 100%);
  transition: width .35s cubic-bezier(.4,0,.2,1); }
.progreso__linea { display: flex; align-items: center; gap: 14px; }
.progreso__texto { font-size: 13.5px; color: var(--suave); flex: 1; }

button.enviar { padding: 13px 28px; font: inherit; font-size: 15.5px; font-weight: 700;
  color: #fff; background: var(--navy-700); border: 0; border-radius: 9px; cursor: pointer;
  transition: background .14s, transform .1s; white-space: nowrap; }
button.enviar:hover:not(:disabled) { background: var(--navy-600); }
button.enviar:active:not(:disabled) { transform: translateY(1px); }
button.enviar:disabled { background: #b6c3ce; box-shadow: none; cursor: default; }

.aviso-error { background: #fff3f0; border: 1px solid #f3cfc6; border-left: 4px solid var(--error);
  color: #8d2f1c; padding: 12px 16px; border-radius: 0 10px 10px 0; margin-top: 18px;
  font-size: 15px; }
.nota { font-size: 13.5px; color: var(--tenue); margin: 16px 0 0; line-height: 1.55; }

/* aviso de plazo cerrado */
.cerrado { text-align: center; padding: 50px 26px; }
.cerrado h2 { font-size: 26px; color: var(--navy-800); margin: 0 0 10px; }

/* ============================ GRACIAS ===================================== */
.gracias { text-align: center; padding: min(18vh, 130px) 24px 60px; min-height: 74vh; animation: sube .5s ease both; }
@keyframes sube { from { opacity: 0; transform: translateY(14px) } to { opacity: 1; transform: none } }
.gracias__logo { height: 30px; margin-bottom: 30px; opacity: .55; }
.gracias .sello { width: 74px; height: 74px; margin: 0 auto 22px; border-radius: 50%;
  background: #e9f6ee; color: var(--exito); display: flex; align-items: center;
  justify-content: center; }
.gracias h2 { font-size: clamp(26px, 5vw, 36px); color: var(--navy-800); margin: 0 0 12px; }
.gracias p { font-size: 17px; color: var(--suave); max-width: 42ch; margin: 0 auto; }

footer { text-align: center; color: var(--tenue); font-size: 13.5px; padding: 54px 22px 44px; }
footer .sep { color: var(--borde); margin: 0 8px; }

/* Aparición al hacer scroll. Visible por defecto: solo se oculta si el JS ha
   activado la animación (.js-anim), para que sin JS la página se vea entera. */
.js-anim .aparece { opacity: 0; transform: translateY(18px);
  transition: opacity .55s ease, transform .55s cubic-bezier(.2,.8,.3,1); }
.js-anim .aparece.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js-anim .aparece { opacity: 1; transform: none; transition: none; }
  .bajar svg { animation: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .datos-curso { grid-template-columns: 1fr 1fr; }
  .datos-curso .dato { border-bottom: 1px solid var(--borde); }
  .datos-curso .dato:nth-child(2n) { border-right: 0; }
  .fichas-def .fila { grid-template-columns: 1fr; gap: 5px; }
  .hero { min-height: min(88vh, 700px); }
  .paso { padding: 20px 18px 22px; }
  .progreso__linea { flex-wrap: wrap; }
  button.enviar { width: 100%; }
}
