/* CloserX — la hoja de estilo de las páginas públicas de closer-x.com (revisión 150, A.1).
   Es el estilo nuevo de la app (revisión 145): los valores salen de movil/src/constants/estilo-nuevo.ts y paleta.ts.
   Como en la app, el estilo nuevo va solo en claro (su modo oscuro no está aprobado). Sin recursos de terceros: la
   fuente Figtree va copiada en fuentes/, con su licencia (SIL OFL 1.1). */

@font-face {
  font-family: "Figtree";
  src: url("fuentes/Figtree_400Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("fuentes/Figtree_700Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --fondo: #FBF2E6;
  --tarjeta: #FFFFFF;
  --linea: #EFDCC8;
  --texto: #1F1712;
  --texto-2: #6B5E55;
  --tinta: #3A1A0A;
  /* Para texto blanco (solo grande) e íconos: 3,0:1 a 3,26:1. */
  --cabecera-desde: #F46C03;
  --cabecera-hasta: #F9571A;
  --arco: #FF791A;
  /* Botón principal: con la tinta encima, 4,5:1 o más en todo el degradado. */
  --boton-desde: #FC7B17;
  --boton-hasta: #F9571A;
  --sombra-tarjeta: 0 1px 2px rgba(58, 26, 10, .06), 0 10px 28px rgba(160, 60, 10, .12);
  --sombra-boton: 0 6px 16px rgba(248, 87, 28, .38), inset 0 1px 0 rgba(255, 255, 255, .28);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--fondo);
  color: var(--texto);
  font-family: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

/* La cabecera: degradado vertical con el borde de abajo en arco, como la de la app. */
.cabecera {
  position: relative;
  background: linear-gradient(180deg, var(--cabecera-desde), var(--cabecera-hasta));
  color: #FFFFFF;
  padding: 28px 16px 56px;
  border-bottom-left-radius: 50% 32px;
  border-bottom-right-radius: 50% 32px;
  overflow: hidden;
}
/* El símbolo como textura, al 11 %. */
.cabecera::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -10px;
  width: 220px;
  height: 236px;
  background: url("simbolo-blanco.svg") no-repeat center / contain;
  opacity: .11;
  pointer-events: none;
}
.cabecera-dentro {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cabecera .logo { display: block; align-self: flex-start; height: 32px; width: auto; max-width: 100%; }
.cabecera a.marca { display: inline-block; align-self: flex-start; min-height: 44px; padding: 6px 0; }
.cabecera a.marca:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 4px; border-radius: 8px; }
/* Blanco solo en texto grande (24 px o más en negrita). */
.cabecera h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.5px;
}

main {
  max-width: 560px;
  margin: -28px auto 0;
  padding: 0 16px 32px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tarjeta {
  background: var(--tarjeta);
  border-radius: 22px;
  box-shadow: var(--sombra-tarjeta);
  padding: 20px 16px;
}
.tarjeta h2 { margin: 0 0 8px; font-size: 20px; line-height: 1.25; font-weight: 700; }
.tarjeta p { margin: 0 0 8px; }
.tarjeta p:last-child { margin-bottom: 0; }

p, li { font-size: 17px; }
.bajada { font-size: 17px; color: var(--texto-2); }
.nota { font-size: 15px; color: var(--texto-2); }

ol, ul { margin: 0 0 8px; padding-left: 22px; }
li { margin: 4px 0; }

a { color: var(--tinta); font-weight: 700; text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--tinta); outline-offset: 3px; border-radius: 4px; }

.pilares { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pilares li { margin: 0; }
.pilares strong { display: block; font-size: 18px; }
.pilares span { font-size: 16px; color: var(--texto-2); }

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--boton-desde), var(--boton-hasta));
  box-shadow: var(--sombra-boton);
  color: var(--tinta);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
}
.boton:focus-visible { outline: 3px solid var(--tinta); outline-offset: 3px; }

.entrar { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.entrar img { width: 200px; height: 200px; max-width: 100%; border-radius: 8px; }

.enlaces { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.enlaces li { margin: 0; border-top: 1px solid var(--linea); }
.enlaces li:first-child { border-top: 0; }
.enlaces a { display: flex; align-items: center; min-height: 48px; text-decoration: none; }

footer {
  max-width: 560px;
  margin: 0 auto;
  padding: 8px 16px 40px;
  font-size: 14px;
  color: var(--texto-2);
  text-align: center;
}
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 16px; margin-bottom: 8px; }
footer nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--texto-2); font-weight: 400; }
