:root {
  --bg-color: #16181d;
  --surface-card: #1f232b;
  --surface-card-hover: #262c38;
  --accent-1: #FCD9A9;
  --accent-2: #FCCBA9;
  --accent-3: #FCE4A9;
  --accent-4: #FCBDA9;
  --accent-5: #FCEEA9;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --border-color: rgba(252, 217, 169, 0.18);
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: system-ui, -apple-system, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.8;
  overflow-x: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

body.page-fade-out {
  opacity: 0;
  transform: translateY(-10px);
}

/* CARGADOR INICIAL EXCLUSIVO INDEX (0.5s) */
#page-loader {
  position: fixed;
  inset: 0;
  background: var(--bg-color);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.4s ease;
}

.spinner-ring {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(252, 217, 169, 0.15);
  border-top-color: var(--accent-1);
  border-radius: 50%;
  animation: spin 0.5s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.top-disclaimer {
  background: linear-gradient(90deg, #1f232b, #2b313d);
  color: var(--accent-1);
  font-size: 0.82rem;
  text-align: center;
  padding: 0.6rem 1rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  z-index: 1001;
  letter-spacing: 0.04em;
}

/* NAVEGACIÓN LATERAL CON ANIMACIÓN ESCALONADA Y HOVER DE BRINCO */
.site-layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  min-height: 100vh;
}

.sidebar-nav {
  background: var(--surface-card);
  border-right: 1px solid var(--border-color);
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 1000;
  backdrop-filter: blur(12px);
}

.brand-logo {
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.12em;
  background: linear-gradient(135deg, var(--accent-5) 20%, var(--accent-1) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-tagline {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  margin-top: 0.4rem;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin: 3rem 0;
}

.nav-links li {
  opacity: 0;
  transform: translateX(-20px);
  animation: navStaggerIn 0.6s forwards;
}

.nav-links li:nth-child(1) { animation-delay: 0.1s; }
.nav-links li:nth-child(2) { animation-delay: 0.2s; }
.nav-links li:nth-child(3) { animation-delay: 0.3s; }
.nav-links li:nth-child(4) { animation-delay: 0.4s; }

@keyframes navStaggerIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--accent-1);
  transform: translateY(-4px) scale(1.03);
}

.sidebar-footer {
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}

.main-content-area {
  padding: 4rem;
  max-width: 1450px;
}

/* HERO CON DISEÑO ABSTRACTO MODERNO Y TEXTO ANIMADO */
.hero-abstract-container {
  position: relative;
  padding: 5rem 3rem;
  border-radius: 20px;
  background: radial-gradient(circle at top right, rgba(252, 217, 169, 0.07), transparent 60%),
              radial-gradient(circle at bottom left, rgba(252, 189, 169, 0.05), transparent 50%),
              var(--surface-card);
  border: 1px solid var(--border-color);
  overflow: hidden;
  margin-bottom: 6rem;
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

.abstract-shape-bg {
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-4));
  filter: blur(120px);
  opacity: 0.12;
  border-radius: 50%;
  pointer-events: none;
  animation: floatShape 8s ease-in-out infinite alternate;
}

@keyframes floatShape {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(30px) scale(1.1); }
}

.hero-content-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.animated-hero-title {
  font-size: 3.5rem;
  line-height: 1.15;
  font-weight: 900;
  margin-bottom: 1.5rem;
  color: #fff;
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 4px solid var(--accent-1);
  animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: var(--accent-1); }
}

.animated-hero-title span {
  color: var(--accent-1);
}

.hero-content-grid p {
  font-size: 1.12rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

/* BOTONES CON RETROALIMENTACIÓN DE CLIC Y ALTERNANCIA */
.btn-interactive {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--accent-1);
  color: #121418;
  padding: 0.9rem 2.2rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  box-shadow: 0 10px 25px rgba(252, 217, 169, 0.2);
}

.btn-interactive.alt-state {
  background: var(--accent-4);
  color: #fff;
}

.btn-interactive:active {
  transform: scale(0.95);
  box-shadow: 0 5px 15px rgba(252, 217, 169, 0.4);
}

.btn-interactive::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.6);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.btn-interactive.ripple::after {
  animation: rippleEffect 0.6s ease-out;
}

@keyframes rippleEffect {
  0% { transform: scale(0, 0); opacity: 0.8; }
  100% { transform: scale(40, 40); opacity: 0; }
}

.hero-img-card {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.hero-img-card img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.hero-img-card:hover img {
  transform: scale(1.05);
}

/* GLASSMORPHIC CARD CON BRILLO AL PASAR EL CURSOR */
.glass-tile-card {
  background: rgba(31, 35, 43, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 3rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.glass-tile-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(252, 217, 169, 0.1), transparent);
  transition: 0.6s;
}

.glass-tile-card:hover::before {
  left: 100%;
}

.glass-tile-card:hover {
  border-color: var(--accent-1);
  transform: translateY(-5px);
}

/* 8 SECCIONES ÚNICAS Y DIFERENCIADAS (EVITANDO PATRONES REPETIDOS) */

/* SECCIÓN 1: Layout Diagonal Split */
.sec-diag-split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: center;
  margin: 6rem 0;
  padding: 3rem;
  background: var(--surface-card);
  border-radius: 16px;
  border: 1px solid var(--border-color);
}

