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

:root {
  --gold:    #FBD784;
  --dark:    #0d1b2a;
  --darker:  #080f17;
  --mid:     #112233;
  --text:    #ffffff;
  --muted:   rgba(255,255,255,0.55);
  --white:   #ffffff;
  --blue:    #1a6aad;
  --green:   #2e7d32;
  --blue-navy: #0B1D3F;
  --bg-gradient: linear-gradient(180deg, #111f30 0%, #0a1520 100%);
  --bg-gradient-inv: linear-gradient(180deg, #0a1520 0%, #111f30 100%);
}

html { scroll-behavior: smooth; }

body {
  background: var(--darker);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection { background: var(--green); color: #000; }

.brand {
  color: var(--green);
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.8rem 4rem;
  background: linear-gradient(to bottom, rgba(8,15,23,0.85) 0%, transparent 100%);
  backdrop-filter: blur(0px);
  transition: backdrop-filter 0.3s, background 0.3s;
}
nav.scrolled {
  background: rgba(8,15,23,0.92);
  backdrop-filter: blur(12px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Lato', sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: var(--green);
  text-decoration: none;
}
.nav-logo span { color: var(--green); }

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-social {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.nav-social::before {
  content: '';
  display: inline-block;
  width: 2rem; height: 1px;
  background: var(--green);
}

/* ── HERO ── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

/* Hero video */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(8,15,23,0.65) 0%,
    rgba(8,15,23,0.3) 60%,
    rgba(8,15,23,0.1) 100%
  );
  z-index: 1;
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 10;
  padding: 0 4rem;
  max-width: 700px;
}

.hero-eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--white);
  font-weight: 600;
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 2.5rem; height: 1px;
  background: var(--green);
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 2rem;
  font-family: 'Lato', sans-serif;
}
.hero-title em {
  font-style: italic;
  color: var(--green);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s;
  cursor: pointer;
  background: none;
  border: none;
}
.hero-cta:hover { color: var(--green); }
.hero-cta .arrow {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.hero-cta .arrow span {
  display: block;
  width: 1px;
  background: currentColor;
  margin: 0 auto;
  animation: scrollArrow 1.6s ease-in-out infinite;
}
.hero-cta .arrow span:nth-child(1) { height: 6px; animation-delay: 0s; }
.hero-cta .arrow span:nth-child(2) { height: 10px; animation-delay: 0.15s; }
.hero-cta .arrow span:nth-child(3) { height: 14px; animation-delay: 0.3s; }

@keyframes scrollArrow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* Vertical text on right */
.hero-vertical {
  position: absolute;
  right: 2.5rem;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  z-index: 10;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--white);
  text-transform: uppercase;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
}

.hero-vertical-logo {
  transform: rotate(-90deg);
  display: block;
}

/* Scroll indicator line */
.hero-scroll-line {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--green));
  z-index: 10;
}

/* ── HORIZONTAL SCROLL SECTION ── */
.hscroll-section {
  position: relative;
  height: 600vh;
  background: var(--darker);
}

.hscroll-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.hscroll-track {
  display: flex;
  height: 100%;
  will-change: transform;
}

.hscroll-panel {
  width: 100vw;
  height: 100%;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.panel-bg {
  position: absolute;
  inset: 0;
}
.panel-bg img,
.panel-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.panel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(8,15,23,0.95) 0%,
    rgba(8,15,23,0.75) 55%,
    rgba(8,15,23,0.50) 100%
  );
}

.panel-bg-num {
  position: absolute;
  bottom: 2rem;
  right: 3rem;
  font-family: 'Lato', sans-serif;
  font-size: clamp(7rem, 14vw, 16rem);
  font-weight: 900;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}

.panel-content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 6rem 6rem;
  max-width: 680px;
}

.panel-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.panel-eyebrow::before {
  content: '';
  display: inline-block;
  width: 2rem;
  height: 1px;
  background: var(--green);
}

.panel-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 2rem;
}
.panel-title em {
  font-style: italic;
  color: var(--green);
}

.panel-list {
  list-style: none;
  padding: 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.panel-list li {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(255,255,255,1);
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}
.panel-list li::before {
  content: '\2014';
  color: var(--green);
  opacity: 0.55;
  flex-shrink: 0;
}

/* Progress bar */
.hscroll-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255,255,255,0.07);
  z-index: 30;
}
.hscroll-progress-fill {
  height: 100%;
  background: var(--green);
  width: 0%;
}

/* Counter */
.hscroll-counter {
  position: absolute;
  bottom: 2.5rem;
  right: 3.5rem;
  z-index: 30;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.hscroll-counter .cur {
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--green);
  line-height: 1;
  font-family: 'Playfair Display', serif;
  font-style: italic;
}
.hscroll-counter .tot {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.3);
}

/* Hint */
.hscroll-hint {
  position: absolute;
  bottom: 2.8rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  color: rgba(255,255,255,0.22);
  text-transform: uppercase;
  white-space: nowrap;
}

.section-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 6rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 4rem;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.section-item.visible {
  opacity: 1;
  transform: translateY(0);
}
.section-item:nth-child(even) { direction: rtl; }
.section-item:nth-child(even) > * { direction: ltr; }

