/* ===== Notoria Think Tank · estilos ===== */
:root {
  --gold: #e9a830;
  --sun: #fdcc33;
  --crimson: #9e2630;
  --ink: #1b1613;
  --bg: #fbf7ef;
  --bg-alt: #f2ebdd;
  --surface: #ffffff;
  --text: #1f1a16;
  --muted: #6a5f55;
  --line: #e2d8c6;
  --accent: #9e2630;      /* texto/enlaces sobre fondo claro */
  --accent-ink: #ffffff;
  --btn-bg: #9e2630;
  --shadow: 0 10px 30px -12px rgba(60, 35, 10, .25);
  --radius: 18px;
  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-label: "Roboto Condensed", "Arial Narrow", sans-serif;
  --maxw: 1160px;
  --header-h: 72px;
  color-scheme: light;
}
/* Variables modo oscuro */
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --bg: #14110f; --bg-alt: #1b1714; --surface: #231e1a; --text: #f1e9dc; --muted: #b3a695;
    --line: #36302a; --accent: #f0b43f; --accent-ink: #1a1308; --btn-bg: #f0b43f;
    --shadow: 0 14px 34px -14px rgba(0,0,0,.7); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #14110f; --bg-alt: #1b1714; --surface: #231e1a; --text: #f1e9dc; --muted: #b3a695;
  --line: #36302a; --accent: #f0b43f; --accent-ink: #1a1308; --btn-bg: #f0b43f;
  --shadow: 0 14px 34px -14px rgba(0,0,0,.7); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1.0625rem/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background-color .3s, color .3s;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.4vw, 4.8rem); font-weight: 700; letter-spacing: -.025em; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
.muted { color: var(--muted); }
.center { text-align: center; margin-top: 2.5rem; }
.wrap { width: min(100% - 2rem, var(--maxw)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--btn-bg); color: var(--accent-ink); padding: .6rem 1rem; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.eyebrow { font: 700 .82rem/1 var(--f-label); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin: 0 0 1rem; display: flex; align-items: center; gap: .7rem; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }

/* ===== Botones ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  background: var(--btn-bg); color: var(--accent-ink); text-decoration: none; cursor: pointer;
  font: 600 .98rem/1 var(--f-body); padding: .95rem 1.5rem; border-radius: 999px; border: 2px solid var(--btn-bg);
  transition: transform .2s, box-shadow .2s, background-color .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -10px var(--btn-bg); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); box-shadow: none; }
.btn-sm { padding: .65rem 1.1rem; font-size: .9rem; }
.btn-wa { background: #1fa855; border-color: #1fa855; color: #fff; }
.btn-wa svg { width: 22px; height: 22px; }
.link { color: var(--accent); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ===== Header ===== */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); display: flex; align-items: center;
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand-mark { height: 44px; width: auto; }
.wm { height: 21px; width: auto; }
.site-footer .wm { height: 22px; }
.wm-dark { display: none; }
:root[data-theme="dark"] .wm-dark { display: block; } :root[data-theme="dark"] .wm-light { display: none; }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] .wm-dark { display: block; } :root[data-theme="auto"] .wm-light { display: none; } }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font: 700 1.45rem/1 var(--f-display); letter-spacing: -.02em; }
.brand-text small { font: 500 .72rem/1 var(--f-label); letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin-top: .3rem; }
.nav { display: flex; gap: .3rem; }
.nav a { text-decoration: none; padding: .55rem .9rem; border-radius: 999px; font-weight: 500; font-size: .95rem; transition: background-color .2s, color .2s; }
.nav a:hover, .nav a.active { background: var(--bg-alt); color: var(--accent); }
.actions { display: flex; align-items: center; gap: .6rem; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); display: grid; place-items: center; cursor: pointer; transition: border-color .2s; }
.icon-btn:hover { border-color: var(--accent); }
.icon-btn svg { width: 20px; height: 20px; }
.i-sun { display: none; }
:root[data-theme="dark"] .i-sun { display: block; } :root[data-theme="dark"] .i-moon { display: none; }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] .i-sun { display: block; } :root[data-theme="auto"] .i-moon { display: none; } }
.menu-btn { display: none; }

