/* Soy Maik · valores de Diseño Soy Maik/handoff/BRAND.md */
:root {
  --fondo: #FFFFFF;
  --fondo-destacado: #EAF4FF;
  --acento: #1F6FEB;
  --acento-hover: #1A5FCC;
  --titulares: #0F2A47;
  --texto: #3D5166;
  --texto-secundario: #5B7088;
  --bordes: #CFE3F8;
  --error: #B42318;
  --fuente: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font-family: var(--fuente);
  font-size: 18px;
  line-height: 29px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p { margin: 0; }
h1, h2, .destacada, .subtitulo { text-wrap: balance; }

a { color: var(--acento); }
a:hover { color: var(--acento-hover); }

:focus-visible { outline: 2px solid var(--acento); outline-offset: 3px; }

.saltar {
  position: absolute; left: -9999px; top: 0;
  background: var(--titulares); color: #FFFFFF; padding: 12px 16px; z-index: 10;
}
.saltar:focus { left: 0; }

/* Secciones */
.seccion { padding: 96px 24px; }
.seccion--destacada { background: var(--fondo-destacado); }
.contenido { max-width: 760px; margin: 0 auto; text-align: center; }
.contenido > * + * { margin-top: 24px; }

/* Logotipo: texto, con la coma en acento */
.logotipo {
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--titulares);
  text-decoration: none;
  white-space: nowrap;
}
.logotipo span { color: var(--acento); }
.cabecera .logotipo { display: inline-block; font-size: 48px; line-height: 56px; }
.marca { margin-bottom: 40px; }
.marca .logotipo, .marca .lema { display: block; }
.lema { margin-top: 2px; font-size: 20px; line-height: 28px; font-weight: 700; color: var(--acento); }

/* Tipografía */
.etiqueta {
  font-size: 13px; line-height: 18px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--acento);
}
h1 {
  font-size: 56px; line-height: 64px; font-weight: 800;
  letter-spacing: -1px; color: var(--titulares);
}
h1 strong { font-weight: 800; color: var(--acento); }
h2 {
  font-size: 40px; line-height: 48px; font-weight: 800;
  letter-spacing: -0.5px; color: var(--titulares);
}
.destacada { font-size: 24px; line-height: 32px; font-weight: 700; color: var(--acento); }
.subtitulo { font-size: 22px; line-height: 30px; font-weight: 700; color: var(--titulares); }

/* Botón */
.boton {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 16px 32px;
  border: 0; border-radius: 12px;
  background: var(--acento); color: #FFFFFF;
  font-family: inherit; font-size: 17px; line-height: 24px; font-weight: 700;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease;
}
.boton:hover { background: var(--acento-hover); color: #FFFFFF; }
.boton[disabled] { opacity: 0.6; cursor: default; }

/* Tarjetas */
.tematicas { max-width: 1080px; margin: 72px auto 0; }
.tematicas .subtitulo { text-align: center; }
.rejilla {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin: 32px 0 0; padding: 0; list-style: none;
}
.tarjeta {
  padding: 28px; border: 1px solid var(--bordes); border-radius: 16px;
  background: var(--fondo); text-align: left;
}
.tarjeta svg { display: block; width: 32px; height: 32px; color: var(--acento); }
.tarjeta h3 {
  margin-top: 12px; font-size: 19px; line-height: 26px; font-weight: 700; color: var(--titulares);
}
.tarjeta p { margin-top: 12px; font-size: 16px; line-height: 25px; }

/* Marca de agua: la coma, muy tenue, tras el formulario */
#form { position: relative; overflow: hidden; }
#form::before {
  content: ""; position: absolute; right: 4%; bottom: -90px;
  width: 380px; height: 670px;
  background: url("/coma.svg") no-repeat center / contain;
  opacity: 0.07; pointer-events: none;
}
#form > * { position: relative; }

/* Formulario */
.formulario {
  max-width: 560px; margin: 32px auto 0; padding: 40px;
  border: 1px solid var(--bordes); border-radius: 20px;
  background: var(--fondo); text-align: left;
}
.campo + .campo { margin-top: 12px; }
.campo label {
  display: block; margin-bottom: 6px;
  font-size: 14px; line-height: 20px; font-weight: 700; color: var(--titulares);
}
.campo label span { font-weight: 400; color: var(--texto-secundario); }
.campo input {
  display: block; width: 100%; height: 52px; padding: 0 16px;
  border: 1px solid var(--bordes); border-radius: 10px;
  background: var(--fondo); color: var(--titulares);
  font-family: inherit; font-size: 16px;
}
.campo input::placeholder { color: var(--texto-secundario); opacity: 1; }
.campo input:focus { outline: none; border-color: var(--acento); box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.18); }
.formulario .boton { width: 100%; margin-top: 20px; }
.aviso { margin-top: 16px; font-size: 13px; line-height: 20px; color: var(--texto-secundario); text-align: center; }
.estado { margin-top: 16px; font-size: 16px; line-height: 25px; font-weight: 700; text-align: center; }
.estado:empty { display: none; }
.estado--ok { color: var(--titulares); }
.estado--error { color: var(--error); }
.trampa { position: absolute; left: -9999px; }

/* Tras el alta: solo queda el mensaje */
.formulario--enviado > :not(.exito) { display: none; }
.exito { text-align: center; outline: none; }
.exito > * + * { margin-top: 12px; }
.exito__titulo { font-size: 24px; line-height: 32px; font-weight: 800; color: var(--titulares); }
.exito__nota { font-size: 14px; line-height: 22px; color: var(--texto-secundario); }

/* Página de confirmación */
.pantalla { min-height: 100vh; display: flex; flex-direction: column; background: var(--fondo-destacado); }
.pantalla main { flex: 1; display: flex; align-items: center; }
.pantalla .seccion { width: 100%; }
.pantalla .pie { background: var(--fondo); }

/* Pie */
.pie {
  padding: 40px 24px; border-top: 1px solid var(--bordes);
  font-size: 14px; line-height: 20px; color: var(--texto-secundario); text-align: center;
}
.pie .logotipo { font-weight: 700; letter-spacing: 0; }
.pie a { color: var(--texto-secundario); }

/* Tablet */
@media (max-width: 960px) {
  .rejilla { grid-template-columns: repeat(2, 1fr); }
}

/* Móvil */
@media (max-width: 640px) {
  body { font-size: 17px; line-height: 27px; }
  .seccion { padding: 56px 20px; }
  .contenido > * + * { margin-top: 20px; }
  .cabecera .logotipo { font-size: 38px; line-height: 46px; }
  .marca { margin-bottom: 28px; }
  .lema { font-size: 17px; line-height: 24px; }
  #form::before { width: 190px; height: 335px; right: -40px; bottom: -50px; }
  .etiqueta { font-size: 12px; }
  h1 { font-size: 36px; line-height: 42px; letter-spacing: -0.5px; }
  h2 { font-size: 30px; line-height: 36px; }
  .destacada { font-size: 21px; line-height: 29px; }
  .subtitulo { font-size: 20px; line-height: 28px; }
  .tematicas { margin-top: 56px; }
  .tematicas .subtitulo { text-align: left; }
  .rejilla { grid-template-columns: 1fr; gap: 16px; margin-top: 24px; }
  .tarjeta { padding: 24px; }
  .boton { width: 100%; }
  .formulario { padding: 24px; margin-top: 24px; }
  .pie { padding: 32px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .boton { transition: none; }
}
