/* =============================================================================
   Deal Maker Academy · styles.css (dominio raíz: soydealmaker.com)
   Versión reducida de la hoja de go.soydealmaker.com: solo lo que necesitan
   la home y las páginas legales. Las variables, la fuente, la cabecera, el
   pie y las páginas legales son copia de la hoja de go.; si cambias la marca
   en una, cámbiala en la otra.

   ÍNDICE
   1. Variables (colores, tipografía, espaciado, radios)
   2. Fuentes
   3. Reset y base
   4. Layout (contenedores y secciones)
   5. Tipografía y utilidades
   6. Componentes
      6.1 Cabecera
      6.7 Pie de página
   7. Home en construcción
   8. Páginas legales (aviso legal, privacidad y cookies)
   9. Responsive

   Convenciones
   - Los valores de marca se definen SOLO en la sección 1 y se usan con var().
   - El CSS no va inline: todo vive aquí.
   ============================================================================= */


/* =============================================================================
   1. VARIABLES
   ============================================================================= */
:root {
  /* Colores de marca */
  --color-primary: #1640D6;        /* azul principal: CTAs, acentos, focus */
  --color-primary-dark: #0B2A6B;   /* azul oscuro: hover de CTA, miniatura */
  --color-primary-light: #E8EEFD;  /* azul claro: fondos suaves, texto sobre oscuro */

  /* Neutros */
  --color-text: #0A0A0A;           /* texto principal */
  --color-muted: #5A5F6B;          /* texto secundario, enlaces */
  --color-surface: #F2F3F5;        /* fondo de tarjetas y separadores */
  --color-border: #C9CCD3;         /* borde de inputs */
  --color-bg: #FFFFFF;             /* fondo de página */
  --color-overlay: rgba(10, 10, 10, 0.72);  /* fondo del modal */

  /* Tipografía */
  --font-main: 'Archivo', Arial, Helvetica, sans-serif;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 800;

  /* Radios */
  --radius-sm: 4px;                /* botones e inputs */
  --radius-lg: 12px;               /* tarjetas, modal, miniatura */

  /* Espaciado horizontal de página */
  --gutter: 32px;
  --gutter-mobile: 16px;

  /* Anchos máximos */
  --width-wide: 1100px;
  --width-content: 860px;
}


/* =============================================================================
   2. FUENTES
   Archivo es variable (eje de peso 100-900): un solo archivo cubre todos los
   pesos. Solo subset latin, suficiente para español. Se precarga en el <head>
   de cada página con <link rel="preload" as="font">.
   ============================================================================= */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* =============================================================================
   3. RESET Y BASE
   ============================================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-main);
  -webkit-text-size-adjust: 100%;
}

h1, h2, p, ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

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

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

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

button {
  font-family: inherit;
}

/* Garantiza que [hidden] gana a los display de los componentes */
[hidden] {
  display: none !important;
}


/* =============================================================================
   4. LAYOUT
   ============================================================================= */
main {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Sección centrada. Modificadores de ancho: --wide / --content */
.section {
  width: 100%;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section--wide {
  max-width: var(--width-wide);
}

.section--content {
  max-width: var(--width-content);
}


/* =============================================================================
   5. TIPOGRAFÍA Y UTILIDADES
   ============================================================================= */

/* Antetítulo en mayúsculas con tracking amplio */
.eyebrow {
  display: block;
  color: var(--color-primary);
  font-size: 13px;
  font-weight: var(--weight-medium);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.title-lg {
  font-size: 32px;
  line-height: 1.15;
  font-weight: var(--weight-bold);
  letter-spacing: -0.01em;
}

.text-accent {
  color: var(--color-primary);
}

.text-strong {
  color: var(--color-text);
  font-weight: var(--weight-bold);
}

.text-small {
  font-size: 14px;
  color: var(--color-muted);
}


/* =============================================================================
   6. COMPONENTES
   ============================================================================= */

/* ---- 6.1 Cabecera ---- */
.site-header {
  width: 100%;
  padding: 28px var(--gutter) 0;
  display: flex;
  justify-content: center;
}

.site-header img {
  height: 40px;
  width: auto;
}


/* ---- 6.7 Pie de página ---- */
.site-footer {
  width: 100%;
  padding: 32px;
  border-top: 1px solid var(--color-surface);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 24px;
  font-size: 13px;
  color: var(--color-muted);
}



/* =============================================================================
   7. HOME EN CONSTRUCCIÓN
   Página provisional de soydealmaker.com: logo, mensaje corto y enlaces legales.
   ============================================================================= */
.home {
  width: 100%;
  flex: 1;
  max-width: 640px;
  margin: 0 auto;
  padding: 72px 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
}

.home__title {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.12;
  font-weight: var(--weight-bold);
  letter-spacing: -0.02em;
}

.home__text {
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--color-muted);
}


/* =============================================================================
   8. PÁGINAS LEGALES
   /aviso-legal/, /politica-privacidad/ y /politica-cookies/ comparten el mismo
   diseño: columna de lectura con título, fecha, secciones con separador y
   tarjetas de datos. Una página legal nueva solo usa estas clases.
   ============================================================================= */
.legal {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px 80px;
  box-sizing: border-box;
  color: #3A3A3A;
  line-height: 1.7;
}

.legal h1 {
  margin: 0 0 8px;
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  line-height: 1.15;
  color: var(--color-text);
}

.legal__date { margin: 0 0 32px; color: #8A8A94; font-size: .9rem; }
.legal__intro { font-size: 1.05rem; }

.legal h2 {
  margin: 40px 0 12px;
  padding-top: 24px;
  border-top: 1px solid #E5E7EB;
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--color-text);
}

.legal h3 { margin: 22px 0 6px; font-size: 1.02rem; color: var(--color-text); }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal strong { color: var(--color-text); }
.legal a { color: var(--color-primary); }

/* Tarjeta de datos (titular, responsable...). Sirve como <div> o como <ul class="legal-data"> */
.legal__card,
.legal-data {
  background: #F3F4F6;
  border-radius: 14px;
  padding: 18px 22px;
  margin: 0 0 14px;
}

.legal__card p { margin: 0 0 6px; }
.legal__card p:last-child { margin: 0; }

.legal-data { list-style: none; }
.legal-data li { margin: 0 0 6px; }
.legal-data li:last-child { margin: 0; }

/* Datos pendientes de rellenar: se ven en amarillo para no olvidarlos */
.todo { background: #FFF3BF; color: var(--color-text); padding: 0 4px; border-radius: 4px; }


/* =============================================================================
   9. RESPONSIVE
   ============================================================================= */
@media (max-width: 640px) {
  .site-header {
    padding-left: var(--gutter-mobile);
    padding-right: var(--gutter-mobile);
  }
}

@media (max-width: 480px) {
  .home { padding-top: 48px; }
  .legal { padding-top: 24px; }
}
