/* SweetPar — sitio público. Paleta 60-30-10 y tipografía ya validadas en la página temporal. */

/* Las fuentes se sirven desde sweetpar.com y no desde Google (H-849): antes un
   @import de Google Fonts le mandaba a Google la IP y la página de cada visita.
   Son los mismos archivos que entregaba Google (Fraunces v38, Public Sans v21),
   solo los subconjuntos latin y latin-ext, con su unicode-range. Fraunces
   normal y Public Sans son variables (eje wght); la cursiva de Fraunces es
   estática en 500, el único peso cursivo que pedía el @import. Licencia OFL:
   el OFL.txt de cada familia va en su carpeta y se publica con ellas. */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/fraunces/fraunces-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/fraunces/fraunces-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;
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/fraunces/fraunces-italic-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/fraunces/fraunces-italic-500-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;
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/public-sans/public-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/public-sans/public-sans-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;
}

:root {
  --bg: #FFFFFF;
  --ink: #1B1B1E;
  /* El rojo único del ADR-0009 (H-195, 29-sep-2026): el mismo del logo, la app y el panel. */
  --accent: #CC0033;
  --accent-2: #CB3C67;
  /* El acento al 12 % sobre blanco, como el primaryContainer de la app. */
  --accent-tint: #F9E0E7;
  --hairline: #E2E2E6;

  --font-display: 'Fraunces', serif;
  --font-body: 'Public Sans', sans-serif;

  --container: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--hairline);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand img.brand-icon { height: 32px; width: auto; }
.brand img.brand-wordmark { height: 20px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  color: var(--ink);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  border-bottom-color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle svg { width: 24px; height: 24px; }

/* Footer */

.site-footer {
  border-top: 1px solid var(--hairline);
  margin-top: 96px;
  padding: 40px 0;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.85;
}

.footer-brand img { height: 22px; width: auto; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
}

.footer-links a { text-decoration: none; color: var(--ink); opacity: 0.75; }
.footer-links a:hover { opacity: 1; color: var(--accent); }

.footer-copy {
  width: 100%;
  font-size: 13px;
  color: var(--ink);
  opacity: 0.5;
  margin-top: 8px;
}

/* Typography helpers */

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 16px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 20px;
}

h1 { font-size: clamp(36px, 6vw, 56px); }
h2 { font-size: clamp(26px, 4vw, 34px); font-style: italic; }
h3 { font-size: 20px; font-style: normal; font-weight: 600; font-family: var(--font-body); }

p { margin: 0 0 20px; }

.lede {
  font-size: 20px;
  line-height: 1.5;
  opacity: 0.85;
  max-width: 640px;
}

.section {
  padding: 72px 0;
}

.section + .section {
  border-top: 1px solid var(--hairline);
}

/* Hero */

.hero {
  padding: 96px 0 72px;
  text-align: left;
}

.hero .lede {
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
}

.btn-primary:hover { background: var(--accent-2); }

.btn-primary[aria-disabled="true"] {
  background: var(--accent);
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}

.btn-secondary {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

.btn-note {
  font-size: 13px;
  opacity: 0.6;
}

/* Pillars / grid */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.pillar h3 { margin-bottom: 10px; }
.pillar p { opacity: 0.8; margin-bottom: 0; }

/* Teaser / callout card */

.callout {
  background: #FAFAFB;
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.callout p { margin-bottom: 0; max-width: 520px; }
.callout h3 { margin-bottom: 10px; }

/* Legal notice banner */

.legal-banner {
  background: var(--accent-tint);
  border: 1px solid var(--accent);
  border-radius: 14px;
  padding: 20px 24px;
  font-size: 15px;
  margin-bottom: 48px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.legal-banner strong { color: var(--accent-2); }

/* Texto legal (privacidad, términos, eliminar cuenta, seguridad infantil).
   El HTML lo genera web/.tools/md_a_html.py desde el Markdown aprobado:
   títulos, párrafos, listas, enlaces y tablas. */

.legal h2 { margin-top: 48px; }
.legal h3 { margin-top: 36px; margin-bottom: 12px; }
.legal h4 { font-size: 17px; font-weight: 700; margin: 28px 0 8px; }

.legal ul,
.legal ol { margin: 0 0 20px; padding-left: 1.4em; }
.legal li { margin-bottom: 8px; }
.legal li > ul,
.legal li > ol { margin: 8px 0 0; }

.legal a { color: var(--accent); text-underline-offset: 2px; }
.legal a:hover { color: var(--accent-2); }

.legal blockquote {
  margin: 0 0 20px;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--hairline);
}

.legal hr { border: 0; border-top: 1px solid var(--hairline); margin: 40px 0; }

.legal .tabla { overflow-x: auto; margin: 0 0 24px; }
.legal table { border-collapse: collapse; width: 100%; font-size: 15px; }
.legal th,
.legal td {
  border: 1px solid var(--hairline);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.legal th { background: #FAFAFB; font-weight: 600; }

/* Marca de sección sin texto aprobado todavía. */
.legal .pendiente { font-style: italic; opacity: 0.6; }

/* Contact */

.contact-block {
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 24px;
}

.contact-block h3 { margin-bottom: 12px; }

.contact-block a.email {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--accent);
  text-decoration: none;
}

.contact-block a.email:hover { color: var(--accent-2); }

/* Responsive */

@media (max-width: 760px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--hairline);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 16px;
    display: none;
  }

  .main-nav.open { display: flex; }

  .main-nav a {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--hairline);
  }

  .site-header { position: relative; }

  .nav-toggle { display: block; }

  .pillars { grid-template-columns: 1fr; }

  .callout { flex-direction: column; align-items: flex-start; padding: 28px; }

  .hero { padding: 56px 0 48px; }

  .section { padding: 48px 0; }
}
