/* ============================================================
   TEDxPeninsulaHiroki 2026 — Redesign Editorial
   Sistema: DM Serif Display + DM Sans
   Paleta: #0A0A0A / #EB0028 / #FFFFFF / #B8A99A
   ============================================================ */

/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

/* ── Tokens ── */
:root {
  --red:         #EB0028;
  --red-dark:    #B8001E;
  --black:       #0A0A0A;
  --surface:     #101010;
  --surface-2:   #141414;
  --border:      #1C1C1C;
  --border-mid:  #282828;
  --white:       #FFFFFF;
  --muted:       #5A5A5A;
  --subtle:      #2A2A2A;
  --warm:        #B8A99A;
  --max-w:       1200px;
  --pad:         48px;
  --sec-v:       140px;
}

/* ── Body ── */
body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--black);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1;
}

::selection {
  background: var(--red);
  color: white;
}

::-webkit-scrollbar { width: 2px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--border-mid); }

/* ── Typography ── */
h1, .h1 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(52px, 9vw, 120px);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.02em;
  color: var(--white);
}

h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--white);
}

h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 600;
  letter-spacing: -0.01em;
}

p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--warm);
  font-weight: 300;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── Layout ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ── Section label ── */
.sec-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sec-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--red);
  flex-shrink: 0;
}

/* ── Animations ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes revealClip {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0% 0 0); }
}

@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes heroFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scrollPulse {
  0%, 100% { height: 32px; }
  50%       { height: 20px; }
}

.reveal-fade {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ============================================================
   NAV
   ============================================================ */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}

#nav.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 1;
}

.nav-logo-svg {
  display: block;
  width: auto;
  overflow: visible;
}

/* Legacy — kept for contact.html compatibility */
.nav-ted {
  font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: -0.02em;
}

.nav-name {
  font-size: 12px;
  font-weight: 300;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.01em;
  margin-left: 1px;
  font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0 auto;
}

.nav-links a {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--white); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.nav-cta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 9px 20px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.nav-cta:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--white);
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.98);
  border-bottom: 1px solid var(--border);
  padding: 20px var(--pad) 28px;
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu a {
  display: block;
  padding: 15px 0;
  font-size: 15px;
  font-weight: 400;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}

.mobile-menu a:hover { color: var(--white); }

.mobile-menu .mobile-cta {
  color: var(--red);
  font-weight: 600;
  border-bottom: none;
  padding-top: 20px;
}

/* ============================================================
   HERO — scroll-driven canvas
   El layout principal vive en el <style> del head de index.html
   (carga crítica, evita FOUC). Aquí solo estilos de tipografía
   del hero que son compartidos con contact.html.
   ============================================================ */

/* Legacy — contact.html usa #hero con .hero-bg-image */
#hero {
  height: 100svh;
  min-height: 700px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--black);
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  opacity: 0.38;
  z-index: 0;
}

@media (max-width: 768px) {
  .hero-bg-image { background-position: 60% top; }
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(10,10,10,0.7) 0%, rgba(10,10,10,0.2) 40%, rgba(10,10,10,0.8) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--pad) 80px;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding-top: 72px;
}

/* Meta line */
.hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 48px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 0.8s 0.2s cubic-bezier(0.16,1,0.3,1) forwards;
}

.hero-ted-badge {
  display: flex;
  align-items: center;
  line-height: 1;
}

/* Legacy spans — kept for fallback */
.badge-ted {
  font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: -0.01em;
}

.badge-name {
  font-size: 11px;
  font-weight: 300;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.02em;
  font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.hero-meta-sep {
  width: 1px;
  height: 12px;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}

/* Poster typography */
.hero-poster {
  margin-bottom: 52px;
}

.hero-line {
  overflow: hidden;
  line-height: 0.95;
}

.hl-word {
  display: block;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(64px, 13vw, 170px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 0.92;
  color: var(--white);
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1), transform 0.9s cubic-bezier(0.16,1,0.3,1);
}

.hero-line-1 .hl-word {
  transition-delay: 0.4s;
}

.hero-line-2 .hl-word {
  transition-delay: 0.56s;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.85);
}

.hero-poster.revealed .hl-word {
  opacity: 1;
  transform: translateY(0);
}

/* Hero claim */
.hero-claim {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeInUp 0.8s 1s cubic-bezier(0.16,1,0.3,1) forwards;
}

.hc-num {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(20px, 2.5vw, 28px);
  color: var(--red);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
}

.hc-sep {
  font-size: clamp(15px, 1.8vw, 20px);
  color: rgba(255,255,255,0.5);
  font-weight: 300;
  letter-spacing: 0.02em;
}