/* ===== Hero (portada con slider) ===== */
.hero { position: relative; isolation: isolate; min-height: min(86vh, 800px); display: flex; align-items: center; overflow: hidden; background: #14110f; color: #f6efe3; padding: 4rem 0 5.5rem; }
.slides, .slide-bg, .hero-shade { position: absolute; inset: 0; }
.slides { z-index: -2; }
.slide-bg { background-size: cover; background-position: 70% 20%; opacity: 0; transform: scale(1); transition: opacity 1s ease; }
.slide-bg.is-active { opacity: 1; animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.09); } }
.hero-shade { z-index: -1; background: linear-gradient(90deg, rgba(14,11,9,.94) 0%, rgba(14,11,9,.82) 38%, rgba(14,11,9,.25) 70%, rgba(14,11,9,.1) 100%), linear-gradient(0deg, rgba(14,11,9,.7), transparent 40%); }
.hero-inner { position: relative; }
.hero-copy { max-width: 640px; }
.hero .eyebrow { color: var(--sun); }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); margin-bottom: 1.6rem; }
.hero h1 em { font-style: italic; color: var(--sun); font-weight: 600; }
.quote-stage { display: grid; min-height: 11.5rem; }
.q { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .7s, transform .7s, visibility .7s; padding-left: 1.2rem; border-left: 3px solid var(--sun); }
.q.is-active { opacity: 1; visibility: visible; transform: none; }
.q p { font: 500 clamp(1.15rem, 2.1vw, 1.55rem)/1.4 var(--f-display); margin-bottom: 1rem; }
.q footer { font: 700 .85rem/1 var(--f-label); letter-spacing: .16em; text-transform: uppercase; color: var(--sun); }
.q footer::before { content: "— "; }
.hero .cta-row { margin: 1.6rem 0 0; }
.btn-sun { background: var(--sun); border-color: var(--sun); color: #1b1308; }
.btn-ghost-light { background: transparent; color: #f6efe3; border-color: rgba(246,239,227,.45); }
.btn-ghost-light:hover { border-color: var(--sun); }
.hero-ctrl { position: absolute; left: 0; bottom: -3.2rem; display: flex; align-items: center; gap: .9rem; }
.arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(246,239,227,.4); background: rgba(14,11,9,.4); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0 0 3px; transition: border-color .2s, background-color .2s; }
.arrow:hover { border-color: var(--sun); background: rgba(14,11,9,.7); }
.dots { display: flex; gap: .5rem; }
.dot { width: 28px; height: 5px; border-radius: 5px; border: 0; background: rgba(246,239,227,.35); cursor: pointer; padding: 0; transition: background-color .3s, width .3s; }
.dot.is-active { background: var(--sun); width: 46px; }
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 2rem; }

