/* ===== FONT FACE ===== */

@font-face {
  font-family: 'Holy Midnight';
  src: url('../assets/fonts/holy-midnight.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ===== ESTILOS GLOBALES ===== */

body {
  font-family: var(--font-primary);
  color: var(--color-textos);
  background-color: var(--color-white);
}

/* — Botones — */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  font-family: var(--font-primary);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: 0.15px;
  text-transform: uppercase;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  border: none;
  white-space: nowrap;
}

.btn--green {
  color: var(--color-white);
  background: linear-gradient(to left, var(--verde-bopro), var(--verde-multas));
}

.btn--green:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn--blue {
  color: var(--color-white);
  background: var(--azul-bopro);
}

.btn--blue:hover {
  background: var(--azul-bopro-dark);
  transform: translateY(-1px);
}

/* — Utilidades — */
.container {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ===== HEADER (STICKY) ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--color-white);
  z-index: 1000;
  transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.4s ease;
}

.header--scrolled {
  height: 80px;
  box-shadow: 0 4px 30px rgba(0, 68, 133, 0.12);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 120px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header__logo-icon {
  height: 50px;
  width: 52px;
  transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header--scrolled .header__logo-icon {
  height: 38px;
  width: 40px;
}

.header__logo-text {
  height: 37px;
  width: 138px;
  transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header--scrolled .header__logo-text {
  height: 28px;
  width: 104px;
}

.header__separator {
  width: 100%;
  height: 4px;
  background: var(--verde-bopro);
  transition: height 0.4s ease, opacity 0.4s ease;
}

.header--scrolled .header__separator {
  height: 3px;
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
  margin-top: var(--header-height);
}

.hero__bg {
  position: absolute;
  inset: 0;
}

.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 68, 133, 0.9);
  mix-blend-mode: multiply;
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 0 var(--space-lg);
}

.hero__subtitle {
  color: var(--color-white);
  font-family: var(--font-primary);
  font-size: var(--text-5xl);
  font-weight: 500;
  line-height: 1.3;
}

.hero__title {
  font-family: 'Holy Midnight', cursive;
  color: var(--verde-bopro);
  font-size: var(--text-7xl);
  font-weight: 400;
  line-height: 1;
  margin: 8px 0;
}

.hero__map {
  margin-top: 16px;
}

.hero__map img {
  width: 710px;
  max-width: 90vw;
  height: 130px;
  object-fit: contain;
}

/* ===== HOLDING SECTION ===== */
.holding {
  position: relative;
  background: rgba(149, 187, 32, 0.1);
  overflow: hidden;
}

.holding__container {
  display: flex;
  align-items: stretch;
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 680px;
}

.holding__image {
  flex: 0 0 708px;
  position: relative;
  overflow: initial;
}

.holding__image img {
  width: 143%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: -17%;
  will-change: filter;
  filter: grayscale(1);
  overflow:visible;
}

.holding__text {
  flex: 1;
  padding: 100px 120px 100px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.holding__label {
  font-family: var(--font-primary);
  font-size: var(--text-5xl);
  font-weight: 500;
  color: var(--azul-bopro);
  letter-spacing: 0.96px;
}

.holding__title {
  font-family: 'Holy Midnight', cursive;
  font-size: var(--text-7xl);
  font-weight: 400;
  color: var(--verde-bopro);
  letter-spacing: 2.56px;
  line-height: 1;
  margin: 0 0 24px;
}

.holding__description {
  font-family: var(--font-primary);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--color-textos);
  line-height: 1.5;
  margin-bottom: 40px;

    margin-top: 30px;
}

/* ===== UNIVERSO AUTOMOTRIZ SECTION ===== */
.universo {
  padding: 80px 0 40px;
}

.universo__container {
  display: flex;
  gap: 60px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 120px;
}

.universo__left {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.universo__heading {
  margin-bottom: 24px;
}

.universo__label {
  font-family: var(--font-primary);
  font-size: var(--text-5xl);
  font-weight: 500;
  color: var(--azul-bopro);
  letter-spacing: 0.96px;
  text-align: center;
  margin-bottom: -24px;
}

.universo__title {
  font-family: 'Holy Midnight', cursive;
  font-size: var(--text-7xl);
  font-weight: 400;
  color: var(--verde-bopro);
  letter-spacing: 2.56px;
  line-height: 1;
  margin: 0;
  text-align: center;
  margin-bottom: -18px;
}

.universo__description {
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: 400;
  color: #000;
  line-height: 20px;
  letter-spacing: 0.25px;
  text-align: center;
  max-width: 584px;
  margin-bottom: 40px;
}

.universo__laptop {
  width: 100%;
  max-width: 754px;
}

.universo__laptop img {
  width: 100%;
  height: auto;
}

.universo__right {
  flex: 0 0 435px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* — Mundo Cards — */
.mundo-card {
  background: var(--azul-bopro);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 16px;
  min-height: 88px;
margin-bottom: 12px;
border-radius: 10px;
}

.mundo-card__icon {
  flex-shrink: 0;
  width: 87px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 8px;
}

.mundo-card__icon img {
  width: 100%;
  height: auto;
  max-height: 85px;
  object-fit: contain;
}

.mundo-card__content {
  flex: 1;
  min-width: 0;
  color: var(--color-white);
  overflow: hidden;
}

.mundo-card__title {
  font-family: var(--font-primary);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 24px;
  margin-bottom: 4px;
}

.mundo-card__list {
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0.25px;
  line-height: 20px;
}

.mundo-card__list li::before {
  content: '- ';
}

/* — Y más — */
.universo__ymas {
  text-align: right;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 120px 0;
}

.universo__ymas-text {
  font-family: 'Holy Midnight', cursive;
  font-size: var(--text-6xl);
  color: var(--verde-bopro);
  letter-spacing: 1.92px;
}

/* ===== CTA FLOTA SECTION ===== */
.cta-flota {
  position: relative;
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(
    to bottom,
    rgba(29, 113, 184, 0.16) 0%,
    rgba(0, 68, 133, 0) 100%
  );
}

.cta-flota__bg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
}

.cta-flota__bg-img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.9;
}

.cta-flota__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom:190px !important;
padding-bottom: 200px;
}

