/* COREXA Gym · página de presentación. Colores y tipografía de docs/marca.md. */

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fuentes/ibm-plex-sans-latin.woff2') format('woff2');
}

:root {
  --profundo: #101828;
  --primario: #7c3aed;
  --acento: #a78bfa;
  --morado-oscuro: #4c1d95;
  --superficie: #f4f5f7;
  --texto: #101828;
  --texto-suave: #334155;
  --texto-apagado: #596579;
  --claro-sobre-oscuro: #cbd5e1;
  --verde: #0f7b5a;
  --verde-hover: #0b6249;
  --borde: #e2e8f0;
  --radio: 12px;
  --ancho: 1120px;
}

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

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

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

body {
  margin: 0;
  padding-bottom: 76px;
  font-family:
    'IBM Plex Sans',
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--texto);
  background: #fff;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

p {
  margin: 0;
}

a {
  color: var(--primario);
}

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

.saltar {
  position: absolute;
  left: 12px;
  top: -64px;
  z-index: 30;
  padding: 10px 16px;
  border-radius: 8px;
  background: #fff;
  color: var(--profundo);
  font-weight: 600;
}

.saltar:focus {
  top: 12px;
}

.contenedor {
  width: 100%;
  max-width: var(--ancho);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Botones ---------- */

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.boton--wsp {
  background: var(--verde);
  color: #fff;
}

.boton--wsp:hover {
  background: var(--verde-hover);
}

.boton--borde {
  border-color: var(--acento);
  color: #fff;
}

.boton--borde:hover {
  background: rgb(255 255 255 / 0.08);
}

.boton--chico {
  min-height: 44px;
  padding: 8px 16px;
  font-size: 0.9375rem;
}

.boton--grande {
  min-height: 56px;
  padding: 14px 30px;
  font-size: 1.125rem;
}

.acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.acciones--centro {
  justify-content: center;
}

/* ---------- Cabecera ---------- */

.cabecera {
  background: var(--profundo);
}

.cabecera__fila {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.cabecera__logo img {
  width: 150px;
  height: auto;
}

.cabecera__menu {
  display: flex;
  align-items: center;
  gap: 20px;
}

.enlace-ingresar {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--claro-sobre-oscuro);
  font-weight: 600;
  text-decoration: none;
}

.enlace-ingresar:hover {
  color: #fff;
  text-decoration: underline;
}

/* ---------- Portada ---------- */

.portada {
  padding-block: 40px 72px;
  color: #fff;
  background: var(--profundo);
}

.portada__rejilla {
  display: grid;
  gap: 40px;
  align-items: center;
}

.portada h1 {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.portada__bajada {
  max-width: 34rem;
  margin-top: 20px;
  font-size: 1.1875rem;
  color: var(--claro-sobre-oscuro);
}

.portada__nota {
  max-width: 34rem;
  margin-top: 24px;
  font-size: 0.9375rem;
  color: var(--claro-sobre-oscuro);
}

.ventana {
  width: 100%;
  border-radius: var(--radio);
  background: #fff;
  box-shadow:
    0 2px 6px rgb(16 24 40 / 0.18),
    0 24px 56px rgb(16 24 40 / 0.35);
}

/* ---------- Secciones ---------- */

.seccion {
  padding-block: 72px;
}

.seccion--gris {
  background: var(--superficie);
}

.seccion--morado {
  color: #fff;
  background: var(--morado-oscuro);
}

.seccion h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  font-weight: 700;
  text-wrap: balance;
}

.seccion__bajada {
  max-width: 40rem;
  margin-top: 12px;
  color: var(--texto-suave);
}

.resuelve,
.pasos {
  display: grid;
  gap: 20px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.resuelve li {
  padding: 24px 22px;
  border: 1px solid var(--borde);
  border-top: 4px solid var(--primario);
  border-radius: var(--radio);
  background: #fff;
}

.resuelve h3,
.pasos h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.resuelve p,
.pasos p {
  margin-top: 10px;
  color: var(--texto-suave);
}

.pasos {
  counter-reset: paso;
}

.pasos li {
  position: relative;
  padding: 4px 0 0 64px;
  counter-increment: paso;
}

.pasos li::before {
  content: counter(paso);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--profundo);
  color: #fff;
  font-weight: 700;
  font-size: 1.125rem;
}

/* ---------- Texto + imagen ---------- */

.dos-columnas {
  display: grid;
  gap: 40px;
  align-items: center;
}

.dos-columnas__texto p {
  max-width: 34rem;
  margin-top: 16px;
}

.dos-columnas__texto .honesto {
  font-size: 0.9375rem;
  color: var(--texto-apagado);
}

.lista {
  max-width: 34rem;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.lista li {
  position: relative;
  margin-top: 10px;
  padding-left: 28px;
}

.lista li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0.6em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primario);
}

