/* Súper Residente — estilos base
   Tokens tomados de branding-super-residente.md
   Sin fuentes externas: carga instantánea y sin transferencias a terceros. */

:root {
  --sr-yellow: #F8C72B;
  --sr-yellow-soft: #FFD44D;
  --sr-black: #0A0A0A;
  --sr-white: #FFFFFF;
  --sr-cream: #F7F3EA;
  --sr-offwhite: #FBFAF6;
  --sr-teal: #0AAE9B;
  --sr-dark-teal: #075E55;
  --sr-charcoal: #272525;
  --sr-grey: #6C6C68;
  --sr-border: #DDD8CD;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Arial Black", "Helvetica Neue", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --container: 1200px;
  --gutter: 20px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--sr-cream);
  color: var(--sr-black);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 768px) { body { font-size: 17px; } }

img, svg { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--sr-black); outline-offset: 3px; border-radius: 4px; }
.bg-black :focus-visible { outline-color: var(--sr-yellow); }

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--sr-black); color: var(--sr-white); padding: 10px 16px; border-radius: var(--radius-sm); z-index: 100;
}
.skip-link:focus { left: 8px; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 32px; } }

/* ---------- Tipografía ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 0;
}
h1 { font-size: clamp(40px, 7.2vw, 82px); line-height: 0.98; }
h2 { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.02; }
h3 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.12; letter-spacing: -0.02em; }

.label {
  display: inline-block;
  font-size: 13px; font-weight: 800;
  letter-spacing: .09em; text-transform: uppercase;
  margin-bottom: 14px;
}
.lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.5; max-width: 40ch; }
.muted { color: var(--sr-grey); }
.small { font-size: 14px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 14px 26px;
  background: var(--sr-black); color: var(--sr-white);
  border: 2px solid var(--sr-black); border-radius: var(--radius-pill);
  font: 700 17px/1.2 var(--font-sans); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--sr-charcoal); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--ghost { background: transparent; color: var(--sr-black); }
.btn--ghost:hover { background: var(--sr-black); color: var(--sr-white); }
.btn--yellow { background: var(--sr-yellow); border-color: var(--sr-yellow); color: var(--sr-black); }
.btn--yellow:hover { background: var(--sr-yellow-soft); }
.btn--block { width: 100%; }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

/* ---------- Header / footer ---------- */
.site-header { background: var(--sr-yellow); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: .06em; font-size: 14px; }
.logo__mark {
  display: inline-grid; place-items: center; width: 38px; height: 38px;
  background: var(--sr-black); color: var(--sr-yellow);
  font-family: var(--font-display); font-weight: 900; font-size: 15px; letter-spacing: -0.02em; border-radius: 10px;
}
.site-header .btn { min-height: 44px; padding: 10px 18px; font-size: 15px; }

.site-footer { background: var(--sr-black); color: var(--sr-cream); padding-block: 64px 40px; }
.site-footer__claim { font-family: var(--font-display); font-weight: 900; font-size: clamp(24px, 3vw, 34px); line-height: 1.1; letter-spacing: -0.02em; max-width: 22ch; margin-bottom: 32px; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 10px 24px; list-style: none; padding: 0; margin: 0 0 28px; font-size: 15px; }
.site-footer__links a, .linklike { color: var(--sr-cream); text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; font: inherit; cursor: pointer; padding: 0; }
.site-footer__legal { font-size: 13px; color: #A8A49B; margin: 0; }

/* ---------- Secciones ---------- */
.section { padding-block: 72px; }
@media (min-width: 768px) { .section { padding-block: 112px; } }
.bg-yellow { background: var(--sr-yellow); }
.bg-black { background: var(--sr-black); color: var(--sr-cream); }
.bg-white { background: var(--sr-white); }
.bg-offwhite { background: var(--sr-offwhite); }

/* Hero */
.hero { background: var(--sr-yellow); padding-block: 40px 72px; overflow: hidden; }
@media (min-width: 900px) { .hero { padding-block: 64px 112px; } }
.hero__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 7fr 5fr; gap: 48px; } }
.hero h1 { max-width: 13ch; margin-bottom: 24px; }
.hero .lead { margin-bottom: 32px; }
.hero__micro { margin-top: 14px; font-size: 14px; font-weight: 600; }
.hero__note {
  display: inline-block; margin-top: 18px;
  font-family: "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive; font-size: 19px; transform: rotate(-2deg);
}

.pager { width: min(100%, 420px); margin-inline: auto; filter: drop-shadow(0 22px 40px rgba(0,0,0,.18)); }
.pager__screen-text { font-family: "Courier New", ui-monospace, monospace; font-weight: 700; }
.pager .blink { animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pager .blink { animation: none; } }

