@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Jost:wght@300;400;500;600&display=swap');

:root {
  --cream: #f5f0e8;
  --ivory: #faf8f3;
  --charcoal: #1c1c1c;
  --slate: #3d3d3d;
  --warm-gray: #7a7470;
  --gold: #b8945a;
  --gold-light: #d4b07a;
  --bordeaux: #5c2d3a;
  --sage: #6b7f6b;
  --border: #ddd8ce;
  --shadow: rgba(28,28,28,0.08);
}

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

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

body {
  font-family: 'Jost', sans-serif;
  background-color: var(--ivory);
  color: var(--charcoal);
  font-weight: 300;
  line-height: 1.7;
}

/* ── NAVIGATION ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(250, 248, 243, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--charcoal);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav-brand span { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warm-gray);
  text-decoration: none;
  transition: color 0.25s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s;
}

.nav-links a:hover { color: var(--charcoal); }
.nav-links a:hover::after { width: 100%; }

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

.hamburger span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--charcoal);
  transition: all 0.3s;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 2rem 4rem;
  position: relative;
  background: var(--ivory);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: 
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(184,148,90,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 100% 100%, rgba(92,45,58,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.hero-ornament {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
}

.hero-ornament::before,
.hero-ornament::after {
  content: '';
  width: 40px; height: 1px;
  background: var(--gold);
}

.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.hero h1 em {
  font-style: italic;
  color: var(--bordeaux);
}

.hero-subtitle {
  font-size: 1rem;
  font-weight: 300;
  color: var(--warm-gray);
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.8;
}

.hero-meta {
  display: flex;
  gap: 3rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-meta-item {
  text-align: center;
}

.hero-meta-item .label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--warm-gray);
  display: block;
  margin-bottom: 0.3rem;
}

.hero-meta-item .value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: var(--charcoal);
}

.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--warm-gray);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-hint::after {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}

/* ── PAGE SECTIONS ── */
.page-section { display: none; }
.page-section.active { display: block; }

/* ── SECTION WRAPPERS ── */
.section-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.section-header {
  margin-bottom: 4rem;
  text-align: center;
}

.section-tag {
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--charcoal);
  line-height: 1.2;
}

.section-divider {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 1.5rem auto 0;
}

/* ── TEAM ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.team-card {
  background: white;
  border: 1px solid var(--border);
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}

.team-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--bordeaux), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.team-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px var(--shadow); }
.team-card:hover::before { transform: scaleX(1); }

.team-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bordeaux), var(--gold));
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 300;
  color: white;
}

.team-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 0.4rem;
}

.team-role {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.team-quote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--warm-gray);
  line-height: 1.6;
}

/* ── EVIDENCIAS NAV ── */
.evidencias-nav {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.5rem;
}

.ev-tab {
  padding: 0.5rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  background: white;
  color: var(--warm-gray);
  cursor: pointer;
  transition: all 0.25s;
}

.ev-tab:hover, .ev-tab.active {
  background: var(--charcoal);
  color: white;
  border-color: var(--charcoal);
}

.ev-content { display: none; }
.ev-content.active { display: block; }

/* ── EVIDENCE CARDS ── */
.evidence-card {
  background: white;
  border: 1px solid var(--border);
  padding: 3rem;
  margin-bottom: 2rem;
}

.evidence-label {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.evidence-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
  line-height: 1.25;
}

.evidence-desc {
  font-size: 0.95rem;
  color: var(--warm-gray);
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 760px;
}

/* ── FICHA DE LECTURA ── */
.ficha-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.ficha-table th {
  background: var(--charcoal);
  color: white;
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.8rem 1.2rem;
  text-align: left;
  width: 220px;
}

.ficha-table td {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--border);
  color: var(--slate);
  line-height: 1.7;
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.ficha-table tr:hover td { background: #faf9f6; }

/* ── COMMENTARIO CRITICO ── */
.critico-block {
  border-left: 3px solid var(--gold);
  padding: 2rem 2rem 2rem 2.5rem;
  background: #faf9f6;
  margin-bottom: 1.5rem;
}

.critico-block p {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--slate);
  margin-bottom: 1rem;
}

.critico-block p:last-child { margin-bottom: 0; }

.quote-block {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--bordeaux);
  border-left: 2px solid var(--bordeaux);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
}

/* ── GUION PODCAST ── */
.podcast-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.podcast-meta-item {
  background: #faf9f6;
  border: 1px solid var(--border);
  padding: 1.2rem;
}

.podcast-meta-item .pm-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.4rem;
}

.podcast-meta-item .pm-value {
  font-size: 0.9rem;
  color: var(--charcoal);
  font-weight: 400;
}

.segment {
  margin-bottom: 2rem;
  border: 1px solid var(--border);
  overflow: hidden;
}

.segment-header {
  background: var(--charcoal);
  color: white;
  padding: 0.9rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.segment-header .time {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 300;
  color: var(--gold-light);
  text-transform: none;
  letter-spacing: 0;
}

.segment-body { padding: 1.5rem; }

.dialog-line {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.dialog-speaker {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: white;
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
  white-space: nowrap;
  height: fit-content;
  margin-top: 0.15rem;
}

.dialog-speaker.presenter { background: var(--bordeaux); }
.dialog-speaker.guest { background: var(--sage); }
.dialog-speaker.music { background: var(--warm-gray); }

.dialog-text {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--slate);
  flex: 1;
}

/* ── PODCAST EMBED ── */
.podcast-embed-wrapper {
  background:
    radial-gradient(circle at top left, rgba(184,148,90,0.12), transparent 34%),
    linear-gradient(135deg, #fcfbf8 0%, #f3ede5 100%);
  border: 1px solid var(--border);
  padding: 2rem;
  margin-bottom: 2rem;
}

.podcast-player-card {
  display: grid;
  gap: 1.5rem;
  padding: 2rem;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(184,148,90,0.22);
  box-shadow: 0 20px 50px rgba(28,28,28,0.08);
}

.podcast-player-header h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}

.podcast-player-header p {
  max-width: 720px;
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--warm-gray);
}

