/* ============================================================
   TEDxParque Rodó — sistema de diseño
   Rojo TED (#EB0028) como acento — nunca como fondo masivo.
   Un motivo propio: líneas finas evocando el lago de Parque Rodó,
   presente en el hero y como divisor discreto entre secciones.
   ============================================================ */

:root{
  --red: #EB0028;
  --red-dark: #C40021;
  --ink: #16171A;
  --paper: #FFFFFF;
  --mist: #F3F2EF;
  --mist-dark: #EAE8E3;
  --slate: #63666B;
  --line: #E1DFDA;
  --moss: #2F4B3C;

  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --wordmark: "Helvetica Neue", Arial, sans-serif;

  --container: 1180px;
  --radius: 8px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; }
h1, h2, h3, h4{
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.02;
  margin: 0 0 .4em 0;
  letter-spacing: .002em;
}
p{ margin: 0 0 1em 0; }
.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
.eyebrow{
  font-family: var(--body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 14px 0;
  display: block;
}
.lead{
  font-size: 19px;
  color: var(--slate);
  max-width: 640px;
}
.muted{ color: var(--slate); }

/* ---------- focus & motion ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline: 2px solid var(--red);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- wordmark ---------- */
.wordmark{
  font-family: var(--wordmark);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark .x{ color: var(--red); }
.wordmark .place{ color: var(--ink); }
.wordmark.on-dark .place{ color: var(--paper); }
.wordmark.big{ font-size: clamp(40px, 7vw, 84px); }

/* ---------- header ---------- */
.site-header{
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar{
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.nav-links{
  display: flex; align-items: center; gap: 30px;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a{
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a[aria-current="page"]{
  border-bottom-color: var(--red);
}
.nav-cta{
  background: var(--ink); color: var(--paper) !important;
  padding: 10px 18px !important; border-radius: var(--radius);
  border-bottom: none !important;
}
.nav-cta:hover{ background: var(--red); }
.nav-toggle{
  display: none;
  background: none; border: none; cursor: pointer;
  width: 40px; height: 40px; padding: 0;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content: ""; display: block; width: 22px; height: 2px; background: var(--ink);
  position: relative; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before{ position: absolute; top: -7px; }
.nav-toggle span::after{ position: absolute; top: 7px; }

@media (max-width: 860px){
  .nav-toggle{ display: flex; }
  .nav-links{
    position: absolute; top: 76px; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; gap: 4px;
    padding: 10px 28px 20px; max-height: 0; overflow: hidden;
  }
  .nav-links.open{ max-height: 400px; padding-top: 16px; }
  .nav-links li{ width: 100%; }
  .nav-links a{ display: block; padding: 10px 0; width: 100%; }
  .nav-cta{ display: inline-block; margin-top: 6px; }
}

/* ---------- buttons ---------- */
.btn{
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  font-family: var(--body); font-weight: 700; font-size: 15px;
  padding: 14px 26px;
  border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
}
.btn:active{ transform: translateY(1px); }
.btn-primary{ background: var(--red); color: #fff; }
.btn-primary:hover{ background: var(--red-dark); }
.btn-ghost-dark{ border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost-dark:hover{ background: var(--ink); color: #fff; }
.btn-ghost-light{ border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.btn-ghost-light:hover{ background: #fff; color: var(--ink); }
.btn-row{ display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- section rhythm ---------- */
.section{ padding: 96px 0; }
.section-tight{ padding: 64px 0; }
.on-mist{ background: var(--mist); }
.on-ink{ background: var(--ink); color: var(--paper); }
.on-ink .muted{ color: #B7B6B3; }
.on-ink h2, .on-ink h3{ color: var(--paper); }
@media (max-width: 720px){
  .section{ padding: 64px 0; }
  .section-tight{ padding: 44px 0; }
}

.section-head{ max-width: 700px; margin: 0 0 48px 0; }
.section-head.center{ margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- ripple divider (signature motif, reduced) ---------- */
.ripple-divider{
  width: 100%; height: 34px;
  display: block;
}

/* ---------- hero ---------- */
.hero{
  position: relative;
  padding: 76px 0 60px;
  overflow: hidden;
}
.hero .container{
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 40px;
  align-items: center;
}
.hero-art{ position: relative; }
.hero-art svg{ width: 100%; height: auto; }
.hero-meta{
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  margin: 30px 0 6px;
  font-size: 14px; font-weight: 700;
  color: var(--ink);
}
.hero-meta span{ display: inline-flex; align-items: center; gap: 8px; }
.hero-meta .dot{ width: 6px; height: 6px; border-radius: 50%; background: var(--red); display: inline-block; }

@media (max-width: 900px){
  .hero .container{ grid-template-columns: 1fr; }
  .hero-art{ order: -1; max-width: 420px; margin: 0 auto; }
}

/* ---------- countdown ---------- */
.countdown{
  display: flex; gap: 14px; margin: 30px 0 8px; flex-wrap: wrap;
}
.countdown .cell{
  background: var(--ink); color: var(--paper);
  border-radius: var(--radius);
  padding: 12px 16px;
  min-width: 78px; text-align: center;
}
.countdown .num{
  font-family: var(--display); font-size: 30px; font-weight: 700; line-height: 1;
}
.countdown .unit{
  font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: #B7B6B3;
  display: block; margin-top: 4px;
}

/* ---------- badge / numbered circle (carries over from event deck) ---------- */
.badge{
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700; font-size: 18px;
  flex: none;
}

/* ---------- card grid ---------- */
.grid{ display: grid; gap: 22px; }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-4{ grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px){
  .grid-3, .grid-4{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px){
  .grid-2, .grid-3, .grid-4{ grid-template-columns: 1fr; }
}

.card{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px;
}
.on-mist .card{ background: var(--paper); }
.on-ink .card{ background: #202126; border-color: #303136; }
.card h3{ font-size: 20px; margin: 14px 0 8px; }
.card p{ color: var(--slate); font-size: 14.5px; margin: 0; }
.on-ink .card p{ color: #B7B6B3; }

/* ---------- stat pair ---------- */
.stat-block{
  background: var(--ink); color: var(--paper);
  border-radius: 14px; padding: 34px;
}
.stat-block .stat{ margin-bottom: 26px; }
.stat-block .stat:last-of-type{ margin-bottom: 0; }
.stat-num{ font-family: var(--display); font-size: 46px; color: var(--red); line-height: 1; }
.stat-label{ font-size: 13.5px; color: #C7C6C3; margin-top: 6px; }
.stat-source{ font-size: 11px; color: #8B8A87; margin-top: 18px; }

/* ---------- placeholder state (para oradores / programa) ---------- */
.placeholder-card{
  border: 1.5px dashed var(--line);
  border-radius: 12px;
  padding: 30px 26px;
  background: var(--paper);
  text-align: left;
}
.placeholder-card .ph-avatar{
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--mist-dark);
  margin-bottom: 16px;
}
.placeholder-card h4{
  font-family: var(--body); font-weight: 700; font-size: 15px; margin: 0 0 4px;
  color: var(--slate);
}
.placeholder-card p{ font-size: 13px; color: #9A9995; margin: 0; }

.status-pill{
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .03em;
  padding: 7px 14px; border-radius: 999px;
  background: var(--mist-dark); color: var(--ink);
}
.status-pill .dot{ width: 7px; height: 7px; border-radius: 50%; background: var(--red); }

/* ---------- timeline (programa) ---------- */
.timeline{ display: flex; flex-direction: column; }
.timeline-row{
  display: grid; grid-template-columns: 120px 1fr; gap: 22px;
  padding: 22px 0; border-top: 1px solid var(--line);
}
.timeline-row:last-child{ border-bottom: 1px solid var(--line); }
.timeline-time{ font-family: var(--display); font-weight: 700; font-size: 18px; }
.timeline-title{ font-weight: 700; margin-bottom: 4px; }
.timeline-desc{ color: var(--slate); font-size: 14.5px; }
@media (max-width: 620px){
  .timeline-row{ grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- forms ---------- */
.form-panel{
  background: var(--mist);
  border-radius: 16px;
  padding: 42px;
}
@media (max-width: 620px){ .form-panel{ padding: 26px; } }
.field{ margin-bottom: 20px; }
.field label{
  display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 7px;
}
.field .hint{ font-size: 12.5px; color: var(--slate); margin-top: 6px; }
.field input, .field textarea, .field select{
  width: 100%;
  font-family: var(--body); font-size: 15px;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus{
  border-color: var(--red);
}
.field textarea{ resize: vertical; min-height: 100px; }
.form-note{ font-size: 13px; color: var(--slate); margin-top: 18px; }
.form-status{
  margin-top: 18px; padding: 14px 16px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; display: none;
}
.form-status.show{ display: block; }
.form-status.ok{ background: #EAF6EF; color: #1E5A38; }
.form-status.err{ background: #FCEBEC; color: #8A1520; }

/* ---------- newsletter band (footer) ---------- */
.newsletter{
  border-top: 1px solid #303136;
  padding-top: 40px; margin-top: 40px;
}
.newsletter form{
  display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px;
}
.newsletter input[type="email"]{
  flex: 1 1 260px;
  padding: 13px 16px; border-radius: var(--radius);
  border: 1.5px solid #3B3C41; background: #202126; color: #fff; font-size: 15px;
}
.newsletter input[type="email"]::placeholder{ color: #8B8A87; }

/* ---------- footer ---------- */
.site-footer{ background: var(--ink); color: #C7C6C3; padding: 64px 0 34px; }
.footer-grid{
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px;
}
@media (max-width: 760px){ .footer-grid{ grid-template-columns: 1fr; } }
.footer-grid h4{
  font-family: var(--body); font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  color: #8B8A87; margin: 0 0 14px;
}
.footer-links{ list-style: none; margin: 0; padding: 0; }
.footer-links li{ margin-bottom: 10px; }
.footer-links a{ text-decoration: none; color: #C7C6C3; font-size: 14.5px; }
.footer-links a:hover{ color: #fff; }
.footer-bottom{
  margin-top: 50px; padding-top: 26px; border-top: 1px solid #303136;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 12.5px; color: #8B8A87;
}
.footer-license{ max-width: 560px; }

/* ---------- utility ---------- */
.mt-0{ margin-top: 0; }
.center{ text-align: center; }
.visually-hidden{
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
