/* ==========================================================================
   NUVANTA GLOBAL ADVISORY — CSS Editorial Experimental (/css/site.css)
   Directora de Arte & Arquitectura Web Senior
   ========================================================================== */

:root {
  --bg-base: #fbf9f5;
  --bg-surface: #f4f0eb;
  --bg-pure: #ffffff;
  
  --color-primary: #481800;
  --color-text: #2c2522;
  --color-muted: #756860;
  --color-border: #e6dfd5;
  
  --accent-cyan: #0fc3e8;
  --accent-blue: #0194be;
  --accent-gold: #e2d397;
  --accent-orange: #f07e13;
  --accent-deep: #481800;

  --font-display: 'Instrument Serif', 'Baskerville', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  
  --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-base);
  color: var(--color-text);
  font-family: var(--font-sans);
}

body {
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   LOADER EXPERIMENTAL DE 0.5s
   ========================================================================== */
#page-loader {
  position: fixed;
  inset: 0;
  background-color: var(--bg-base);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: clip-path 0.7s cubic-bezier(0.77, 0, 0.175, 1);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

#page-loader.loaded {
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
  pointer-events: none;
}

.loader-word {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  color: var(--color-primary);
  letter-spacing: -0.02em;
  line-height: 1;
  overflow: hidden;
  display: inline-block;
}

.loader-word span {
  display: inline-block;
  transform: translateY(100%);
  animation: revealUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.loader-line {
  width: 120px;
  height: 2px;
  background-color: var(--accent-orange);
  margin-top: 1.5rem;
  transform: scaleX(0);
  transform-origin: left;
  animation: expandLine 0.4s ease 0.1s forwards;
}

@keyframes revealUp {
  to { transform: translateY(0); }
}

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

/* ==========================================================================
   CURSOR INTERACTIVO PERSONALIZADO
   ========================================================================== */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--accent-orange);
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%) scale(1);
  transition: transform 0.2s ease, width 0.2s ease, height 0.2s ease, background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.custom-cursor.active {
  width: 72px;
  height: 72px;
  background-color: var(--color-primary);
  mix-blend-mode: normal;
}

/* ==========================================================================
   AVISO LEGAL SUPERIOR (COMPLIANCE GOOGLE ADS)
   ========================================================================== */
.compliance-banner {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-primary);
  padding: 0.6rem 2rem;
  font-size: 0.8rem;
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.03em;
  position: relative;
  z-index: 100;
}

.compliance-banner strong {
  font-weight: 700;
  color: var(--accent-orange);
}

/* ==========================================================================
   NAVEGACIÓN FLOTANTE EDITORIAL
   ========================================================================== */
.site-nav {
  position: fixed;
  top: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(90%, 1200px);
  background: rgba(251, 249, 245, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  padding: 0.85rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 999;
  transition: var(--transition-smooth);
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: -0.01em;
  font-weight: 400;
}

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

.nav-link {
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent-orange);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.nav-cta {
  background-color: var(--color-primary);
  color: #fff;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.nav-cta:hover {
  background-color: var(--accent-orange);
}

/* ==========================================================================
   HERO EDITORIAL EXPERIMENTAL (SECCIÓN 0)
   ========================================================================== */
.hero-editorial {
  min-height: 100vh;
  padding: 12rem 2rem 6rem 2rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.hero-title-wrapper {
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-orange);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero-tag::before {
  content: '';
  width: 32px;
  height: 1px;
  background-color: var(--accent-orange);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 9vw, 9.5rem);
  line-height: 0.9;
  font-weight: 400;
  color: var(--color-primary);
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
}

.hero-title span {
  font-style: italic;
  color: var(--accent-blue);
}

.hero-desc {
  max-width: 520px;
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--color-muted);
  margin-bottom: 3rem;
}

.hero-visual-collage {
  position: relative;
  height: 600px;
}

.hero-img-main {
  position: absolute;
  top: 0;
  right: 0;
  width: 75%;
  height: 480px;
  object-fit: cover;
  border-radius: 4px;
  filter: grayscale(20%) contrast(105%);
  box-shadow: 20px 30px 60px rgba(72, 24, 0, 0.08);
}