.hc-tagline {
  font-size: clamp(13px, 1.5vw, 16px);
  color: var(--muted);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.01em;
  margin-left: 8px;
}

/* Hero actions */
.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 0.8s 1.2s cubic-bezier(0.16,1,0.3,1) forwards;
}

.ha-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--red);
  color: var(--white);
  padding: 16px 32px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.2s;
}

.ha-primary:hover { background: var(--red-dark); }

.ha-ghost {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  border-bottom: 1px solid var(--border-mid);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.ha-ghost:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  right: var(--pad);
  bottom: 80px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: fadeInUp 0.8s 1.6s ease forwards;
}

.hsh-line {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.2);
  animation: scrollPulse 2s ease-in-out infinite;
}

.hero-scroll-hint span {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  writing-mode: vertical-lr;
}

/* Ticker */
.hero-ticker {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  height: 36px;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(10,10,10,0.7);
  display: flex;
  align-items: center;
  opacity: 0;
  animation: fadeInUp 0.6s 1.8s ease forwards;
}

.ticker-inner {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  animation: ticker 28s linear infinite;
  will-change: transform;
}

.ticker-inner span {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.18);
  padding: 0 28px;
}

.ticker-dot {
  color: var(--red) !important;
  padding: 0 !important;
  opacity: 0.5;
}

/* ============================================================
   HERO CINEMATIC SEQUENCE — overrides mobile
   ============================================================ */

@media (max-width: 768px) {
  #hero-logo-intro .ted {
    font-size: clamp(40px, 16vw, 72px);
  }

  #hero-logo-intro .name-intro {
    font-size: clamp(16px, 6vw, 28px);
  }

  #phase-text-2 h1 {
    font-size: clamp(52px, 14vw, 100px);
  }

  .stat-line {
    font-size: clamp(20px, 5vw, 36px);
    padding: 0 24px;
    text-align: center;
  }

  .hc-headline {
    font-size: clamp(40px, 12vw, 80px);
  }

  .hc-actions {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
  }

  .ha-primary {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
   ROLES CONNECTOR — PUENTE EMOCIONAL ENTRE HERO Y ROLES
   ============================================================ */
#roles-connector {
  background: #000;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 80px;
  padding-bottom: 64px;
  padding-left: clamp(32px, 6vw, 96px);
  padding-right: clamp(32px, 6vw, 96px);
}

.rcon-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
}

.rcon-headline {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--white);
}

/* ============================================================
   ROLES GRID — SECCIÓN DE IDENTIFICACIÓN (Dark Grid pattern)
   ============================================================ */
#roles-grid {
  background: var(--black);
  padding: 0;
}

.roles-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
}

