:root {
  --bg-white: #ffffff;
  --bg-cream: #faf9f6;
  --text-primary: #0a0a0a;
  --text-muted: #525252;
  --text-light: #737373;
  --accent-amber: #f59e0b;
  --accent-gold: #d97706;
  --accent-coral: #ea580c;
  --accent-crimson: #dc2626;
  --border-subtle: rgba(0, 0, 0, 0.08);
  --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-white);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: default;
}

/* Tipografía de Lujo */
.font-serif {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.02em;
}

/* Loading Screen Dinámico de 0.5s */
#loading-screen {
  position: fixed;
  inset: 0;
  background-color: var(--text-primary);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: hideLoader 0.5s ease 0.4s forwards;
}

.loader-brand {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 3rem;
  color: var(--bg-white);
  letter-spacing: 0.1em;
  opacity: 0;
  animation: fadeInOut 0.4s ease forwards;
}

.loader-bar {
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-amber), var(--accent-coral));
  margin-top: 1.5rem;
  transform: scaleX(0);
  transform-origin: left;
  animation: loadBar 0.4s var(--transition-smooth) forwards;
}

@keyframes loadBar {
  to { transform: scaleX(1); }
}

@keyframes fadeInOut {
  to { opacity: 1; }
}

@keyframes hideLoader {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}

/* Aviso Legal Superior Estilizado */
.gov-disclaimer-banner {
  background-color: var(--text-primary);
  color: var(--bg-white);
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
  text-align: center;
  border-bottom: 1px solid rgba(245, 158, 11, 0.3);
  letter-spacing: 0.05em;
  font-weight: 500;
  position: relative;
  z-index: 1000;
}

.gov-disclaimer-banner span {
  color: var(--accent-amber);
  font-weight: 700;
}

/* Navegación Ejecutiva Flotante */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: transform 0.3s ease;
}

.nav-container {
  max-width: 1500px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 3rem;
}

.brand-logo {
  font-family: 'Instrument Serif', serif;
  font-size: 2.25rem;
  font-weight: 400;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand-logo span {
  color: var(--accent-coral);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-coral);
  transition: width 0.3s var(--transition-smooth);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  background: var(--text-primary);
  color: var(--bg-white) !important;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-weight: 600 !important;
  transition: background 0.3s ease, transform 0.2s ease;
}

.nav-cta::after { display: none !important; }
.nav-cta:hover {
  background: var(--accent-coral);
  transform: translateY(-2px);
}

/* Sección 01: Composición Tipográfica Gigante (Hero) */
.hero-monumental {
  max-width: 1500px;
  margin: 0 auto;
  padding: 6rem 3rem 4rem 3rem;
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 4rem;
  align-items: end;
}

.hero-title-wrapper h1 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(4rem, 7vw, 7.5rem);
  line-height: 0.95;
  font-weight: 400;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}

.hero-title-wrapper h1 em {
  font-style: italic;
  color: var(--accent-coral);
}

.hero-sidebar-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-bottom: 1rem;
}

.hero-sidebar-info p {
  font-size: 1.15rem;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.7;
}

.hero-action-group {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.btn-editorial-primary {
  background: var(--accent-coral);
  color: var(--bg-white);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: transform 0.3s var(--transition-smooth), background 0.3s ease;
  display: inline-block;
}

.btn-editorial-primary:hover {
  background: var(--accent-gold);
  transform: scale(1.03);
}

/* Sección 02: Imagen de Gran Escala con Información Superpuesta */
.showcase-immersive {
  position: relative;
  max-width: 1500px;
  margin: 4rem auto;
  padding: 0 3rem;
}

.immersive-image-container {
  width: 100%;
  height: 650px;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
}

.immersive-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9);
  transition: transform 1.2s var(--transition-smooth);
}

.showcase-immersive:hover .immersive-image-container img {
  transform: scale(1.04);
}

.immersive-overlay-box {
  position: absolute;
  bottom: 4rem;
  left: 6rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  padding: 3rem;
  border-radius: 16px;
  max-width: 600px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.immersive-overlay-box h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 3rem;
  line-height: 1.05;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.immersive-overlay-box p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Sección 03: Estadísticas Monumentales sin Cards */
.stats-monumental {
  max-width: 1500px;
  margin: 8rem auto;
  padding: 0 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  position: relative;
}

.stat-item::before {
  content: '';
  position: absolute;
  top: -6rem;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--accent-amber);
}

.stat-number {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 6.5rem;
  line-height: 1;
  color: var(--text-primary);
  font-weight: 400;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}

.stat-number span {
  color: var(--accent-coral);
}

.stat-label {
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.stat-description {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Sección 04: Composición Editorial Asimétrica */
.editorial-grid-section {
  max-width: 1500px;
  margin: 8rem auto;
  padding: 0 3rem;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6rem;
  align-items: center;
}

.editorial-text-block h3 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.editorial-text-block p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.editorial-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  position: relative;
}

.editorial-collage img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 12px;
}

.editorial-collage img:nth-child(2) {
  margin-top: 4rem;
}

/* Sección 05: Explorador Interactivo de Pilares */
.interactive-exploration {
  background-color: var(--bg-cream);
  padding: 8rem 3rem;
  margin: 6rem 0;
}

.exploration-container {
  max-width: 1500px;
  margin: 0 auto;
}

.exploration-header {
  margin-bottom: 4rem;
  max-width: 700px;
}

.exploration-header h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 4rem;
  line-height: 1.05;
  margin-bottom: 1rem;
}

.exploration-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.exploration-card {
  background: var(--bg-white);
  padding: 3rem;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  transition: transform 0.4s var(--transition-smooth), box-shadow 0.4s var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.exploration-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-amber), var(--accent-coral));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--transition-smooth);
}

.exploration-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.08);
}

.exploration-card:hover::after {
  transform: scaleX(1);
}

.exploration-card h4 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.exploration-card p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Sección 06: Timeline Editorial No Convencional */
.timeline-editorial {
  max-width: 1500px;
  margin: 8rem auto;
  padding: 0 3rem;
}

.timeline-header {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 4rem;
  margin-bottom: 5rem;
  text-align: center;
}

.timeline-track {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  position: relative;
}

.timeline-track::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border-subtle);
  transform: translateX(-50%);
}

.timeline-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.timeline-row:nth-child(even) {
  direction: rtl;
}

.timeline-row:nth-child(even) > * {
  direction: ltr;
}

.timeline-content-box {
  padding: 3rem;
  background: var(--bg-white);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  position: relative;
}

.timeline-number {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 4rem;
  color: var(--accent-gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.timeline-content-box h4 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.timeline-content-box p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Footer Ejecutivo */
.site-footer {
  background-color: var(--text-primary);
  color: var(--bg-white);
  padding: 6rem 3rem 3rem 3rem;
  margin-top: 8rem;
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
}

.footer-grid {
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-col h4 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: var(--accent-amber);
}

.footer-col p, .footer-col ul {
  font-size: 0.95rem;
  color: #a3a3a3;
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.85rem;
}

.footer-col ul li a {
  color: #a3a3a3;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-col ul li a:hover {
  color: var(--bg-white);
}

.footer-bottom {
  max-width: 1500px;
  margin: 3rem auto 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #737373;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-monumental,
  .editorial-grid-section,
  .stats-monumental,
  .exploration-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .timeline-track::before { display: none; }
  .timeline-row { grid-template-columns: 1fr; gap: 2rem; }
  .immersive-overlay-box { position: relative; bottom: auto; left: auto; margin: -4rem 1.5rem 0 1.5rem; }
}