.sec-diag-split h3 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
  color: #fff;
}
.sec-diag-split h3 span { color: var(--accent-1); }
.sec-diag-split p { color: var(--text-muted); margin-bottom: 2rem; }
.sec-diag-split img { width: 100%; height: 380px; object-fit: cover; border-radius: 12px; }

/* SECCIÓN 2: Floating Badge Grid */
.sec-badge-grid {
  margin: 6rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.badge-box {
  background: linear-gradient(145deg, var(--surface-card), #191c23);
  padding: 3rem;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  position: relative;
}

.badge-box h3 { font-size: 2rem; font-weight: 800; color: #fff; margin-bottom: 1rem; }
.badge-box h3 span { color: var(--accent-2); }
.badge-box p { color: var(--text-muted); }
.badge-box img { width: 100%; height: 260px; object-fit: cover; border-radius: 10px; margin-top: 1.5rem; }

/* SECCIÓN 3: Vertical Timeline Style */
.sec-vertical-timeline {
  margin: 6rem 0;
  padding: 4rem;
  background: var(--surface-card);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
  align-items: center;
}
.sec-vertical-timeline img { width: 100%; height: 400px; object-fit: cover; border-radius: 12px; }
.sec-vertical-timeline h3 { font-size: 2.2rem; font-weight: 800; color: #fff; margin-bottom: 1rem; }
.sec-vertical-timeline h3 span { color: var(--accent-3); }
.sec-vertical-timeline p { color: var(--text-muted); }

/* SECCIÓN 4: Minimalist Focus Banner */
.sec-minimal-banner {
  margin: 6rem 0;
  padding: 4rem 3rem;
  background: radial-gradient(circle at center, #232833, var(--surface-card));
  border-radius: 20px;
  border: 1px solid var(--border-color);
  text-align: center;
}
.sec-minimal-banner h3 { font-size: 2.6rem; font-weight: 900; color: #fff; margin-bottom: 1rem; }
.sec-minimal-banner h3 span { color: var(--accent-1); }
.sec-minimal-banner p { color: var(--text-muted); max-width: 800px; margin: 0 auto 2.5rem; }
.sec-minimal-banner img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 12px; margin-top: 2rem; }

/* SECCIÓN 5: Dual Image Asymmetric Row */
.sec-dual-row {
  margin: 6rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
.sec-dual-row .card-item {
  background: var(--surface-card);
  padding: 2.5rem;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  height: 100%;
}
.sec-dual-row h3 { font-size: 1.6rem; font-weight: 800; color: #fff; margin-bottom: 1rem; }
.sec-dual-row h3 span { color: var(--accent-4); }
.sec-dual-row p { color: var(--text-muted); font-size: 0.95rem; }
.sec-dual-row img { width: 100%; height: 220px; object-fit: cover; border-radius: 8px; margin-bottom: 1.5rem; }

/* SECCIÓN 6: Highlight Frame Layout */
.sec-highlight-frame {
  margin: 6rem 0;
  padding: 3.5rem;
  background: linear-gradient(135deg, rgba(252, 217, 169, 0.04), var(--surface-card));
  border-radius: 18px;
  border: 1px solid var(--border-color);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}
.sec-highlight-frame h3 { font-size: 2.3rem; font-weight: 800; color: #fff; margin-bottom: 1.2rem; }
.sec-highlight-frame h3 span { color: var(--accent-5); }
.sec-highlight-frame p { color: var(--text-muted); margin-bottom: 1.5rem; }
.sec-highlight-frame img { width: 100%; height: 360px; object-fit: cover; border-radius: 12px; }

/* SECCIÓN 7: Structured Pillar Container */
.sec-pillar-box {
  margin: 6rem 0;
  background: var(--surface-card);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  padding: 4rem;
}
.sec-pillar-box h3 { font-size: 2.4rem; font-weight: 800; color: #fff; margin-bottom: 1rem; text-align: center; }
.sec-pillar-box h3 span { color: var(--accent-2); }
.sec-pillar-box p { color: var(--text-muted); text-align: center; max-width: 750px; margin: 0 auto 3rem; }
.pillar-grid-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.pillar-grid-inner img { width: 100%; height: 320px; object-fit: cover; border-radius: 10px; }

/* SECCIÓN 8: Editorial Footer Block */
.sec-editorial-bottom {
  margin: 6rem 0;
  padding: 4rem;
  background: var(--surface-card);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.sec-editorial-bottom h3 { font-size: 2.2rem; font-weight: 800; color: #fff; margin-bottom: 1.2rem; }
.sec-editorial-bottom h3 span { color: var(--accent-1); }
.sec-editorial-bottom p { color: var(--text-muted); margin-bottom: 1.5rem; }
.sec-editorial-bottom img { width: 100%; height: 350px; object-fit: cover; border-radius: 10px; }

.site-footer {
  background: var(--surface-card);
  border-top: 1px solid var(--border-color);
  padding: 5rem 4rem 2rem;
  margin-top: 8rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-grid h4 {
  color: var(--accent-1);
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
}

.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 0.8rem; }
.footer-grid a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer-grid a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

@media(max-width: 1024px) {
  .site-layout { grid-template-columns: 1fr; }
  .sidebar-nav { position: relative; height: auto; padding: 2rem; }
  .main-content-area { padding: 2rem; }
  .hero-content-grid, .sec-diag-split, .sec-badge-grid, .sec-vertical-timeline, .sec-dual-row, .sec-highlight-frame, .pillar-grid-inner, .sec-editorial-bottom { grid-template-columns: 1fr; gap: 2rem; }
}