/* Perfiles teaser */
.profiles { list-style: none; padding: 0; margin: 40px 0; display: grid; gap: 16px; }
@media (min-width: 700px) { .profiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .profiles { grid-template-columns: repeat(5, 1fr); } }
.profile-card {
  background: var(--sr-white); border: 1px solid rgba(10,10,10,.12); border-radius: var(--radius-lg);
  padding: 26px 24px; box-shadow: 0 8px 30px rgba(0,0,0,.04);
  display: flex; flex-direction: column; gap: 10px;
}
.profile-card__emoji { font-size: 34px; line-height: 1; }
.profile-card__name { font-family: var(--font-display); font-weight: 900; font-size: 20px; letter-spacing: -0.02em; line-height: 1.1; }
.profile-card__quote { color: var(--sr-grey); font-size: 15px; line-height: 1.45; margin: 0; }

/* Lista de beneficios */
.benefits { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 16px; counter-reset: b; }
@media (min-width: 900px) { .benefits { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.benefits li { counter-increment: b; background: var(--sr-cream); border-radius: var(--radius-lg); padding: 28px; }
.benefits li::before {
  content: counter(b); display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px;
  background: var(--sr-yellow); border-radius: 50%; font-family: var(--font-display); font-weight: 900;
}
.benefits strong { display: block; font-size: 19px; line-height: 1.25; margin-bottom: 8px; }

/* Sobre Ángel */
.about { display: grid; gap: 40px; }
@media (min-width: 900px) { .about { grid-template-columns: 6fr 5fr; gap: 64px; align-items: center; } }
.about__text p { max-width: 60ch; }

/* Retrato: el fondo del estudio se funde con la tarjeta amarilla, que sube por encima */
.about__media { position: relative; }
.portrait {
  margin: 0; border-radius: var(--radius-lg); overflow: hidden; position: relative;
  background: var(--sr-charcoal); box-shadow: 0 24px 48px rgba(10,10,10,.16);
}
.portrait img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 18%; }
.portrait::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 42%;
  background: linear-gradient(to bottom, rgba(10,10,10,0), rgba(10,10,10,.6));
  pointer-events: none;
}
.about__media .manifesto {
  position: relative; z-index: 1; margin: -72px 0 0 20px;
  box-shadow: 0 18px 36px rgba(10,10,10,.18);
}
@media (min-width: 900px) { .about__media .manifesto { margin: -104px 76px 0 -40px; } }

.manifesto {
  background: var(--sr-yellow); color: var(--sr-black); border-radius: var(--radius-lg); padding: 40px 32px;
  font-family: var(--font-display); font-weight: 900; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.04; letter-spacing: -0.03em;
}
.manifesto small { display: block; margin-top: 18px; font-family: var(--font-sans); font-weight: 600; font-size: 15px; letter-spacing: 0; }

/* Testimonios */
.section-lead { margin-top: 14px; max-width: 60ch; color: var(--sr-grey); font-size: 17px; }
.quotes { display: grid; gap: 20px; margin-top: 40px; }
@media (min-width: 800px) { .quotes { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
.quote { margin: 0; background: var(--sr-white); border: 1px solid rgba(10,10,10,.12); border-radius: var(--radius-lg); padding: 32px; }
.quote p { font-family: var(--font-display); font-weight: 900; font-size: clamp(21px, 2.2vw, 26px); line-height: 1.18; letter-spacing: -0.02em; margin-bottom: 16px; }
.quote cite { font-style: normal; font-size: 14px; color: var(--sr-grey); font-weight: 600; }

/* FAQ */
.faq { max-width: 820px; margin-top: 32px; }
.faq details { border-bottom: 1px solid var(--sr-border); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-weight: 800; font-size: 19px; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 30px; font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 22px; margin: 0; max-width: 65ch; }

/* Cierre */
.closing { text-align: center; }
.closing h2 { max-width: 18ch; margin: 0 auto 32px; }

/* ---------- Legal ---------- */
.legal { padding-block: 56px 96px; }
.legal__body { max-width: 760px; }
.legal h1 { font-size: clamp(34px, 5vw, 56px); margin-bottom: 12px; }
.legal h2 { font-size: clamp(22px, 2.6vw, 28px); margin: 44px 0 14px; letter-spacing: -0.02em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .4em; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--sr-border); vertical-align: top; }
.table-wrap { overflow-x: auto; }
.placeholder { background: var(--sr-yellow-soft); padding: 0 4px; border-radius: 4px; font-weight: 700; }

/* ---------- Banner de cookies ---------- */
.cookie-banner {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  max-width: 560px; margin-inline: auto;
  background: var(--sr-black); color: var(--sr-cream); border-radius: var(--radius-lg);
  padding: 20px; box-shadow: 0 16px 48px rgba(0,0,0,.25); font-size: 14px; line-height: 1.5;
}
.cookie-banner p { margin: 0 0 14px; }
.cookie-banner a { color: var(--sr-yellow); }
.cookie-banner__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-banner .btn { min-height: 44px; padding: 10px 18px; font-size: 15px; flex: 1 1 140px; }
.cookie-banner .btn--ghost { color: var(--sr-cream); border-color: var(--sr-cream); }
.cookie-banner .btn--ghost:hover { background: var(--sr-cream); color: var(--sr-black); }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding-block: 64px; }
.notfound h1 { margin-bottom: 18px; }