.role-card {
  background: linear-gradient(160deg, #111111 0%, #0A0A0A 100%);
  padding: clamp(40px, 6vh, 64px) clamp(28px, 3vw, 48px) clamp(40px, 6vh, 56px);
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  overflow: hidden;
  transition: background 0.35s ease;
}

.role-card:hover {
  background: linear-gradient(160deg, #1a1a1a 0%, #111111 100%);
}

/* Gradient inner glow — activates on hover */
.rc-glow {
  position: absolute;
  inset: 0;
  background: transparent;
  transition: background 0.35s ease;
  pointer-events: none;
  z-index: 0;
}

.role-card:hover .rc-glow {
  background: linear-gradient(135deg, rgba(255,255,255,0.045) 0%, rgba(255,255,255,0) 65%);
}

/* Corner bracket squares — appear on hover (Dark Grid pattern) */
.rc-corners {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

.rc-corner {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #fff;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.rc-corner-tl { top: 0; left: 0; }
.rc-corner-tr { top: 0; right: 0; }
.rc-corner-bl { bottom: 0; left: 0; }
.rc-corner-br { bottom: 0; right: 0; }

.role-card:hover .rc-corner { opacity: 1; }

/* Content stack above glow */
.rc-num-sm {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.25);
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.rc-label {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 400;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.rc-headline {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(16px, 1.5vw, 21px);
  font-weight: 400;
  line-height: 1.28;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  flex: 1;
  position: relative;
  z-index: 1;
}

.rc-sub {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255,255,255,0.38);
  font-weight: 300;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.rc-cta-form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  background: var(--red);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 20px;
  align-self: flex-start;
  transition: background 0.2s, transform 0.15s;
  position: relative;
  z-index: 2;
}

.rc-cta-form:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

/* Form panel inline dentro de cada role-card */
.rc-form-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              margin-top 0.3s ease,
              padding-top 0.3s ease;
  margin-top: 0;
  position: relative;
  z-index: 2;
}

.role-card.form-open .rc-form-panel {
  max-height: 900px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.rc-bg-icon {
  position: absolute;
  bottom: -16px;
  right: -16px;
  width: 240px;
  height: 240px;
  opacity: 0.055;
  pointer-events: none;
  z-index: 0;
}

@media (max-width: 1024px) {
  .roles-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .roles-cards {
    grid-template-columns: 1fr;
  }

  .rc-label {
    font-size: clamp(40px, 12vw, 56px);
  }
}

/* ============================================================
   SECCIONES GENERALES
   ============================================================ */
.section-dark {
  padding: var(--sec-v) 0;
  background: var(--black);
  border-top: 1px solid var(--border);
}

.section-surface {
  padding: var(--sec-v) 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

/* ── FOMO / MOMENTO ── */
.momento-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 100px;
  align-items: start;
}

.momento-headline {
  font-size: clamp(40px, 5.5vw, 72px);
  margin-top: 12px;
}

.momento-right p {
  font-size: 18px;
  line-height: 1.75;
}

.momento-right p + p {
  margin-top: 20px;
}

.momento-stats {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 60px;
  border: 1px solid var(--border);
}

.ms-item {
  flex: 1;
  padding: 32px 28px;
}

.ms-div {
  width: 1px;
  background: var(--border);
  flex-shrink: 0;
}

.ms-num {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(44px, 6vw, 76px);
  color: var(--red);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 10px;
}

.ms-label {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── ESCASEZ (roja) ── */
.section-red {
  background: var(--red);
  padding: 120px 0;
  border-top: none;
}

.escasez-inner {
  max-width: 720px;
}

.escasez-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 24px;
}

.escasez-headline {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 28px;
}

.escasez-body {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
  margin-bottom: 44px;
  max-width: 560px;
  font-weight: 300;
}

/* ── QUÉ ES TEDX ── */
.quees-layout {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 100px;
  align-items: start;
}

.quees-left p {
  font-size: 17px;
  line-height: 1.75;
  margin-top: 20px;
}

.quees-left p + p { margin-top: 16px; }

.quees-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.qs-item {
  background: var(--black);
  padding: 40px 32px;
  transition: background 0.25s;
}

.qs-item:hover { background: var(--surface); }

.qs-num {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(36px, 4.5vw, 56px);
  color: var(--red);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 12px;
}

.qs-static {
  font-size: clamp(30px, 3.5vw, 48px);
}

.qs-label {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  font-weight: 400;
}

/* ============================================================
   PARTICIPACIÓN — SECCIONES
   ============================================================ */
.section-part {
  padding: var(--sec-v) 0;
  border-top: 1px solid var(--border);
  background: var(--black);
  position: relative;
}

.section-part-alt {
  background: var(--surface);
}

.part-num-label {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(100px, 16vw, 200px);
  font-weight: 400;
  line-height: 1;
  color: rgba(255,255,255,0.025);
  position: absolute;
  top: 0;
  right: var(--pad);
  letter-spacing: -0.06em;
  pointer-events: none;
  user-select: none;
  line-height: 0.85;
}

.part-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.part-layout-rev {
  direction: rtl;
}

.part-layout-rev > * {
  direction: ltr;
}

.part-info h2 {
  margin-bottom: 20px;
}

.part-info > p {
  font-size: 17px;
  line-height: 1.75;
  margin-bottom: 32px;
}

/* Part list */
.part-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 1px solid var(--border);
  padding-left: 24px;
  margin-bottom: 32px;
}

.part-list li {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255,255,255,0.45);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.part-list li:last-child { border-bottom: none; }

/* Badge gratuito */
.part-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 10px 16px;
}

.pb-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ADE80;
  flex-shrink: 0;
}

/* ── FORM CARD ── */
.form-card {
  border: 1px solid var(--border-mid);
  position: relative;
  transition: border-color 0.3s;
}

.form-card.open {
  border-color: rgba(230, 43, 30, 0.3);
}

.fc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 32px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
  border-bottom: 1px solid transparent;
}

.fc-header:hover { background: rgba(255,255,255,0.02); }

.form-card.open .fc-header {
  border-bottom-color: var(--border);
}

.fc-role {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}

.fc-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
}

.fc-toggle {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}

.fc-header:hover .fc-toggle { border-color: var(--muted); }

.fc-arrow {
  color: var(--muted);
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), color 0.2s;
}

.form-card.open .fc-arrow {
  transform: rotate(180deg);
  color: var(--red);
}

/* Slide body */
.fc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.55s cubic-bezier(0.16,1,0.3,1);
}

.form-card.open .fc-body {
  max-height: 1000px;
}