.podcast-player-kicker {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.podcast-player-ornament {
  display: flex;
  align-items: end;
  gap: 0.45rem;
  min-height: 80px;
  padding: 0.5rem 0;
}

.podcast-player-ornament span {
  flex: 1;
  min-width: 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold-light), var(--bordeaux));
  opacity: 0.9;
}

.podcast-player-ornament span:nth-child(1) { height: 24px; }
.podcast-player-ornament span:nth-child(2) { height: 56px; }
.podcast-player-ornament span:nth-child(3) { height: 34px; }
.podcast-player-ornament span:nth-child(4) { height: 68px; }
.podcast-player-ornament span:nth-child(5) { height: 42px; }
.podcast-player-ornament span:nth-child(6) { height: 76px; }
.podcast-player-ornament span:nth-child(7) { height: 30px; }
.podcast-player-ornament span:nth-child(8) { height: 62px; }
.podcast-player-ornament span:nth-child(9) { height: 48px; }
.podcast-player-ornament span:nth-child(10) { height: 70px; }
.podcast-player-ornament span:nth-child(11) { height: 38px; }
.podcast-player-ornament span:nth-child(12) { height: 52px; }

.podcast-audio {
  width: 100%;
  height: 56px;
  filter: sepia(0.28) saturate(0.9);
}

.podcast-audio::-webkit-media-controls-panel {
  background: #fffdf9;
}

/* ── POSTER ── */
.poster-wrapper {
  text-align: center;
  margin-bottom: 2rem;
}

.poster-wrapper img {
  max-width: 100%;
  border: 1px solid var(--border);
  box-shadow: 0 8px 40px var(--shadow);
  cursor: zoom-in;
  transition: transform 0.3s, box-shadow 0.3s;
}

.poster-wrapper img:hover {
  transform: scale(1.01);
  box-shadow: 0 16px 60px rgba(28,28,28,0.14);
}

.poster-caption {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--warm-gray);
  font-size: 0.9rem;
  margin-top: 1rem;
}

/* ── VIDEO ── */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: var(--charcoal);
  margin-bottom: 2rem;
}

.video-wrapper iframe,
.video-wrapper video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

.video-wrapper video {
  background: #000;
}

/* ── REFERENCES ── */
.references-list {
  list-style: none;
  counter-reset: ref;
}

.references-list li {
  counter-increment: ref;
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--slate);
  padding: 0.8rem 0 0.8rem 2.5rem;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.references-list li::before {
  content: counter(ref, decimal-leading-zero);
  position: absolute;
  left: 0;
  font-size: 0.65rem;
  color: var(--gold);
  font-weight: 500;
  top: 1rem;
}

/* ── LIGHTBOX ── */
.lightbox {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 0 80px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 2rem;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.lightbox-close:hover { opacity: 1; }

/* ── FOOTER ── */
footer {
  background: var(--charcoal);
  color: var(--warm-gray);
  text-align: center;
  padding: 3rem 2rem;
}

footer .footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 300;
  color: white;
  margin-bottom: 0.75rem;
}

footer p {
  font-size: 0.8rem;
  line-height: 1.8;
}

footer a { color: var(--gold-light); text-decoration: none; }

/* ── STATS ROW ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  margin-bottom: 3rem;
  background: white;
}

.stat-item {
  padding: 2rem;
  text-align: center;
  border-right: 1px solid var(--border);
}

.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--bordeaux);
  display: block;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--warm-gray);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 0 1.5rem; }
  
  .nav-links {
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: white;
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    transition: transform 0.35s ease;
    z-index: 999;
  }

  .nav-links.open { transform: translateY(0); }

  .nav-links li { border-bottom: 1px solid var(--border); }
  .nav-links a { display: block; padding: 1rem 1.5rem; }

  .podcast-player-card { padding: 1.4rem; }
  .podcast-player-header h4 { font-size: 1.7rem; }
  .podcast-player-ornament { min-height: 56px; gap: 0.3rem; }
  
  .hamburger { display: flex; }

  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: 1fr; }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-bottom: none; }

  .evidence-card { padding: 2rem 1.5rem; }
  .section-wrapper { padding: 4rem 1.5rem; }

  .ficha-table,
  .ficha-table tbody,
  .ficha-table tr,
  .ficha-table th,
  .ficha-table td {
    display: block;
    width: 100%;
  }

  .ficha-table {
    border-collapse: separate;
    margin-bottom: 0;
  }

  .ficha-table tr {
    border: 1px solid var(--border);
    margin-bottom: 1rem;
    background: white;
  }

  .ficha-table th {
    width: 100%;
    padding: 0.9rem 1rem;
  }

  .ficha-table td {
    padding: 1rem;
    border-bottom: none;
  }

  .ficha-table td ul {
    padding-left: 1rem !important;
  }
  
  .dialog-line { flex-direction: column; gap: 0.5rem; }
}

/* ── ANIMATIONS ── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s, transform 0.6s;
}

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