/* smdani-gp — tokens.css
 * 1. Local fonts (TEC-02)  2. Design tokens (SIS-01..06)  3. Astra → GP compatibility shim (TEC-01)
 * 4. Base typography, links, focus, buttons, selection  5. Small utilities (.sm-kicker, .sm-pill, .sm-marca, .sm-badge)
 */

/* 1. Fonts: variable woff2, latin subset, swap. Archivo carries wdth 62..125 + wght 100..900. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-normal-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: "Archivo";
  font-style: italic;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-italic-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: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/source-serif-4-normal-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: "Source Serif 4";
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/source-serif-4-italic-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;
}

/* 2. Tokens */
:root {
  /* palette */
  --sm-noche: #070B3F;
  --sm-azul: #0A2BE0;
  --sm-ambar: #F6B40C;
  --sm-tinta: #14131A;
  --sm-texto: #2A2833;
  --sm-gris: #5B5866;
  --sm-superficie: #F3F4FA;
  --sm-blanco: #FFFFFF;
  --sm-rojo: #E5101F;      /* YouTube / live only */
  --sm-linea: #DCDEEA;
  /* derived, dark-surface helpers */
  --sm-noche-2: #101650;           /* submenu panel, raised dark surfaces */
  --sm-on-noche: #E6E8FF;          /* nav text on Noche */
  --sm-on-noche-muted: #C9CEF7;    /* meta text on Noche */
  --sm-on-noche-soft: #DDE1FF;     /* paragraphs on Noche */
  /* fonts */
  --sm-font-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --sm-font-text: "Source Serif 4", Georgia, serif;
  /* space scale 4·8·12·16·24·32·48·72·112 */
  --sm-s1: 4px; --sm-s2: 8px; --sm-s3: 12px; --sm-s4: 16px; --sm-s5: 24px;
  --sm-s6: 32px; --sm-s7: 48px; --sm-s8: 72px; --sm-s9: 112px;
  /* radii */
  --sm-r-card: 12px; --sm-r-img: 8px; --sm-r-btn: 10px; --sm-r-pill: 999px;
  /* one shadow for floating things */
  --sm-shadow: 0 1px 2px rgba(7,11,63,.06), 0 8px 24px -18px rgba(7,11,63,.35);
  /* widths (SIS-04): reading 68ch ≈ 720px at 18px serif, wide 1040, container 1200 */
  --sm-w-reading: 720px; --sm-w-wide: 1040px; --sm-w-container: 1200px;
  /* type scale (SIS-03) — fluid H1/H2 override the Customizer px fallbacks */
  --sm-fs-body: 18px; --sm-lh-body: 1.65;
  --sm-fs-h1: clamp(2.25rem, 1.5rem + 3vw, 3.5rem);
  --sm-fs-h2: clamp(1.75rem, 1.4rem + 1.5vw, 2.25rem);
  --sm-fs-h3: 1.375rem;
  --sm-fs-label: 13px;
  /* page padding used by full-bleed blocks to escape GP's content padding */
  --sm-gutter: 24px; --sm-content-top: 48px;
  /* play glyph reused by cards and Lyte */
  --sm-play-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 2l11 6-11 6z' fill='%23070B3F'/%3E%3C/svg%3E");
}
@media (max-width: 600px) {
  :root { --sm-fs-body: 17px; --sm-gutter: 16px; --sm-content-top: 32px; }
}