.hero-img-float {
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 55%;
  height: 320px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: -15px 20px 40px rgba(72, 24, 0, 0.12);
  border: 4px solid var(--bg-base);
}

/* ==========================================================================
   TEXTO DESPLAZÁNDOSE HORIZONTALMENTE (MARQUEE)
   ========================================================================== */
.marquee-section {
  background-color: var(--color-primary);
  color: #fff;
  padding: 1.75rem 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  margin: 4rem 0;
}

.marquee-track {
  display: inline-block;
  animation: marqueeScroll 25s linear infinite;
  font-family: var(--font-display);
  font-size: 2.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.marquee-track span {
  margin-right: 3rem;
  color: var(--accent-gold);
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   8 SECCIONES NUEVAS CON ARQUITECTURA NO CONVENCIONAL
   ========================================================================== */

/* SECCIÓN 1: Fotografía panorámica masiva con tipografía superpuesta */
.sec-panorama {
  position: relative;
  padding: 8rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.panorama-container {
  position: relative;
  height: 700px;
  border-radius: 8px;
  overflow: hidden;
}

.panorama-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9);
}

.panorama-overlay-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 5rem;
  background: linear-gradient(to top, rgba(72,24,0,0.85) 0%, transparent 100%);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.panorama-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 0.95;
  max-width: 700px;
}

.panorama-desc {
  max-width: 400px;
  font-size: 1.05rem;
  color: #e6dfd5;
  line-height: 1.6;
}

/* SECCIÓN 2: Collage editorial asimétrico */
.sec-collage {
  max-width: 1400px;
  margin: 10rem auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
  align-items: center;
}

.collage-text-block {
  grid-column: 1 / span 5;
  padding-right: 2rem;
}

.collage-text-block h2 {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--color-primary);
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.collage-text-block p {
  font-size: 1.1rem;
  color: var(--color-muted);
  line-height: 1.7;
}

.collage-img-1 {
  grid-column: 6 / span 4;
  height: 500px;
  object-fit: cover;
  border-radius: 4px;
  transform: translateY(-40px);
}

.collage-img-2 {
  grid-column: 10 / span 3;
  height: 380px;
  object-fit: cover;
  border-radius: 4px;
  transform: translateY(60px);
}

/* SECCIÓN 3: Tipografía gigante y pequeños elementos informativos */
.sec-typography-hero {
  background-color: var(--bg-surface);
  padding: 10rem 2rem;
  margin: 8rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.typo-hero-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.giant-quote {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 7rem);
  line-height: 1;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.giant-quote span {
  color: var(--accent-orange);
  font-style: italic;
}

.typo-info-blocks {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  border-left: 1px solid var(--color-border);
  padding-left: 3rem;
}

.info-item span.number {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--accent-blue);
  display: block;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.info-item h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.info-item p {
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.6;
}

/* SECCIÓN 4: Galería horizontal con scroll interactivo */
.sec-horizontal-scroll {
  max-width: 1400px;
  margin: 10rem auto;
  padding: 0 2rem;
}

.horizontal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
}

.horizontal-header h2 {
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--color-primary);
}

.horizontal-track-wrapper {
  display: flex;
  gap: 3rem;
  overflow-x: auto;
  padding-bottom: 2rem;
  scrollbar-width: none;
}

.horizontal-track-wrapper::-webkit-scrollbar {
  display: none;
}

.h-item {
  min-width: 450px;
  flex-shrink: 0;
}

.h-item img {
  width: 100%;
  height: 550px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  filter: contrast(105%);
}

.h-item h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.h-item p {
  color: var(--color-muted);
  font-size: 1rem;
}

/* SECCIÓN 5: Timeline visual no convencional */
.sec-timeline {
  max-width: 1200px;
  margin: 10rem auto;
  padding: 0 2rem;
}

.timeline-header {
  text-align: center;
  margin-bottom: 6rem;
}

.timeline-header h2 {
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--color-primary);
}

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

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

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