.lista--clara li::before {
  background: var(--acento);
}

/* ---------- Celulares ---------- */

.celulares {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
}

.celular {
  width: min(100%, 220px);
  margin: 0;
}

.celular__pantalla {
  overflow: hidden;
  border: 8px solid #0a101c;
  border-radius: 30px;
  background: var(--profundo);
  box-shadow: 0 20px 44px rgb(0 0 0 / 0.35);
}

.celular figcaption {
  margin-top: 14px;
  font-size: 0.9375rem;
  text-align: center;
  color: #ddd6fe;
}

/* ---------- Cosmos ---------- */

.cosmos p {
  max-width: 44rem;
  margin-top: 14px;
  font-size: 1.125rem;
  color: var(--texto-suave);
}

/* ---------- Preguntas ---------- */

.preguntas {
  max-width: 760px;
  margin-top: 32px;
  border-top: 1px solid var(--borde);
}

.preguntas details {
  border-bottom: 1px solid var(--borde);
}

.preguntas summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 12px 0;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.preguntas summary::-webkit-details-marker {
  display: none;
}

.preguntas summary::after {
  content: '+';
  flex: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--primario);
}

.preguntas details[open] summary::after {
  content: '\2212';
}

.preguntas details p {
  max-width: 40rem;
  padding-bottom: 20px;
  color: var(--texto-suave);
}

/* ---------- Cierre y pie ---------- */

.cierre {
  padding-block: 80px;
  text-align: center;
  color: #fff;
  background: var(--profundo);
}

.cierre h2 {
  max-width: 22ch;
  margin-inline: auto;
  font-size: clamp(2rem, 4.6vw, 3rem);
  font-weight: 700;
  text-wrap: balance;
}

.cierre p {
  margin-top: 16px;
  color: var(--claro-sobre-oscuro);
}

.pie {
  padding-block: 32px;
  font-size: 0.9375rem;
  color: var(--claro-sobre-oscuro);
  background: #0a101c;
}

.pie a {
  color: #fff;
}

.pie__privacidad {
  max-width: 44rem;
  margin-top: 10px;
  color: #94a3b8;
}

/* ---------- WhatsApp flotante ---------- */

.wsp-flotante {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--verde);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 24px rgb(16 24 40 / 0.35);
}

.wsp-flotante:hover {
  background: var(--verde-hover);
}

.wsp-flotante:focus-visible {
  outline-color: #fff;
  box-shadow:
    0 0 0 3px var(--verde),
    0 8px 24px rgb(16 24 40 / 0.35);
}

/* ---------- Pantallas grandes ---------- */

@media (min-width: 640px) {
  .resuelve {
    grid-template-columns: repeat(2, 1fr);
  }

  .pasos {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }

  .cabecera__logo img {
    width: 180px;
  }
}

@media (min-width: 960px) {
  .portada {
    padding-block: 56px 96px;
  }

  .portada__rejilla {
    grid-template-columns: 4fr 7fr;
    gap: 48px;
  }

  .portada__imagen {
    margin-right: -72px;
  }

  .dos-columnas {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }

  .dos-columnas--invertida .dos-columnas__texto {
    order: 0;
  }

  .resuelve {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 639px) {
  .portada__imagen,
  .dos-columnas__imagen {
    max-width: 380px;
    margin-inline: auto;
  }
}

@media (max-width: 479px) {
  .cabecera__menu .boton {
    display: none;
  }

  .acciones .boton {
    width: 100%;
  }
}