.cta-flota__label {
  font-family: var(--font-primary);
  font-size: var(--text-5xl);
  font-weight: 500;
  color: var(--azul-bopro);
}

.cta-flota__title {
  font-family: 'Holy Midnight', cursive;
  font-size: var(--text-7xl);
  font-weight: 400;
  color: var(--verde-bopro);
  line-height: 1.3;
  margin: 0 0 40px;
}

/* ===== Holy Midnight — Parallax scroll text (shared system) ===== */
/*
  Todos los títulos con fuente Holy Midnight usan .hm-parallax.
  data-direction="left"  → entra desde la izquierda
  data-direction="right" → entra desde la derecha
  El hermano previo (.hm-sibling) entra desde el lado opuesto.
  JS controla el translateX frame a frame con rAF.
  overflow:hidden en los contenedores padre evita scrollbar horizontal.
*/

.hero__content,
.holding__text,
.universo__heading,
.universo__ymas,
.cta-flota__content {
  overflow: hidden;
}

.hm-parallax {
  will-change: transform, opacity;
  opacity: 0;
  transition: none;
}

.hm-parallax[data-direction="left"]  { transform: translateX(-140px); }
.hm-parallax[data-direction="right"] { transform: translateX(140px); }

/* Hermano: dirección opuesta */
.hm-sibling {
  will-change: transform, opacity;
  opacity: 0;
  transition: none;
}

/* Estado settled: JS agrega esta clase cuando progress >= 1 */
.hm-parallax.hm--settled,
.hm-sibling.hm--settled {
  transform: translateX(0) !important;
  opacity: 1 !important;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

/* ===== CTA Flota — legacy classes (se mantienen por compatibilidad) ===== */
.cta-flota__label--parallax {
  will-change: transform, opacity;
  transform: translateX(140px);
  opacity: 0;
  transition: none;
}

.cta-flota__title--parallax {
  will-change: transform, opacity;
  transform: translateX(-140px);
  opacity: 0;
  transition: none;
}

.cta-flota__label--parallax.cta-text--settled,
.cta-flota__title--parallax.cta-text--settled {
  transform: translateX(0);
  opacity: 1;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--azul-bopro);
  padding: 50px 0 60px;
}

.footer__container {
  display: flex;
  gap: 40px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 120px;
  align-items: flex-start;
}

.footer__logo {
  flex: 0 0 auto;
  margin-right: 40px;
}

.footer__logo img {
  width: 70px;
  height: 70px;
}

.footer__col {
  flex: 1;
}

.footer__heading {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 24px;
}

.footer__links li {
  margin-bottom: 8px;
}

.footer__links a {
  font-family: var(--font-display);
  font-size: var(--text-s);
  font-weight: 500;
  color: var(--color-white);
  opacity: 0.8;
  transition: opacity var(--transition-fast);
}

.footer__links a:hover {
  opacity: 1;
}