.fc-form {
  padding: 28px 32px 40px;
}

/* ── Form elements ── */
.fg { margin-bottom: 18px; }

.fl {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 8px;
}

.fi, .fta, .fse {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-mid);
  color: var(--white);
  padding: 12px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 300;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s, background 0.2s;
  border-radius: 0;
}

.fi:focus, .fta:focus, .fse:focus {
  border-color: rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.05);
}

.fi::placeholder, .fta::placeholder {
  color: var(--subtle);
}

.fse option {
  background: #111;
  color: var(--white);
}

.fta {
  min-height: 90px;
  resize: vertical;
  line-height: 1.6;
}

.fsub {
  width: 100%;
  background: var(--red);
  color: var(--white);
  padding: 15px;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: background 0.2s;
  margin-top: 4px;
}

.fsub:hover { background: var(--red-dark); }

.fnote {
  font-size: 11.5px;
  color: var(--subtle);
  text-align: center;
  margin-top: 12px;
  font-style: italic;
  line-height: 1.5;
}

/* Form success */
.fc-success {
  display: none;
  text-align: center;
  padding: 40px 32px;
}

.fc-success.visible { display: block; }

.fc-success h4 {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--white);
  margin: 16px 0 10px;
}

.fc-success p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* ── REACH BLOCK (speaker) ── */
.reach-block {
  border: 1px solid rgba(230,43,30,0.2);
  background: rgba(230,43,30,0.04);
  padding: 28px;
  margin-bottom: 32px;
}

.rb-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

.rb-text {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  margin-bottom: 24px;
  font-weight: 300;
}

.rb-stats {
  display: flex;
  gap: 0;
  border-top: 1px solid rgba(230,43,30,0.15);
  padding-top: 20px;
}

.rb-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 16px;
}

.rb-stat + .rb-stat {
  padding-left: 16px;
  border-left: 1px solid rgba(255,255,255,0.06);
}

.rb-num {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(18px, 2.5vw, 26px);
  color: var(--red);
  letter-spacing: -0.03em;
  line-height: 1;
}

.rb-lab {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}

/* Speaker tags */
.speaker-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 20px;
}

.speaker-tags span {
  padding: 5px 12px;
  border: 1px solid var(--border-mid);
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── ÁREAS voluntario ── */
.areas-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  margin-top: 32px;
}

.area-item {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.area-item:last-child { border-bottom: none; }
.area-item:hover { background: rgba(255,255,255,0.02); }

.area-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
  letter-spacing: -0.005em;
}

.area-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  font-weight: 300;
}

/* ── PARTNER TYPES ── */
.partner-types {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 28px;
}

.pt-item {
  background: var(--black);
  padding: 16px 20px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}

.section-part-alt .pt-item { background: var(--surface); }

.pt-item:hover {
  color: rgba(255,255,255,0.7);
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
}

.faq-heading {
  position: sticky;
  top: 100px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child { border-bottom: none; }

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  background: none;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  text-align: left;
  transition: color 0.2s, background 0.2s;
  letter-spacing: -0.005em;
}

.faq-q:hover {
  color: var(--white);
  background: rgba(255,255,255,0.02);
}

.faq-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  position: relative;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--red);
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), opacity 0.35s;
}

.faq-icon::before {
  width: 12px;
  height: 1px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-icon::after {
  width: 1px;
  height: 12px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-item.open .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq-item.open .faq-q { color: var(--white); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.16,1,0.3,1);
}

.faq-a p {
  padding: 4px 24px 24px;
  font-size: 15px;
  line-height: 1.75;
  font-weight: 300;
}

/* ============================================================
   BOTONES GLOBALES
   ============================================================ */
.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  color: var(--black);
  padding: 16px 36px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}

.btn-white:hover { background: #e8e8e8; }

.btn-red-lg {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--red);
  color: var(--white);
  padding: 18px 40px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.2s;
  text-decoration: none;
}

.btn-red-lg:hover { background: var(--red-dark); }

.btn-red-sm {
  display: inline-flex;
  align-items: center;
  background: var(--red);
  color: var(--white);
  padding: 11px 24px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.2s;
  text-decoration: none;
}

.btn-red-sm:hover { background: var(--red-dark); }

.btn-outline-lg {
  display: inline-flex;
  align-items: center;
  color: rgba(255,255,255,0.5);
  padding: 18px 40px;
  font-size: 15px;
  font-weight: 400;
  border: 1px solid var(--border-mid);
  transition: color 0.2s, border-color 0.2s;
  text-decoration: none;
}

.btn-outline-lg:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}

/* ============================================================
   CTA FINAL
   ============================================================ */