/* ===== Secciones ===== */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-alt { background: var(--bg-alt); }
.sec-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.sec-lead { font-size: 1.2rem; color: var(--muted); }

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; align-items: stretch; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .3s; }
.card:hover { transform: translateY(-4px); }
.card-ico { width: 56px; height: 56px; margin-bottom: 1.2rem; padding: 10px; border-radius: 14px; background: color-mix(in srgb, var(--gold) 20%, transparent); }
.card .link { margin-top: auto; padding-top: 1rem; }
.card-feature { padding: 0; overflow: hidden; align-self: start; }
.card-feature img { width: 100%; height: auto; cursor: zoom-in; }
.ticks li { position: relative; padding: .35rem 0 .35rem 1.6rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .95em; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.ticks.cols { columns: 2; column-gap: 2rem; margin-bottom: 1.6rem; }
.ticks.cols li { break-inside: avoid; }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.principle { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; }
.principle > img, .principle > svg { display: block; width: 48px; height: 48px; margin-bottom: 1rem; padding: 8px; color: var(--gold); border-radius: 12px; background: color-mix(in srgb, var(--gold) 20%, transparent); }
.principle h3 { font-size: 1.25rem; }
.principle p { color: var(--muted); font-size: .98rem; }
.principle cite { font: 700 .8rem/1 var(--f-label); letter-spacing: .14em; text-transform: uppercase; font-style: normal; color: var(--accent); }

/* Programas */
.program { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: start; padding: 2.5rem 0; border-top: 1px solid var(--line); }
.program:first-of-type { border-top: 0; padding-top: 0; }
.program-flip { grid-template-columns: 1.2fr .8fr; }
.program-flip .program-media { order: 2; }
.program-media { position: sticky; top: calc(var(--header-h) + 20px); }
.program-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.program .sub { font: 500 1.05rem/1.3 var(--f-display); font-style: italic; color: var(--accent); }
.program h4 { margin-top: 1.6rem; font: 700 .85rem/1 var(--f-label); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.inline-quote { margin: 1.4rem 0; padding: 1.1rem 1.4rem; border-left: 4px solid var(--gold); background: var(--bg-alt); border-radius: 0 var(--radius) var(--radius) 0; font-family: var(--f-display); font-style: italic; }
.inline-quote cite { display: block; margin-top: .6rem; font: 700 .8rem/1.3 var(--f-label); letter-spacing: .1em; text-transform: uppercase; font-style: normal; color: var(--accent); }
details { margin: 0 0 1.2rem; }
summary { cursor: pointer; font-weight: 600; color: var(--accent); padding: .3rem 0; }
details[open] summary { margin-bottom: .6rem; }

/* Eventos */
.flyers { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; margin-bottom: 4rem; }
.flyers li { display: flex; flex-direction: column; gap: .7rem; }
.flyers span { font: 600 .92rem/1.3 var(--f-body); }
.zoom-btn { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 14px; overflow: hidden; width: 100%; box-shadow: var(--shadow); }
.zoom-btn img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .5s; }
.zoom-btn:hover img { transform: scale(1.05); }
.sub-h { margin-bottom: 1.4rem; }
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; margin-bottom: 4rem; }
.value { display: grid; grid-template-columns: 140px 1fr; gap: 1.2rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.value img { width: 140px; height: 140px; object-fit: cover; border-radius: 12px; }
.value h4 { margin-bottom: .3rem; font-size: 1.2rem; }
.value p { margin: 0; font-size: .95rem; color: var(--muted); }
.value cite { font: 700 .78rem/1 var(--f-label); letter-spacing: .14em; text-transform: uppercase; font-style: normal; color: var(--accent); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; text-align: center; padding: 2.2rem 1rem; border-radius: 28px; background: var(--ink); color: #f6efe3; }
.stats b { display: block; font: 700 clamp(2.2rem, 5vw, 3.6rem)/1 var(--f-display); color: var(--sun); font-variant-numeric: tabular-nums; }
.stats span { font: 500 .85rem/1.3 var(--f-label); letter-spacing: .16em; text-transform: uppercase; opacity: .8; }

/* Miembros */
.join { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding: clamp(1.8rem, 5vw, 3.5rem); border-radius: 32px; color: #1b1308;
  background: linear-gradient(135deg, var(--sun), var(--gold)); position: relative; overflow: hidden; }
.join .eyebrow { color: #5b1118; }
.join h2 { color: #1b1308; }
.join p { max-width: 38em; }
.join .btn { background: #1b1308; border-color: #1b1308; color: #fbe9b5; }
.join .btn-ghost { background: transparent; color: #1b1308; border-color: rgba(27,19,8,.4); }
.cert { background: rgba(255,255,255,.6); backdrop-filter: blur(6px); border-radius: var(--radius); padding: 1.8rem; }
.cert .link { color: #5b1118; }

/* Galería */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.big-quote { margin: clamp(3rem, 6vw, 5rem) auto 0; max-width: 820px; text-align: center; }
.big-quote blockquote { margin: 0; }
.big-quote p { font: 500 clamp(1.4rem, 3vw, 2.1rem)/1.35 var(--f-display); font-style: italic; }
.big-quote p::before { content: "“"; display: block; font-size: 4rem; line-height: .6; color: var(--gold); }
.big-quote figcaption { font: 700 .85rem/1 var(--f-label); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact-list { margin: 1.8rem 0; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; gap: 1rem; align-items: center; }
.contact-list svg { width: 46px; height: 46px; padding: 12px; border-radius: 14px; background: color-mix(in srgb, var(--gold) 22%, transparent); color: var(--accent); flex: none; }
.contact-list small { display: block; font: 700 .75rem/1 var(--f-label); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: .25rem; }
.contact-list a { text-decoration: none; font-weight: 600; word-break: break-word; }
.contact-list a:hover { color: var(--accent); }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: clamp(1.5rem, 4vw, 2.4rem); box-shadow: var(--shadow); }
.field { margin-bottom: 1.1rem; }
label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .4rem; }
input, select, textarea { width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; padding: .8rem 1rem; transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 28%, transparent); }
.field.invalid input, .field.invalid textarea { border-color: #d6453d; }
.err { display: block; color: #d6453d; font-size: .85rem; min-height: 0; margin-top: .3rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { margin: 1rem 0 0; font-weight: 500; min-height: 1.5em; }
.form-status.ok { color: #1f8f4a; } .form-status.bad { color: #d6453d; }
.form .btn[disabled] { opacity: .6; cursor: wait; }

/* Footer */
.site-footer { background: var(--ink); color: #e9dfcf; padding-top: 3.5rem; }
.site-footer .brand-text small { color: #b3a695; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.foot-grid h4 { font: 700 .8rem/1 var(--f-label); letter-spacing: .2em; text-transform: uppercase; color: var(--sun); margin-bottom: 1rem; }
.foot-grid a, .foot-grid span { display: block; text-decoration: none; padding: .2rem 0; }
.foot-grid a:hover { color: var(--sun); }
.foot-brand .brand { margin-bottom: 1rem; }
.foot-brand p { margin: .3rem 0; }
.foot-brand .muted { color: #a39682; font-size: .95rem; margin-top: 1rem; }
.legal { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.3rem 0 1.6rem; border-top: 1px solid #3a322a; font-size: .9rem; color: #a39682; }
.legal a { text-decoration: none; }

.wa-float { position: fixed; right: 18px; bottom: 18px; width: 58px; height: 58px; border-radius: 50%; background: #1fa855; color: #fff; display: grid; place-items: center; z-index: 60; box-shadow: 0 12px 26px -8px rgba(0,0,0,.45); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* Lightbox */
dialog#lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 94vh; overflow: visible; }
dialog#lightbox::backdrop { background: rgba(10,8,6,.85); backdrop-filter: blur(4px); }
dialog#lightbox img { max-width: 94vw; max-height: 90vh; border-radius: 12px; }
.lb-close { position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: #000; font-size: 1.6rem; line-height: 1; cursor: pointer; }

/* ===== Animaciones al hacer scroll ===== */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .contact-grid, .join { grid-template-columns: 1fr; }
  .trio, .principles { grid-template-columns: 1fr 1fr; }
  .card-feature { grid-column: 1 / -1; max-width: 520px; justify-self: center; }
  .program, .program-flip { grid-template-columns: 1fr; }
  .program-flip .program-media { order: 0; }
  .program-media { position: static; max-width: 420px; }
  .flyers { grid-template-columns: repeat(3, 1fr); }
  .stats { row-gap: 1.8rem; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .menu-btn { display: grid; }
  .hide-sm { display: none; }
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; gap: .2rem; padding: 1rem; background: var(--bg); border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform .35s; z-index: 40; visibility: hidden; }
  .nav.open { transform: none; visibility: visible; }
  .nav a { padding: .9rem 1rem; font-size: 1.05rem; }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  body { font-size: 1rem; }
  .trio, .principles, .values, .gallery { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .flyers { grid-template-columns: 1fr 1fr; }
  .ticks.cols { columns: 1; }
  .value { grid-template-columns: 96px 1fr; }
  .value img { width: 96px; height: 96px; }
  .hero { min-height: 640px; align-items: flex-end; padding: 3rem 0 5.5rem; }
  .slide-bg { background-position: 78% 0; }
  .hero-shade { background: linear-gradient(0deg, rgba(14,11,9,.96) 0%, rgba(14,11,9,.82) 55%, rgba(14,11,9,.3) 100%); }
  .hero .eyebrow { margin-bottom: .7rem; }
  .quote-stage { min-height: 13rem; }
  .brand-mark { height: 38px; }
  .wm { height: 17px; }
  .foot-grid { grid-template-columns: 1fr; }
  .cta-row .btn { flex: 1 1 100%; }
}