.footer__social img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: transform var(--transition-fast);
}

.footer__social img:hover {
  transform: scale(1.1);
}

/* ===== SCROLL REVEAL ANIMATIONS ===== */

/* Base state — hidden */
.reveal {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

/* Directions */
.reveal--up {
  transform: translateY(60px);
}

.reveal--down {
  transform: translateY(-60px);
}

.reveal--left {
  transform: translateX(-80px);
}

.reveal--right {
  transform: translateX(80px);
}

.reveal--scale {
  transform: scale(0.85);
}

.reveal--zoom {
  transform: scale(0.6);
}

/* Active state — visible */
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* Stagger delays for cards */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.35s; }
.reveal-delay-4 { transition-delay: 0.5s; }
.reveal-delay-5 { transition-delay: 0.65s; }

/* Hero parallax layers */
.hero__bg-img {
  transition: transform 0.1s linear;
}

.hero__content {
  transition: transform 0.1s linear, opacity 0.1s linear;
}

/* Mundo card hover lift */
.mundo-card {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mundo-card:hover {
  transform: translateX(8px) scale(1.02);
  box-shadow: 0 8px 30px rgba(0, 68, 133, 0.25);
}

/* CTA button pulse */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(149, 187, 32, 0.4);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(149, 187, 32, 0);
  }
}

.cta-flota .btn {
  animation: pulse-glow 2.5s ease-in-out infinite;
}

/* WhatsApp button entrance */
@keyframes whatsapp-bounce-in {
  0% {
    opacity: 0;
    transform: scale(0) translateY(60px);
  }
  60% {
    opacity: 1;
    transform: scale(1.15) translateY(-5px);
  }
  100% {
    transform: scale(1) translateY(0);
  }
}

.whatsapp-float {
  animation: whatsapp-bounce-in 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 1s both;
}

/* Smooth scroll for entire page */
html {
  scroll-behavior: smooth;
}

/* ===== WHATSAPP FLOATING BUTTON ===== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: transform var(--transition-base);
}

.whatsapp-float:hover {
  transform: translateY(-4px);
}

.whatsapp-float img {
  width: 82px;
  height: 82px;
}

.whatsapp-float__label {
  display: block;
  background: #1d71b8;
  color: var(--color-white);
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1px;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  line-height: 20px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .header__container {
    padding: 0 40px;
  }

  .universo__container,
  .universo__ymas,
  .footer__container {
    padding-left: 40px;
    padding-right: 40px;
  }

  .holding__image {
    flex: 0 0 50%;
  }

  .holding__text {
    padding: 60px 40px;
  }
}

/* ===== TABLET (968px) ===== */
@media (max-width: 968px) {
  :root {
    --header-height: 100px;
  }

  .header--scrolled {
    height: 65px;
  }

  .header__logo-icon { height: 52px; }
  .header__logo-text { height: 32px; width: 120px; }

  .btn {
    font-size: 13px;
    padding: 12px 20px;
  }

  /* Hero */
  .hero { height: auto; min-height: 480px; padding: 60px 0 40px; }
  .hero__subtitle { font-size: var(--text-2xl); }
  .hero__title { font-size: 4rem; }
  .hero__map img { width: 460px; max-width: 90vw; height: auto; }

  /* Holding */
  .holding__container {
    flex-direction: column;
    min-height: auto;
  }

  .holding__image {
    flex: none;
    height: 340px;
    overflow: hidden;
  }

  .holding__image img {
    width: 100%;
    height: 100%;
    position: relative;
    left: 0;
    top: 0;
    object-fit: cover;
    object-position: center top;
  }

  .holding__text {
    padding: 40px 40px;
    text-align: center;
    align-items: center;
  }

  .holding__label { font-size: var(--text-3xl); }
  .holding__title { font-size: 4.5rem; }
  .holding__description { font-size: var(--text-lg); }

  /* Universo */
  .universo__container {
    flex-direction: column;
    align-items: center;
  }

  .universo__left { width: 100%; align-items: center; }
  .universo__label { font-size: var(--text-3xl); }
  .universo__title { font-size: 4.5rem; }

  .universo__right {
    flex: none;
    width: 100%;
    max-width: 600px;
  }

  .universo__laptop { max-width: 560px; }

  .universo__ymas { padding: 16px 40px 0; text-align: center; }
  .universo__ymas-text { font-size: 3.5rem; }

  /* CTA */
  .cta-flota__label { font-size: var(--text-3xl); }
  .cta-flota__title { font-size: 4.5rem; }
  .cta-flota__content {
    margin-bottom: 140px !important;
    padding-bottom: 120px;
  }

  /* Footer */
  .footer__container {
    flex-wrap: wrap;
    gap: 30px;
  }

  .footer__logo {
    flex: 0 0 100%;
    margin-right: 0;
    text-align: center;
  }

  .footer__col {
    flex: 1 1 calc(50% - 30px);
    min-width: 140px;
  }
}