.section-cta-final {
  background: #080808;
  border-top: 1px solid var(--border);
  padding: 0;
}

.ctaf-header {
  padding: 100px 0 80px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.ctaf-inner {
  max-width: 640px;
  margin: 0 auto;
}

.ctaf-sub {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 24px;
}

.ctaf-headline {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(52px, 8vw, 100px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--white);
  margin-bottom: 28px;
}

.ctaf-body {
  font-size: 17px;
  line-height: 1.7;
  color: var(--warm);
  font-weight: 300;
}

.ctaf-roles-grid {
  border-top: none;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--black);
  border-top: 1px solid var(--border);
  padding: 40px 0 32px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

/* Texto oficial requerido por TED */
.footer-license {
  font-size: 11px;
  color: rgba(255,255,255,0.22);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.01em;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 11px;
  color: var(--subtle);
  font-weight: 300;
}

/* Legacy — kept for contact.html */
.fb-ted { font-family: 'Inter', sans-serif; font-size: 22px; font-weight: 700; color: var(--red); }
.fb-name { font-size: 13px; font-weight: 300; color: rgba(255,255,255,0.3); }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { font-size: 13px; color: var(--muted); transition: color 0.2s; }
.footer-nav a:hover { color: var(--white); }

/* ============================================================
   FORM SUCCESS INLINE
   ============================================================ */
.form-error-msg {
  font-size: 13px;
  color: #FCA5A5;
  margin-top: 10px;
  text-align: center;
}

/* ============================================================
   SITE LOADER
   ============================================================ */
#site-loader {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 52px;
  transition: transform 0.9s cubic-bezier(0.76, 0, 0.24, 1);
}

#site-loader.sl-exit {
  transform: translateY(-100%);
  pointer-events: none;
}

.sl-logo {
  width: min(1100px, 82vw);
  display: block;
  clip-path: inset(0 100% 0 0);
  animation: slReveal 1.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
}

@keyframes slReveal {
  to { clip-path: inset(0 0% 0 0); }
}

.sl-scroll-hint {
  opacity: 0;
  transform: translateY(-6px);
  animation: slHintIn 0.5s ease 2.6s forwards;
}

@keyframes slHintIn {
  to { opacity: 1; transform: translateY(0); }
}

.sl-scroll-hint svg {
  display: block;
  animation: slBounce 1.6s ease-in-out 3s infinite;
}

@keyframes slBounce {
  0%, 100% { transform: translateY(0);   }
  50%       { transform: translateY(7px); }
}

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 1024px) {
  :root {
    --sec-v: 100px;
    --pad:   32px;
  }

  .momento-grid,
  .quees-layout {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .part-layout {
    gap: 56px;
  }

  .form-card { position: static; }

  .footer-cta { display: none; }

  .quees-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --sec-v: 80px;
    --pad:   24px;
  }

  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: block; }

  /* Hero */
  .hero-content {
    padding-bottom: 56px;
    justify-content: flex-end;
  }

  .hl-word {
    font-size: clamp(52px, 14vw, 88px);
  }

  .hero-claim {
    gap: 8px;
    flex-wrap: wrap;
  }

  .hc-tagline {
    margin-left: 0;
    width: 100%;
    font-size: 13px;
  }

  .hero-scroll-hint { display: none; }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .ha-primary, .btn-red-lg {
    width: 100%;
    justify-content: center;
  }

  /* Secciones */
  .part-layout,
  .part-layout-rev {
    grid-template-columns: 1fr;
    gap: 40px;
    direction: ltr;
  }

  .part-layout-rev > * { direction: ltr; }

  .part-num-label { display: none; }

  .momento-stats {
    flex-direction: column;
  }

  .ms-div {
    width: 100%;
    height: 1px;
    background: var(--border);
  }

  .rb-stats {
    flex-wrap: wrap;
    gap: 16px;
  }

  .rb-stat + .rb-stat {
    border-left: none;
    padding-left: 0;
  }

  /* CTA final — header centered on mobile */
  .ctaf-header {
    padding: 72px 0 56px;
  }

  /* FAQ */
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .faq-heading { position: static; }

  /* Footer */
  .footer-top {
    flex-direction: column;
    gap: 28px;
    padding-top: 40px;
  }

  .footer-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 20px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 20px 0;
  }

  /* Momentos */
  .momento-grid {
    gap: 40px;
  }
}

@media (max-width: 480px) {
  .nav-inner { height: 64px; }
  .mobile-menu { top: 64px; }

  .quees-stats {
    grid-template-columns: 1fr;
  }

  .partner-types {
    grid-template-columns: 1fr;
  }
}