.section-number {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.section-number::before {
  content: '';
  display: inline-block;
  width: 2rem; height: 1px;
  background: var(--green);
}
.section-number.no-before::before {
  display: none;
}

.section-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.section-body {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 480px;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: gap 0.25s;
}
.read-more::after {
  content: '→';
  transition: transform 0.25s;
}
.read-more:hover { gap: 1.2rem; }
.read-more:hover::after { transform: translateX(4px); }

/* Section visual */
.section-visual {
  position: relative;
}
.section-img-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--white);
}
.section-img-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--white);
  opacity: 0.08;
  z-index: 1;
}

.section-img-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.section-badge {
  position: absolute;
  top: -1.5rem;
  right: -1.5rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  background: var(--darker);
  z-index: 2;
}

.section-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ── DIVIDER ── */
.divider {
  width: 1px;
  height: 100px;
  background: linear-gradient(to bottom, transparent, rgba(251,215,132,0.3), transparent);
  margin: 0 auto;
}

/* ── FOOTER ── */
footer {
  background: var(--darker);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 3rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Lato', sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: var(--green);
  text-decoration: none;
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--green); }

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
}

/* ── ACCENT (em italic en color accent) ── */
em.accent {
  font-style: italic;
  color: var(--green);
}

/* ── PAGE HERO (páginas interiores) ── */
.page-hero {
  position: relative;
  height: 60vh;
  min-height: 420px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.page-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(8,15,23,0.85) 0%,
    rgba(8,15,23,0.50) 60%,
    rgba(8,15,23,0.20) 100%
  );
  z-index: 1;
}
.page-hero-content {
  position: relative;
  z-index: 10;
  padding: 0 4rem;
  max-width: 700px;
}
.page-hero-content .hero-eyebrow { margin-bottom: 1rem; }
.page-hero-content h1 {
  font-family: 'Lato', sans-serif;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
}
.page-hero-content h1 em {
  font-style: italic;
  color: var(--green);
}
.page-hero-line {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--green));
  z-index: 10;
}

/* Nav link activo */
.nav-links a.active { color: var(--green); }

/* ── SOBRE NOSOTROS ── */
.about-intro {
  background: var(--bg-gradient);
  padding: 8rem 4rem 4rem;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.about-intro.visible { opacity: 1; transform: translateY(0); }
.about-intro p {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.about-intro p strong {
  color: var(--text);
  font-weight: 500;
}

.values-wrapper {
  background: var(--bg-gradient-inv);
  padding: 4rem 4rem 8rem;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.values-grid.visible { opacity: 1; transform: translateY(0); }
.value-card {
  background: transparent;
  border: none;
  border-left: 2px solid rgba(46,125,50,0.25);
  border-radius: 0;
  padding: 0 0 0 1.8rem;
  transition: border-color 0.3s;
}
.value-card:hover { border-left-color: var(--green); }
.value-card .value-num {
  font-size: 0.68rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--green);
  margin-bottom: 1rem;
  display: block;
}
.value-card h3 {
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
  color: var(--text);
}
.value-card p {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--muted);
}

.mv-wrapper {
  background: var(--bg-gradient);
  padding: 0 0 8rem;
}

/* ── CONTACTO ── */
.contact-wrapper {
  background: var(--bg-gradient);
  padding: 8rem 4rem;
}
.contact-grid {
  max-width: 700px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.contact-grid.visible { opacity: 1; transform: translateY(0); }
.contact-info .section-heading { margin-bottom: 1rem; }
.contact-info > p {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--muted);
  margin-bottom: 3rem;
  max-width: 420px;
}
.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.contact-detail-item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}
.contact-detail-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(46,125,50,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--green);
  font-size: 1rem;
}
.contact-detail-text strong {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.3rem;
}
.contact-detail-text span,
.contact-detail-text a {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
  text-decoration: none;
}
.contact-detail-text a:hover { color: var(--green); }

/* ── HAMBURGER ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 200;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s, width 0.3s;
  transform-origin: center;
}
.nav-toggle span:nth-child(2) { width: 70%; margin-left: auto; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 1.4rem 2rem; }
  .nav-toggle { display: flex; }
  .nav-social { display: none; }

  .nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: fixed;
    top: 0; right: 0;
    width: 75vw;
    max-width: 320px;
    height: 100vh;
    background: rgba(8,15,23,0.97);
    backdrop-filter: blur(16px);
    padding: 6rem 2.5rem 3rem;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 150;
    border-left: 1px solid rgba(255,255,255,0.06);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links li { border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav-links a {
    display: block;
    padding: 1.2rem 0;
    font-size: 1rem;
    letter-spacing: 0.1em;
  }

  .hero-content { padding: 0 2rem; }
  .hero-vertical { display: none; }

  /* Horizontal scroll → apilado vertical en mobile */
  .hscroll-section { height: auto; }
  .hscroll-sticky { position: static; height: auto; overflow: visible; }
  .hscroll-track { flex-direction: column; transform: none !important; }
  .hscroll-panel { width: 100%; height: 100vh; }
  .panel-content { padding: 7rem 2rem 5rem; }
  .hscroll-counter, .hscroll-hint { display: none; }
  .hscroll-progress { display: none; }
  .panel-bg-num { display: none; }

  .page-hero-content { padding: 0 2rem; }
  .about-intro { padding: 6rem 2rem 3rem; }
  .values-wrapper { padding: 3rem 2rem 6rem; }
  .values-grid { grid-template-columns: 1fr; }
  .contact-wrapper { padding: 6rem 2rem; }

  .section-item {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 4rem 2rem;
  }
  .section-item:nth-child(even) { direction: ltr; }
  footer {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
    padding: 2.5rem 2rem;
  }
}