/* ===== MOBILE (600px) ===== */
@media (max-width: 600px) {
  :root {
    --header-height: 76px;
  }

  .header--scrolled { height: 56px; }
  .header__container { padding: 0 16px; }
  .header__logo-icon { height: 40px; }
  .header__logo-text { height: 26px; width: 96px; }
  .header__separator { height: 3px; }

  .btn {
    font-size: var(--text-sm);
    padding: 10px 18px;
    border-radius: var(--radius-md);
  }

  /* Hero */
  .hero {
    height: auto;
    min-height: 360px;
    padding: 48px 16px 32px;
  }

  .hero__content { padding: 0; }
  .hero__subtitle { font-size: var(--text-lg); letter-spacing: 0.2px; }
  .hero__title { font-size: 2.6rem; line-height: 1.05; }
  .hero__map { margin-top: 12px; }
  .hero__map img { width: 100%; max-width: 320px; height: auto; }

  /* Holding */
  .holding__image {
    height: 260px;
  }

  .holding__text {
    padding: 28px 16px 32px;
    text-align: center;
    align-items: center;
  }

  .holding__label { font-size: var(--text-xl); letter-spacing: 0.4px; }
  .holding__title { font-size: 3rem; letter-spacing: 1px; }
  .holding__description {
    font-size: var(--text-base);
    line-height: 1.7;
    max-width: 100%;
  }

  /* Universo */
  .universo { padding: 48px 0 24px; }

  .universo__container {
    padding-left: 16px;
    padding-right: 16px;
    gap: 32px;
  }

  .universo__heading { width: 100%; }
  .universo__label { font-size: var(--text-xl); }
  .universo__title { font-size: 2.8rem; letter-spacing: 1px; }

  .universo__description {
    font-size: var(--text-sm);
    padding: 0 8px;
    margin-bottom: 24px;
  }

  .universo__laptop { max-width: 100%; }

  /* Mundo cards */
  .universo__right {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }

  .mundo-card {
    padding: 12px 12px;
    gap: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    align-items: center;
  }

  .mundo-card__icon {
    width: 52px;
    flex-shrink: 0;
    padding-top: 0;
  }

  .mundo-card__icon img {
    max-height: 52px;
  }

  .mundo-card__title {
    font-size: var(--text-base);
    line-height: 1.3;
    margin-bottom: 4px;
  }

  .mundo-card__list {
    font-size: var(--text-xs);
    line-height: 1.6;
  }

  /* Y más */
  .universo__ymas {
    padding: 8px 16px 0;
    text-align: center;
  }

  .universo__ymas-text { font-size: 2.2rem; }

  /* CTA Flota */
  .cta-flota { padding: 48px 16px 0; }

  .cta-flota__content {
    margin-bottom: 100px !important;
    padding-bottom: 100px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .cta-flota__label { font-size: var(--text-2xl); }
  .cta-flota__title { font-size: 2.8rem; line-height: 1.2; }

  /* Footer */
  .footer { padding: 36px 0 40px; }

  .footer__container {
    padding: 0 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    text-align: left;
  }

  .footer__logo {
    text-align: left;
  }

  .footer__col {
    flex: none;
    width: 100%;
  }

  .footer__heading { margin-bottom: 12px; }

  .footer__links li { margin-bottom: 6px; }

  /* WhatsApp */
  .whatsapp-float { bottom: 16px; right: 16px; }
  .whatsapp-float img { width: 56px; height: 56px; }
  .whatsapp-float__label { font-size: 9px; padding: 4px 8px; }

  /* Reduce parallax offset on mobile to avoid overflow */
  .hm-parallax[data-direction="left"]  { transform: translateX(-60px); }
  .hm-parallax[data-direction="right"] { transform: translateX(60px); }
  .hm-sibling { transform: translateX(60px); }
  .cta-flota__label--parallax { transform: translateX(60px); }
  .cta-flota__title--parallax { transform: translateX(-60px); }

  /* Smaller reveal distances on mobile */
  .reveal--up    { transform: translateY(24px); }
  .reveal--down  { transform: translateY(-24px); }
  .reveal--left  { transform: translateX(-32px); }
  .reveal--right { transform: translateX(32px); }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