.timeline-number {
  font-family: var(--font-display);
  font-size: 8rem;
  color: var(--accent-gold);
  line-height: 1;
  position: absolute;
  top: -4rem;
  left: 0;
  z-index: -1;
  opacity: 0.6;
}

.timeline-content h3 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.timeline-content p {
  color: var(--color-muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.timeline-img img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 4px;
}

/* SECCIÓN 6: Protagonismo de Números y Estadísticas Gigantes */
.sec-stats {
  background-color: var(--color-primary);
  color: #fff;
  padding: 10rem 2rem;
  margin: 8rem 0;
}

.stats-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem;
  text-align: center;
}

.stat-box h2 {
  font-family: var(--font-display);
  font-size: clamp(5rem, 10vw, 9rem);
  color: var(--accent-gold);
  line-height: 1;
  margin-bottom: 1rem;
}

.stat-box h4 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.stat-box p {
  color: #d1c7bd;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* SECCIÓN 7: Área interactiva con movimiento de cursor dinámico */
.sec-interactive-hover {
  max-width: 1400px;
  margin: 10rem auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.interactive-left h2 {
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.interactive-left p {
  font-size: 1.15rem;
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.interactive-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.interactive-item {
  font-family: var(--font-display);
  font-size: 2.25rem;
  color: var(--color-text);
  cursor: pointer;
  transition: color 0.3s ease, padding-left 0.3s ease;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1rem;
}

.interactive-item:hover {
  color: var(--accent-orange);
  padding-left: 1rem;
}

.interactive-display-img {
  position: relative;
  height: 600px;
  border-radius: 4px;
  overflow: hidden;
}

.interactive-display-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  transform: scale(1.05);
}

.interactive-display-img img.active {
  opacity: 1;
  transform: scale(1);
}

/* SECCIÓN 8: Composición asimétrica flotante independiente */
.sec-floating-asym {
  max-width: 1400px;
  margin: 10rem auto;
  padding: 0 2rem;
  position: relative;
  height: 800px;
}

.floating-box-1 {
  position: absolute;
  top: 0;
  left: 5%;
  width: 450px;
  background-color: var(--bg-surface);
  padding: 4rem;
  border-radius: 4px;
  border: 1px solid var(--color-border);
  z-index: 2;
  box-shadow: 20px 30px 50px rgba(72,24,0,0.05);
}

.floating-box-1 h3 {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.floating-box-1 p {
  color: var(--color-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.floating-img-2 {
  position: absolute;
  bottom: 0;
  right: 5%;
  width: 550px;
  height: 500px;
  object-fit: cover;
  border-radius: 4px;
  z-index: 1;
  box-shadow: -20px -30px 60px rgba(72,24,0,0.08);
}

/* ==========================================================================
   FOOTER EDITORIAL
   ========================================================================== */
.site-footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--color-border);
  padding: 6rem 2rem 3rem 2rem;
  color: var(--color-text);
}

.footer-grid {
  max-width: 1400px;
  margin: 0 auto 5rem auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.footer-col p {
  color: var(--color-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.footer-col h5 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--color-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent-orange);
}

.footer-legal-notice {
  background: rgba(226, 211, 151, 0.2);
  border: 1px solid var(--accent-gold);
  color: var(--color-primary);
  padding: 1.5rem;
  border-radius: 4px;
  max-width: 1400px;
  margin: 0 auto 3rem auto;
  font-size: 0.9rem;
  text-align: center;
  line-height: 1.6;
}

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* ==========================================================================
   RESPONSIVE DESIGN ADAPTATIVO
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-editorial, .collage-text-block, .typo-hero-grid, .stats-grid, .sec-interactive-hover, .footer-grid, .timeline-row {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .site-nav {
    padding: 0.75rem 1.5rem;
  }
  .nav-links {
    display: none;
  }
  .hero-visual-collage {
    height: 450px;
  }
  .sec-floating-asym {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
  }
  .floating-box-1, .floating-img-2 {
    position: relative;
    width: 100%;
    left: 0;
    right: 0;
  }
  .floating-img-2 {
    height: 400px;
  }
}