/* 3. TEC-01 shim: Astra variables and colour classes still present in migrated markup, mapped onto the new palette */
:root {
  --ast-global-color-0: #0A2BE0; /* theme colour: coral → azul */
  --ast-global-color-1: #070B3F; /* link hover → noche */
  --ast-global-color-2: #14131A; /* heading → tinta */
  --ast-global-color-3: #2A2833; /* text → texto */
  --ast-global-color-4: #F3F4FA; /* background → superficie */
  --ast-global-color-5: #FFFFFF; /* extra 1 → blanco */
  --ast-global-color-6: #070B3F; /* extra 2 (#000 header/menu/dark sections) → noche */
  --ast-global-color-7: #5B5866; /* extra 3 → gris */
  --ast-global-color-8: #F3F4FA; /* extra 4 → superficie */
  --ast-container-width: 1200px;
  --ast-content-width-size: 1200px;
  --ast-narrow-container-width: 720px;
}
.has-ast-global-color-0-color { color: #0A2BE0; }
.has-ast-global-color-1-color { color: #070B3F; }
.has-ast-global-color-2-color { color: #14131A; }
.has-ast-global-color-3-color { color: #2A2833; }
.has-ast-global-color-4-color { color: #F3F4FA; }
.has-ast-global-color-5-color { color: #FFFFFF; }
.has-ast-global-color-6-color { color: #070B3F; }
.has-ast-global-color-7-color { color: #5B5866; }
.has-ast-global-color-8-color { color: #F3F4FA; }
.has-ast-global-color-0-background-color { background-color: #0A2BE0; }
.has-ast-global-color-1-background-color { background-color: #070B3F; }
.has-ast-global-color-2-background-color { background-color: #14131A; }
.has-ast-global-color-3-background-color { background-color: #2A2833; }
.has-ast-global-color-4-background-color { background-color: #F3F4FA; }
.has-ast-global-color-5-background-color { background-color: #FFFFFF; }
.has-ast-global-color-6-background-color { background-color: #070B3F; }
.has-ast-global-color-7-background-color { background-color: #5B5866; }
.has-ast-global-color-8-background-color { background-color: #F3F4FA; }

/* 4. Base */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, ::before, ::after { transition-duration: 0s !important; animation-duration: 0s !important; } /* !important: must beat every plugin transition */
}
body {
  background: var(--sm-blanco);
  color: var(--sm-texto);
  font-family: var(--sm-font-text);
  font-size: var(--sm-fs-body);
  line-height: var(--sm-lh-body);
  overflow-x: clip; /* full-bleed blocks use 100vw; clip the scrollbar-width overflow without creating a scroll container */
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--sm-font-display);
  color: var(--sm-tinta);
  letter-spacing: -.01em;
  text-wrap: balance;
  overflow-wrap: anywhere; /* last resort for very long words on narrow screens (ERR-02) */
}
h1 { font-size: var(--sm-fs-h1); line-height: 1.05; font-weight: 850; font-stretch: 96%; letter-spacing: -.015em; }
h2 { font-size: var(--sm-fs-h2); line-height: 1.15; font-weight: 800; }
h3 { font-size: var(--sm-fs-h3); line-height: 1.25; font-weight: 750; }
h4 { font-size: 1.125rem; line-height: 1.3; font-weight: 700; }
h5, h6 { font-size: 1rem; line-height: 1.4; font-weight: 700; }

/* A11Y-02 links: azul, 1px underline offset 3px, 2px on hover */
a { color: var(--sm-azul); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--sm-noche); text-decoration-thickness: 2px; }

/* A11Y-01 focus ring: 3px amber, 2px offset, works on light and dark */
:focus-visible { outline: 3px solid var(--sm-ambar); outline-offset: 2px; }
.using-mouse :focus { outline: 0; }
.using-mouse :focus-visible { outline: 3px solid var(--sm-ambar); } /* GP's .using-mouse removes :focus; keep keyboard focus visible */

::selection { background: var(--sm-ambar); color: var(--sm-tinta); }
img, video, iframe { max-width: 100%; height: auto; }
figure { margin: 0; }
mark { background: transparent; color: inherit; }

/* SIS-05 one button system: primary (default), secondary (outline), affiliate (amber) */
.sm-btn,
.wp-block-button__link,
.button,
button:not(.menu-toggle):not(.uagb-faq-questions-button),
input[type="button"], input[type="reset"], input[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 14px 20px;
  border: 2px solid transparent; border-radius: var(--sm-r-btn);
  background: var(--sm-azul); color: var(--sm-blanco);
  font-family: var(--sm-font-display); font-weight: 700; font-size: 15px; line-height: 1;
  text-decoration: none; cursor: pointer; white-space: normal; text-align: center;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.sm-btn:hover, .wp-block-button__link:hover, .button:hover,
button:not(.menu-toggle):not(.uagb-faq-questions-button):hover,
input[type="submit"]:hover { background: var(--sm-noche); color: var(--sm-blanco); text-decoration: none; }
.wp-block-button { margin: 0; }
.wp-block-button .wp-block-button__link { border-radius: var(--sm-r-btn); }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.wp-block-buttons > .wp-block-button { margin: 0; }

/* secondary: outline azul on light, outline white .55 on dark */
.sm-btn--secondary, .is-style-sm-secondary .wp-block-button__link, .is-style-outline .wp-block-button__link {
  background: transparent; color: var(--sm-azul); border-color: var(--sm-azul);
}
.sm-btn--secondary:hover, .is-style-sm-secondary .wp-block-button__link:hover, .is-style-outline .wp-block-button__link:hover {
  background: var(--sm-azul); color: var(--sm-blanco);
}
.sm-on-dark .sm-btn--secondary, .sm-on-dark .is-style-sm-secondary .wp-block-button__link,
.sm-section--noche .is-style-sm-secondary .wp-block-button__link, .sm-home-hero .is-style-sm-secondary .wp-block-button__link,
.sm-hero .sm-btn--secondary, .sm-footer .sm-btn--secondary, .main-navigation .sm-btn--secondary {
  color: var(--sm-blanco); border-color: rgba(255,255,255,.55);
}
.sm-on-dark .sm-btn--secondary:hover, .sm-section--noche .is-style-sm-secondary .wp-block-button__link:hover,
.sm-home-hero .is-style-sm-secondary .wp-block-button__link:hover, .sm-hero .sm-btn--secondary:hover,
.main-navigation .sm-btn--secondary:hover { background: rgba(255,255,255,.12); color: var(--sm-blanco); border-color: var(--sm-blanco); }

/* affiliate: amber with tinta text */
.sm-btn--affiliate, .is-style-sm-affiliate .wp-block-button__link { background: var(--sm-ambar); color: var(--sm-tinta); }
.sm-btn--affiliate:hover, .is-style-sm-affiliate .wp-block-button__link:hover { background: #E3A300; color: var(--sm-tinta); }

/* 5. Utilities */
/* MAR-04 kicker: condensed caps label; amber on dark, azul on light */
.sm-kicker {
  display: block; margin: 0;
  font-family: var(--sm-font-display); font-weight: 750; font-size: var(--sm-fs-label); line-height: 1;
  font-stretch: 72%; letter-spacing: .12em; text-transform: uppercase; color: var(--sm-azul);
}
.sm-kicker + h1, .sm-kicker + h2, .sm-kicker + h3 { margin-top: var(--sm-s3); }
/* MAR-03 guest pill: white with check */
.sm-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--sm-blanco); color: var(--sm-tinta);
  font-family: var(--sm-font-display); font-weight: 700; font-size: 13px; line-height: 1;
  padding: 7px 10px; border-radius: 6px; box-shadow: 0 2px 0 rgba(0,0,0,.15); text-decoration: none;
}
.sm-pill::after {
  content: ""; width: 14px; height: 14px; flex: none; border-radius: 50%; background: var(--sm-azul);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8'/%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-4.9' stroke='%23fff' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8'/%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-4.9' stroke='%23fff' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.sm-pill--plain::after { content: none; }
a.sm-pill:hover { color: var(--sm-azul); }
/* MAR-02 amber marker on one keyword per screen */
.sm-marca, mark.sm-marca {
  background: linear-gradient(transparent 60%, var(--sm-ambar) 60%, var(--sm-ambar) 90%, transparent 90%);
  color: inherit; padding: 0 .06em; box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
/* MAR-04 series/section badge: amber on noche */
.sm-badge {
  display: inline-block; background: var(--sm-noche); color: var(--sm-ambar);
  font-family: var(--sm-font-display); font-weight: 700; font-size: 12px; line-height: 1;
  letter-spacing: .06em; text-transform: uppercase; padding: 5px 7px; border-radius: 4px;
}
.sm-on-dark .sm-badge, .sm-section--noche .sm-badge, .sm-hero .sm-badge { background: var(--sm-ambar); color: var(--sm-tinta); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
