/* ============================================
   GRUPO ARGENTINO — Design System
   ============================================ */

/* --- Google Fonts (Poppins) --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Corporativo */
  --color-primary: #005CB9;
  --color-primary-dark: #004a9a;
  --color-primary-deeper: #00449E;
  --color-primary-light: rgba(0, 92, 185, 0.08);
  --color-gray-dark: #404042;
  --color-gray-medium: #666668;
  --color-gray-light: #f5f5f5;
  --color-white: #ffffff;
  --color-black: #000000;

  /* Áreas de Negocio */
  --color-almacenamiento: #72ABDD;
  --color-transporte: #F39222;
  --color-mhe: #BA2618;
  --color-vitivinicola: #8B1F3F;
  --color-oil-gas: #098275;
  --color-real-estate: #F0C314;
  --color-gestion: #035c80;
  --color-logistica: #7AB648;

  /* Typography */
  --font-primary: 'Poppins', 'Segoe UI', sans-serif;
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  --font-weight-black: 900;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  /* Layout */
  --container-max: 1200px;
  --container-wide: 1400px;
  --border-radius: 16px;
  --border-radius-lg: 24px;
  --border-radius-xl: 32px;

  /* Organic Shapes */
  --radius-leaf: 80px 0 80px 0;
  --radius-leaf-reverse: 0 80px 0 80px;
  --radius-leaf-sm: 40px 0 40px 0;

  /* Brand Angle Cut — 105° from left / 75° from right */
  --angle-cut: 60px;
  --angle-cut-sm: 30px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.16);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-regular);
  color: var(--color-gray-dark);
  background: var(--color-white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul,
ol {
  list-style: none;
}

.container {
  width: 90%;
  max-width: var(--container-max);
  margin: 0 auto;
}

.container--wide {
  max-width: var(--container-wide);
}

/* --- Typography Utilities --- */
.text-primary {
  color: var(--color-primary);
}

.text-white {
  color: var(--color-white);
}

.text-gray {
  color: var(--color-gray-medium);
}

.text-dark {
  color: var(--color-gray-dark);
}

.font-light {
  font-weight: var(--font-weight-light);
}

.font-medium {
  font-weight: var(--font-weight-medium);
}

.font-semibold {
  font-weight: var(--font-weight-semibold);
}

.font-bold {
  font-weight: var(--font-weight-bold);
}

.font-extrabold {
  font-weight: var(--font-weight-extrabold);
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: all var(--transition-medium);
  background: transparent;
}

/* Navbar Isla Flotante cuando el acordeón inmersivo está activo */
.hero-accordion-active .navbar {
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: 1400px;
  background: rgba(0, 92, 185, 0.85);
  /* Azul oscuro corporativo desde el inicio */
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.6rem 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hero-accordion-active .navbar.scrolled {
  top: 10px;
  background: rgba(0, 92, 185, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.hero-accordion-active .navbar.scrolled .navbar__links a,
.hero-accordion-active .navbar.scrolled .navbar__logo img {
  color: var(--color-white);
}

.navbar.scrolled .navbar__logo img {
  filter: none;
}



.navbar.scrolled {
  background: rgba(0, 92, 185, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  padding: 0.6rem 0;
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo img {
  height: 60px;
  width: auto;
  transition: all var(--transition-medium);
}


.navbar.scrolled .navbar__logo img {
  height: 72px;
}

.navbar__links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.navbar__links a {
  font-size: 0.9rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-white);
  letter-spacing: 0.02em;
  position: relative;
  padding: 0.25rem 0;
}

.navbar.scrolled .navbar__links a {
  color: var(--color-white);
}

.navbar__links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.9);
  transition: width var(--transition-fast);
}

.navbar__links a:hover::after {
  width: 100%;
}

.navbar__links a:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* --- Dropdown Áreas de Negocios --- */
.navbar__dropdown {
  position: relative;
}

.navbar__dropdown>a {
  cursor: default;
  padding-bottom: 1.2rem;
  margin-bottom: -1rem;
}

.navbar__dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 260px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  transform: translateX(-50%) translateY(8px);
  z-index: 1001;
}

.navbar__dropdown:hover .navbar__dropdown-menu,
.navbar__dropdown:focus-within .navbar__dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.navbar__dropdown-menu a {
  display: block;
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-gray-dark) !important;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
}

.navbar__dropdown-menu a:hover {
  background: rgba(0, 0, 0, 0.03);
  border-left-color: var(--dropdown-color, var(--color-primary));
  color: var(--dropdown-color, var(--color-primary)) !important;
}

.navbar__dropdown-menu a::after {
  display: none !important;
}

/* Arrow pointing up from dropdown */
.navbar__dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 2px 0 0 0;
}

/* Navbar CTA Button */
.navbar__cta {
  background: #001E46 !important;
  color: #fff !important;
  padding: 0.6rem 1.8rem !important;
  border-radius: 12px;
  font-weight: var(--font-weight-bold) !important;
  transition: all var(--transition-fast) !important;
  text-decoration: none;
  font-size: 0.85rem !important;
}

.navbar__cta:hover {
  background: var(--color-primary) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.navbar__cta::after {
  display: none !important;
}


/* Hamburger */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1003; /* Por encima del panel mobile (1002) para que la X sea clickeable */
  background: none;
  border: none;
  padding: 4px;
}

.navbar__hamburger span {
  display: block;
  width: 28px;
  height: 2.5px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.navbar.scrolled .navbar__hamburger span {
  background: var(--color-white);
}

.navbar__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.navbar__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile nav */
.navbar__mobile {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: var(--color-white);
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.15);
  padding: 6rem 2rem 2rem;
  transition: right var(--transition-medium);
  z-index: 1002; /* Por encima del navbar (1000) y hamburger (1001) */
}

.navbar__mobile.open {
  right: 0;
}

.navbar__mobile > a {
  display: block;
  padding: 1rem 0;
  font-size: 1.1rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-gray-dark);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.navbar__mobile > a:hover {
  color: var(--color-primary);
}

/* Mobile Accordion — Áreas de Negocio */
.mobile-dropdown {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.mobile-dropdown__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  font-size: 1.1rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-gray-dark);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.mobile-dropdown__arrow {
  transition: transform 0.3s ease;
  font-size: 0.8rem;
  color: var(--color-primary);
}

.mobile-dropdown.open .mobile-dropdown__arrow {
  transform: rotate(180deg);
}

.mobile-dropdown__list {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-dropdown.open .mobile-dropdown__list {
  max-height: 500px;
}

.mobile-dropdown__list a {
  display: block;
  padding: 0.65rem 0 0.65rem 1rem;
  font-size: 0.95rem;
  color: var(--color-gray-medium);
  border-left: 3px solid var(--dropdown-color, var(--color-primary));
  margin-bottom: 2px;
  transition: all 0.2s ease;
}

.mobile-dropdown__list a:hover {
  color: var(--color-primary);
  padding-left: 1.4rem;
}

.navbar__overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1001; /* Entre el navbar (1000) y el panel (1002) */
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.navbar__overlay.visible {
  opacity: 1;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: #005CB9;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 50%;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  position: relative;
  z-index: 1;
  padding: 6rem 0 14rem 0;
}

.hero__image-wrapper {
  position: relative;
}

.hero__image-frame {
  position: relative;
  /* Brand angle: corte 75° en esquina inferior-derecha */
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--angle-cut)), calc(100% - var(--angle-cut)) 100%, 0 100%);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.hero__parallax-wrapper {
  width: 100%;
  height: 100%;
}

.hero__image-frame img {
  width: 100%;
  height: clamp(400px, 65vh, 800px);
  max-height: 800px;
  min-height: 400px;
  object-fit: cover;
  display: block;
  animation: heroSlowZoom 18s ease-out forwards;
}

@keyframes heroSlowZoom {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.1);
  }
}

.hero__content {
  padding-left: var(--space-lg);
}

.hero__quote-icon {
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.2);
  font-family: Georgia, serif;
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.hero__headline {
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  font-weight: var(--font-weight-regular);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 2rem;
  background: var(--color-white);
  color: var(--color-primary);
  font-weight: var(--font-weight-semibold);
  font-size: 0.95rem;
  border-radius: 50px;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-md);
}

.hero__cta:hover {
  background: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--color-primary);
}

.hero__cta svg {
  transition: transform var(--transition-fast);
}

.hero__cta:hover svg {
  transform: translateX(4px);
}

/* ============================================
   HERO ALTERNATIVES (OPTION B & C)
   ============================================ */
/* Opción B: Split Dinámico 105° */
.hero--option-b .hero__grid {
  grid-template-columns: 1fr 1fr;
  max-width: 100%;
  padding: 0;
  margin: 0;
  min-height: 100vh;
  gap: 0;
}

.hero--option-b .hero__content {
  padding: 8rem 4rem 8rem 8vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero--option-b .hero__image-wrapper {
  height: 100%;
  width: 100%;
  order: 2;
}

.hero--option-b .hero__image-frame {
  height: 100vh;
  width: 100%;
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0% 100%);
  /* Diagonal 105° simulada */
  border-radius: 0;
  box-shadow: none;
}

.hero--option-b .hero__image-frame img {
  height: 100vh;
  max-height: none;
}

/* Opción C: Card Flotante (Glassmorphism) */
.hero--option-c {
  padding: 0;
}

.hero--option-c .hero__grid {
  grid-template-columns: 1fr;
  padding: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero--option-c .hero__image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero--option-c .hero__image-frame {
  height: 100vh;
  clip-path: none;
  box-shadow: none;
}

.hero--option-c .hero__image-frame img {
  height: 100vh;
  max-height: none;
}

.hero--option-c .hero__content {
  position: relative;
  z-index: 2;
  background: rgba(0, 92, 185, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 4rem;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--angle-cut)), calc(100% - var(--angle-cut)) 100%, 0 100%);
  max-width: 800px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 4rem;
}

/* Opción D: Acordeón Inmersivo */
.hero__accordion {
  display: none;
}

.hero--option-d {
  padding: 0;
  display: block;
  min-height: 0;
  background: #000;
}

.hero--option-d .hero__grid,
.hero--option-d .hero__bg-dots,
.hero--option-d .hero__bg-shape {
  display: none !important;
}

.hero--option-d .hero__accordion {
  display: flex;
  width: 100%;
  height: min(100vh, 1080px);
  margin: 0;
  padding: 0;
  overflow: hidden;
  position: relative;
  background: #000;
}

.accordion-panel {
  flex: 1;
  background-size: cover;
  /* Centrado perfecto para las nuevas imágenes hero */
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
  transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: clamp(5rem, 12vh, 10rem);
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.accordion-panel:last-child {
  border-right: none;
}

.accordion-panel__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 92, 185, 0.65);
  /* Filtro azul GA */
  transition: background 0.6s ease;
  z-index: 1;
}

.accordion-panel:hover {
  flex: 3;
}

.accordion-panel:hover .accordion-panel__overlay {
  background: rgba(0, 0, 0, 0.15);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 60%);
}

.accordion-panel__content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.accordion-logo {
  /* Columna colapsada: logo rotado -90° para que quede en vertical */
  max-height: 60px;
  width: auto;
  object-fit: contain;
  transform: rotate(-90deg);
  transform-origin: center;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  opacity: 0.85;
}

.accordion-panel:hover .accordion-logo {
  /* Columna expandida: logo horizontal, más grande */
  transform: rotate(0deg);
  height: auto;
  width: 90%;
  max-width: 320px;
  opacity: 1;
}

/* Responsive adjustments for new options */
@media screen and (max-width: 1024px) {
  .hero--option-b .hero__grid {
    grid-template-columns: 1fr;
    padding-top: 6rem;
  }

  .hero--option-b .hero__image-wrapper {
    order: 1;
    height: 50vh;
  }

  .hero--option-b .hero__image-frame {
    height: 100%;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--angle-cut)), calc(100% - var(--angle-cut)) 100%, 0 100%);
  }

  .hero--option-b .hero__image-frame img {
    height: 100%;
  }

  .hero--option-b .hero__content {
    order: 2;
    padding: 4rem 5vw;
  }

  .hero--option-c .hero__content {
    margin: 6rem 5vw 0 5vw;
    padding: 3rem 2rem;
  }

  .hero-accordion-active .navbar {
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 92, 185, 0.98);
    padding: 0.8rem 5%;
  }

  .hero-accordion-active .navbar.scrolled {
    top: 0;
    border-radius: 0;
  }
  .hero--option-d .hero__accordion {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    padding-top: 85px;
  }

  .hero--option-d .accordion-panel {
    min-height: 100px;
    padding-bottom: 0;
    align-items: center;
    justify-content: flex-start;
    padding-left: 1.5rem;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .hero--option-d .accordion-panel__content {
    flex-direction: row;
    align-items: center;
    text-align: left;
    padding: 0;
  }

  .hero--option-d .accordion-logo {
    transform: none;
    width: 120px;
    height: auto;
    margin-top: 0;
  }

  .hero--option-d .accordion-panel:hover {
    flex: auto;
    min-height: 200px;
    padding-bottom: 2rem;
    align-items: flex-end;
  }

  .hero--option-d .accordion-panel:hover .accordion-panel__content {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero--option-d .accordion-panel:hover .accordion-logo {
    width: 160px;
    margin-top: 1rem;
  }

  /* Mobile hero images — 4:1 aspect ratio optimized for horizontal strips */
  .hero--option-d .accordion-panel:nth-child(1) {
    background-image: url('../img/celu/almacenamiento-celu.webp') !important;
  }
  .hero--option-d .accordion-panel:nth-child(2) {
    background-image: url('../img/celu/transporte-celu.webp') !important;
  }
  .hero--option-d .accordion-panel:nth-child(3) {
    background-image: url('../img/celu/MHE-celu.webp') !important;
  }
  .hero--option-d .accordion-panel:nth-child(4) {
    background-image: url('../img/celu/oil-petroleo-celu.webp') !important;
  }
  .hero--option-d .accordion-panel:nth-child(5) {
    background-image: url('../img/celu/vitivinicola-celu.webp') !important;
  }
  .hero--option-d .accordion-panel:nth-child(6) {
    background-image: url('../img/celu/gestion-Empresarial-celu.webp') !important;
  }
  .hero--option-d .accordion-panel:nth-child(7) {
    background-image: url('../img/celu/real-estate-celu.webp') !important;
  }
}

/* ============================================
   SLOGAN BLOCK — Full-width banner
   ============================================ */
.slogan {
  position: relative;
  z-index: 10;
  width: 100%;
  overflow: visible;
  /* Permitir que la imagen sobresalga */
  background: var(--color-gray-dark);
  /* Gris sólido de marca #404042 */
}

.slogan__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: clamp(240px, 22vw, 400px);
  /* ~320px en un monitor de 19" (aprox 1366-1440px de ancho) */
}

.slogan__text-side {
  background: var(--color-gray-dark);
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem clamp(2rem, 4vw, 5rem) 2rem clamp(3rem, 8vw, 12rem);
}

.slogan__quote-icon {
  width: 32px;
  height: 32px;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 0.5rem;
  flex-shrink: 0;
}

.slogan__headline {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: var(--font-weight-semibold);
  color: var(--color-white);
  line-height: 1.4;
  margin-bottom: 1rem;
  max-width: 700px;
}

.slogan__text-side p,
.slogan__desc {
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  max-width: 700px;
  font-weight: var(--font-weight-light);
}

.slogan__image-side {
  position: relative;
  overflow: visible;
  /* Permitir desborde */
  background: transparent;
}

.slogan__image-side img {
  position: absolute;
  top: 5px;
  /* Comienza 5px debajo de la línea superior */
  right: 0;
  /* Pegada al borde derecho */
  height: 145%;
  /* Mucho más grande para que sobresalga más hacia abajo */
  width: auto;
  object-fit: contain;
  display: block;
}

/* ============================================
   NOSOTROS / ABOUT
   ============================================ */
/* ============================================
   MOBILE BRIDGE IMAGE — between slogan and about
   ============================================ */
.mobile-bridge-img {
  display: none; /* Hidden on desktop */
}

@media (max-width: 991px) {
  .slogan {
    padding-bottom: 180px;
  }

  .mobile-bridge-img {
    display: block;
    position: relative;
    z-index: 11;
    margin-top: -80px;
    margin-bottom: -80px;
  }

  .mobile-bridge-img img {
    display: block;
    width: 55%;
    height: auto;
    margin: 0 auto; /* Centrado real */
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }
}

.about {
  padding: var(--space-3xl) 0;
  padding-top: calc(var(--space-3xl) + 60px);
  background: var(--color-white);
}

.about__header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.about__label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-xs);
}

.about__title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: var(--font-weight-bold);
  color: var(--color-gray-dark);
  line-height: 1.2;
}

.about__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.about__text p {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--color-gray-medium);
  margin-bottom: var(--space-md);
}

.about__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.stat-card {
  background: var(--color-white);
  border-radius: var(--border-radius);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  transition: all var(--transition-medium);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 92, 185, 0.12);
  border-color: rgba(0, 92, 185, 0.15);
}

.stat-card:hover .stat-card__number {
  transform: scale(1.1);
}

.stat-card__number {
  font-size: 2.5rem;
  font-weight: var(--font-weight-extrabold);
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
  transition: transform var(--transition-medium);
}

.stat-card__number--infinity {
  font-size: 3.5rem;
  line-height: 0.8;
}


.stat-card__label {
  font-size: 0.85rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-gray-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================
   ÁREAS DE NEGOCIO
   ============================================ */
.areas {
  padding: var(--space-3xl) 0;
  background: var(--color-gray-light);
}

/* --- New image-card grid: 4 top, 3 bottom centered --- */
.areas__image-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-lg);
}

.area-img-card {
  flex: 0 1 calc(25% - var(--space-lg));
  display: block;
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium), filter var(--transition-medium);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.area-img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-medium);
}

.area-img-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 16px 40px rgba(0, 92, 185, 0.18);
  filter: brightness(1.04);
}

.area-img-card:hover img {
  transform: scale(1.04);
}

.areas__header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

/* En subpáginas: alinear header y texto intro a la izquierda */
.area-intro .areas__header {
  text-align: left;
}

.area-services .areas__header {
  text-align: center;
}

.areas__label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-xs);
}

.areas__title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: var(--font-weight-bold);
  color: var(--color-gray-dark);
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}

.areas__subtitle {
  font-size: 1.05rem;
  color: var(--color-gray-medium);
  max-width: 600px;
  margin: 0 auto;
}

/* --- Áreas de Negocio: Diseño de Botones Limpios (4+3) --- */
.areas__grid {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 2rem !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
}

/* Selector ultra-específico para eliminar cualquier fondo o padding residual */
section.areas .areas__grid a.area-card,
.area-card {
  flex: 0 0 calc(25% - 2rem) !important;
  min-width: 250px !important;
  max-width: 280px !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer !important;
  transition: transform var(--transition-medium), filter var(--transition-medium) !important;
  display: block !important;
  text-decoration: none !important;
  overflow: visible !important;
}

/* Responsividad de la grilla */
@media (max-width: 1100px) {
  section.areas .areas__grid a.area-card {
    flex: 0 0 calc(33.33% - 2rem) !important;
  }
}

@media (max-width: 768px) {
  section.areas .areas__grid a.area-card {
    flex: 0 0 calc(50% - 2rem) !important;
    padding: 0 !important;
  }
}

@media (max-width: 480px) {
  section.areas .areas__grid a.area-card {
    flex: 0 0 100% !important;
  }
}

.area-card:hover {
  transform: translateY(-10px) scale(1.05) !important;
  filter: drop-shadow(0 15px 30px rgba(0, 92, 185, 0.25)) !important;
}

.area-card img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  border-radius: 20px !important;
  background: transparent !important;
}

.area-card::before,
.area-card::after {
  display: none !important;
  content: none !important;
}

.area-card__arrow {
  font-size: 1.2rem;
  color: var(--area-color, var(--color-primary));
  transition: transform var(--transition-fast);
  opacity: 0;
}

.area-card:hover .area-card__arrow {
  opacity: 1;
  transform: translateX(4px);
}

/* ============================================
   ¿POR QUÉ GA?
   ============================================ */
.why {
  padding: var(--space-3xl) 0;
  background: var(--color-white);
}

.why__header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.why__label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-xs);
}

.why__title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: var(--font-weight-bold);
  color: var(--color-gray-dark);
  line-height: 1.2;
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.why-card {
  text-align: center;
  padding: var(--space-lg);
}

.why-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  font-size: 1.5rem;
}

.why-card__title {
  font-size: 1.15rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-gray-dark);
  margin-bottom: var(--space-xs);
}

.why-card__text {
  font-size: 0.95rem;
  color: var(--color-gray-medium);
  line-height: 1.7;
}

/* ============================================
   CONTACTO
   ============================================ */
.contact {
  padding: var(--space-3xl) 0;
  background: var(--color-gray-light);
}

.contact__header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.contact__label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-xs);
}

.contact__title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: var(--font-weight-bold);
  color: var(--color-gray-dark);
  line-height: 1.2;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.contact__item-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contact__item-text h4 {
  font-size: 0.95rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-gray-dark);
  margin-bottom: 0.15rem;
}

.contact__item-text p {
  font-size: 0.9rem;
  color: var(--color-gray-medium);
}

.contact__form {
  background: var(--color-white);
  border-radius: var(--border-radius);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: var(--space-sm);
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-gray-dark);
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  color: var(--color-gray-dark);
  transition: border-color var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  width: 100%;
  padding: 0.9rem;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 8px;
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.form-submit:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-gray-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-xl) 0 var(--space-md);
  position: relative;
  margin-top: -1px;
}

/* Brand angle: separador diagonal 105° en la parte superior del footer */
.footer::before {
  display: none;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer__brand img {
  height: 50px;
  margin-bottom: var(--space-sm);
}

.footer__brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer__col h4 {
  color: var(--color-white);
  font-size: 0.9rem;
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

.footer__col a {
  display: block;
  font-size: 0.9rem;
  padding: 0.3rem 0;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition-fast);
}

.footer__col a:hover {
  color: var(--color-white);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-md);
  text-align: center;
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer__dev {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer__dev a {
  display: flex;
  align-items: center;
}

.footer__dev-logo {
  height: 60px;
  width: auto;
  opacity: 0.6;
  transition: opacity var(--transition-fast);
}

.footer__dev a:hover .footer__dev-logo {
  opacity: 1;
}

/* ============================================
   AREA PAGE — Template
   ============================================ */
.area-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.area-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.area-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.area-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(0, 0, 0, 0.65) 0%,
      rgba(0, 0, 0, 0.3) 50%,
      transparent 100%);
}

.area-hero__content {
  position: relative;
  z-index: 1;
  padding: 8rem 0 4rem;
}

.area-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border-radius: 50px;
  padding: 0.5rem 1.25rem;
  margin-bottom: var(--space-md);
}

.area-hero__badge img {
  height: 28px;
}

.area-hero__badge span {
  font-size: 0.8rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.area-hero__title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: var(--space-sm);
}

.area-hero__tagline {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 500px;
  line-height: 1.6;
}

/* Area Services */
.area-services {
  padding: var(--space-3xl) 0;
}

.area-services__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.service-block h3 {
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-gray-dark);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-xs);
  border-bottom: 3px solid var(--area-color, var(--color-primary));
  /* Punto 8: Alinear subrayados forzando altura mínima */
  min-height: 4.5rem;
  display: flex;
  align-items: flex-end;
}

.service-block ul {
  padding-left: 1.25rem;
}

.service-block ul li {
  position: relative;
  padding: 0.5rem 0;
  padding-left: 1rem;
  font-size: 1rem;
  color: var(--color-gray-medium);
  line-height: 1.6;
}

.service-block ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--area-color, var(--color-primary));
}

/* Area Why */
.area-why {
  padding: var(--space-3xl) 0;
  background: var(--color-gray-light);
}

.area-why__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.area-why__content h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-gray-dark);
  margin-bottom: var(--space-md);
}

.area-why__content p {
  font-size: 1.05rem;
  color: var(--color-gray-medium);
  line-height: 1.8;
}

.area-experience {
  padding: var(--space-xl);
  background: var(--color-gray-dark);
  border-radius: var(--border-radius-lg);
  position: relative;
  overflow: hidden;
}

.area-experience::before {
  content: '\201C\201D';
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 5rem;
  color: rgba(255, 255, 255, 0.08);
  font-family: Georgia, serif;
  line-height: 1;
}

.area-experience h3 {
  font-size: 1.8rem;
  font-weight: var(--font-weight-extrabold);
  color: var(--color-white);
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.area-experience p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  line-height: 1.8;
}

/* Punto 5/7: Textos legibles dentro de caja oscura */
.area-experience__cases li {
  color: rgba(0, 0, 0, 0.8) !important;
  background: rgba(0, 0, 0, 0.03);
  border-left-color: var(--area-color, rgba(0, 0, 0, 0.3));
}

.area-experience__cases li:hover {
  background: rgba(0, 0, 0, 0.06);
}

.area-experience__cases li strong {
  color: var(--color-gray-dark) !important;
}

/* Punto 4: Frases gancho destacadas */
.area-experience__highlight {
  margin-top: var(--space-lg);
  font-size: 1.35rem;
  font-weight: var(--font-weight-bold);
  font-style: italic;
  text-align: center;
  color: #fff;
  letter-spacing: 0.01em;
  line-height: 1.5;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* Area back link */
.area-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-primary);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  margin: var(--space-md) 0;
}

.area-back:hover {
  gap: 0.75rem;
}

/* ============================================
   REVEAL ANIMATIONS (IntersectionObserver)
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Legacy alias kept for sub-pages */
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

.reveal-delay-5 {
  transition-delay: 0.5s;
}

.reveal-delay-6 {
  transition-delay: 0.6s;
}

.reveal-delay-7 {
  transition-delay: 0.7s;
}

.reveal-delay-8 {
  transition-delay: 0.8s;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {

  /* Reduce brand angle cuts for tablet */
  :root {
    --angle-cut: 40px;
    --angle-cut-sm: 20px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-lg);
  }

  .hero__content {
    padding-left: 0;
    order: -1;
  }

  .hero__image-frame img {
    height: 350px;
  }

  .areas__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .areas__image-grid .area-img-card {
    flex: 0 1 calc(50% - var(--space-lg));
  }

  .why__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .contact__grid {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .slogan__grid {
    grid-template-columns: 1fr;
  }

  .slogan__text-side,
  .slogan__image-side {
    padding: var(--space-xl);
  }

  .slogan__image-side {
    padding: 0;
  }

  .about__content {
    grid-template-columns: 1fr;
  }

  .area-services__grid {
    grid-template-columns: 1fr;
  }

  .area-why__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {

  /* Reduce brand angle cuts for mobile */
  :root {
    --angle-cut: 25px;
    --angle-cut-sm: 15px;
  }

  .footer::before {
    height: 25px;
    top: -25px;
  }

  .navbar__links {
    display: none;
  }

  .navbar__hamburger {
    display: flex;
  }

  .navbar__mobile {
    display: block;
  }

  .hero {
    min-height: auto;
    padding: 6rem 0 3rem;
  }

  .hero__image-frame img {
    height: 260px;
  }

  .areas__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
  }

  .areas__image-grid .area-img-card {
    flex: 0 1 calc(50% - var(--space-sm));
  }

  .area-card {
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }


  .about__stats {
    grid-template-columns: 1fr 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .slogan__words span {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {

  /* Minimal angle cuts on small phones */
  :root {
    --angle-cut: 20px;
    --angle-cut-sm: 12px;
  }

  .footer::before {
    height: 20px;
    top: -20px;
  }

  .areas__grid {
    grid-template-columns: 1fr;
  }

  .areas__image-grid .area-img-card {
    flex: 0 1 100%;
  }

  .hero__stats-inner {
    flex-direction: column;
    gap: var(--space-md);
  }

  .hero__stat-sep {
    display: none;
  }

  .hero__big-title .hero__title-line span {
    font-size: clamp(2rem, 12vw, 3rem);
  }
}

/* ============================================
   HERO — NEW DESIGN
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--color-primary);
  overflow: hidden;
  padding: 0;
}

/* Subtle dot pattern overlay */
.hero__bg-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  z-index: 0;
  pointer-events: none;
}

/* Darker geometric parallelogram shape on right */
.hero__bg-shape {
  position: absolute;
  top: 0;
  right: -3%;
  width: 48%;
  height: 100%;
  background: var(--color-primary-deeper);
  clip-path: polygon(26% 0, 100% 0, 100% 100%, 0% 100%);
  z-index: 0;
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  position: relative;
  z-index: 1;
  padding: 7rem 0 12rem;
  /* Massive bottom padding to accommodate slogan overlap */
  flex: 1;
}

/* --- Big title animation --- */
.hero__big-title {
  margin-bottom: var(--space-lg);
}

.hero__title-line {
  overflow: hidden;
  line-height: 1.05;
}

.hero__title-line span {
  display: block;
  font-size: clamp(2.6rem, 5vw, 5rem);
  font-weight: 900;
  color: var(--color-white);
  letter-spacing: -0.01em;
  animation: titleReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero__title-line:nth-child(2) span {
  animation-delay: 0.15s;
}

.hero__title-line:nth-child(3) span {
  animation-delay: 0.3s;
}

@keyframes titleReveal {
  from {
    transform: translateY(110%);
  }

  to {
    transform: translateY(0);
  }
}

.hero__sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
  max-width: 460px;
  animation: heroFadeUp 0.9s 0.5s both;
}

.hero__cta {
  animation: heroFadeUp 0.9s 0.65s both;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Image side decorative blocks (brochure style) --- */
.hero__image-wrapper {
  position: relative;
}

.hero__deco-a,
.hero__deco-b {
  display: none;
}

/* ============================================
   WHY SECTION — REDESIGNED
   ============================================ */
.why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.why-card {
  background: var(--color-white);
  border-radius: var(--border-radius);
  padding: var(--space-lg);
  position: relative;
  overflow: hidden;
  border-left: 4px solid var(--color-primary);
  text-align: left;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  box-shadow: var(--shadow-sm);
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* Large watermark number */
.why-card__bg-num {
  position: absolute;
  bottom: -20px;
  right: -4px;
  font-size: 7rem;
  font-weight: 900;
  color: rgba(0, 92, 185, 0.05);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  font-feature-settings: 'tnum';
}

/* Circle icon */
.why-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  flex-shrink: 0;
  font-size: 0;
  /* hide any stray emoji text */
}

.why-card__icon svg {
  width: 28px;
  height: 28px;
  color: #fff;
}


.why-card__title {
  font-size: 1.1rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-gray-dark);
  margin-bottom: var(--space-xs);
}

.why-card__text {
  font-size: 0.95rem;
  color: var(--color-gray-medium);
  line-height: 1.7;
  margin: 0;
}

/* ============================================
   AREAS — dot pattern background
   ============================================ */
.areas {
  background-color: var(--color-gray-light);
  background-image: radial-gradient(rgba(0, 92, 185, 0.055) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Se eliminaron estilos obsoletos de .area-card::after para evitar conflictos con el nuevo diseño de botones limpios */


/* ============================================
   CONTACT ICON — SVG alignment
   ============================================ */
.contact__item-icon {
  font-size: 0;
  /* suppress any legacy emoji */
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(0, 92, 185, 0.08);
  border-radius: 12px;
  flex-shrink: 0;
}

.contact__item-icon svg {
  width: 22px;
  height: 22px;
  color: var(--color-primary);
}


/* ============================================
   HERO RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 8rem 0 4rem;
  }

  .hero__big-title {
    text-align: center;
  }

  .hero__content {
    order: -1;
    padding-left: 0;
  }

  .hero__sub {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__bg-shape {
    width: 60%;
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
  }

  .hero__deco-a,
  .hero__deco-b {
    display: none;
  }

  .why__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
}

@media (max-width: 640px) {
  .why__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero__title-line span {
    font-size: clamp(2.2rem, 9vw, 3rem);
  }

  .hero__stat-num {
    font-size: 2rem;
  }
}

/* ============================================
   AREA SUBPAGES — Intro Section
   ============================================ */
.area-intro {
  padding: var(--space-xl) 0 var(--space-lg);
}

.area-intro__text {
  max-width: 800px;
}

.area-intro__text p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-gray-medium);
  margin-bottom: 1rem;
}

.area-intro__text p:last-child {
  margin-bottom: 0;
}

/* Area Services — 3 Column Grid */
.area-services__grid--3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

@media (max-width: 1024px) {
  .area-services__grid--3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .area-services__grid--3 {
    grid-template-columns: 1fr;
  }
}

/* Area Experience — Cases List */
.area-experience__cases {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.area-experience__cases li {
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.02);
  border-left: 3px solid var(--area-color, var(--color-primary));
  border-radius: 0 8px 8px 0;
  font-size: 0.92rem;
  line-height: 1.6;
  transition: background var(--transition-fast);
}

.area-experience__cases li:hover {
  background: rgba(0, 0, 0, 0.04);
}

.area-experience__cases li strong {
  color: var(--color-gray-dark);
  font-weight: var(--font-weight-semibold);
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9998;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: whatsappPulse 2s ease-in-out infinite;
  /* Oculto por defecto, aparece al scrollear */
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  pointer-events: none;
}

.whatsapp-float.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
}

@keyframes whatsappPulse {

  0%,
  background-image: radial-gradient(rgba(0, 92, 185, 0.055) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Se eliminaron estilos obsoletos de .area-card::after para evitar conflictos con el nuevo diseño de botones limpios */


/* ============================================
   CONTACT ICON — SVG alignment
   ============================================ */
.contact__item-icon {
  font-size: 0;
  /* suppress any legacy emoji */
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(0, 92, 185, 0.08);
  border-radius: 12px;
  flex-shrink: 0;
}

.contact__item-icon svg {
  width: 22px;
  height: 22px;
  color: var(--color-primary);
}


/* ============================================
   HERO RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 8rem 0 4rem;
  }

  .hero__big-title {
    text-align: center;
  }

  .hero__content {
    order: -1;
    padding-left: 0;
  }

  .hero__sub {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__bg-shape {
    width: 60%;
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
  }

  .hero__deco-a,
  .hero__deco-b {
    display: none;
  }

  .why__grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

@media (max-width: 768px) {
  .hero__title-line span {
    font-size: clamp(2.2rem, 9vw, 3rem);
  }

  .hero__stat-num {
    font-size: 2rem;
  }
}

/* ============================================
   AREA SUBPAGES — Intro Section
   ============================================ */
.area-intro {
  padding: var(--space-xl) 0 var(--space-lg);
}

.area-intro__text {
  max-width: 800px;
}

.area-intro__text p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-gray-medium);
  margin-bottom: 1rem;
}

.area-intro__text p:last-child {
  margin-bottom: 0;
}

/* Area Services — 3 Column Grid */
.area-services__grid--3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

@media (max-width: 1024px) {
  .area-services__grid--3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .area-services__grid--3 {
    grid-template-columns: 1fr;
  }
}

/* Area Experience — Cases List */
.area-experience__cases {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.area-experience__cases li {
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.02);
  border-left: 3px solid var(--area-color, var(--color-primary));
  border-radius: 0 8px 8px 0;
  font-size: 0.92rem;
  line-height: 1.6;
  transition: background var(--transition-fast);
}

.area-experience__cases li:hover {
  background: rgba(0, 0, 0, 0.04);
}

.area-experience__cases li strong {
  color: var(--color-gray-dark);
  font-weight: var(--font-weight-semibold);
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9998;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: whatsappPulse 2s ease-in-out infinite;
  /* Oculto por defecto, aparece al scrollear */
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  pointer-events: none;
}

.whatsapp-float.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
}

@keyframes whatsappPulse {

  0%,
  100% {
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  }

  50% {
    box-shadow: 0 4px 24px rgba(37, 211, 102, 0.55);
  }
}

/* Split-Screen Scrollytelling (Areas de Negocios) */
.split-layout {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    color: var(--color-gray-dark);
    position: relative;
}

@media(min-width: 992px) {
    .split-layout {
        flex-direction: row;
    }
}

.split-content {
    flex: 1;
    padding: 120px 8% var(--space-2xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
    z-index: 2;
}

.split-visual {
    flex: 1;
    position: relative;
    background: #fdfdfd;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0; /* Eliminado padding para que la imagen llegue a los bordes */
}

@media(min-width: 992px) {
    .split-visual {
        position: sticky;
        top: 0;
        height: 100vh;
        clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
    }
}

/* Mobile Reveal / Drawer Effect */
@media(max-width: 991px) {
    .split-visual {
        order: -1; /* Image goes above content */
        position: sticky;
        top: 0;
        height: 55vh;
        z-index: 1;
        overflow: hidden;
    }

    .split-visual::after {
        /* Gradient fade at bottom of image for smooth transition */
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 80px;
        background: linear-gradient(to top, rgba(255,255,255,0.6) 0%, transparent 100%);
        z-index: 2;
        pointer-events: none;
    }

    .split-content {
        position: relative;
        z-index: 3;
        margin-top: -30px; /* Overlap the image slightly */
        background: rgba(255, 255, 255, 0.65);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: 28px 28px 0 0;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
        padding: 2.5rem 6% var(--space-xl);
        gap: var(--space-lg);
    }

    .split-section {
        min-height: auto;
    }

    .split-section:first-child {
        padding-top: 0.5rem;
    }

    .split-section h2 {
        font-size: clamp(1.5rem, 6vw, 2rem);
        padding: 0.5rem 0;
    }

    .split-section p {
        font-size: 1rem;
    }

    .split-service-block {
        padding: 1.5rem;
    }

    .split-service-block h3 {
        font-size: 1.2rem;
    }
}

.split-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    border-radius: 0;
    box-shadow: none;
    border: none;
}

.split-section {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.split-section:first-child {
    min-height: auto;
    justify-content: flex-start;
    padding-top: 1rem;
}

.split-section h2 {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    color: var(--area-color, #72ABDD);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    padding: 1rem 0;
}

.split-section h3 {
    color: var(--color-gray-dark) !important;
}

.split-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-gray-dark);
    margin-bottom: 1rem;
    text-align: justify;
}

.split-section li {
    text-align: justify;
}

.split-service-block {
    background: rgba(0,0,0,0.03);
    border-left: 4px solid var(--area-color, #72ABDD);
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-radius: 0 12px 12px 0;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, background 0.3s ease;
}

.split-service-block:hover {
    background: rgba(0,0,0,0.06);
    transform: translateX(10px);
}

.split-service-block h3 {
    font-size: 1.4rem;
    color: var(--color-gray-dark) !important;
    margin-bottom: 1rem;
}

.split-service-block ul {
    list-style: none;
    padding: 0;
}

.split-service-block ul li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.8rem;
    color: rgba(0,0,0,0.75);
    font-size: 1.05rem;
}

.split-service-block ul li::before {
    content: "•";
    color: var(--area-color, #72ABDD);
    position: absolute;
    left: 0;
    font-size: 1.5rem;
    line-height: 1;
    top: -4px;
}

/* ============================================
   Frase Gancho (Highlight Quote) en Áreas
   ============================================ */
.split-section p.area-highlight-quote {
    font-size: clamp(1.4rem, 2vw, 1.8rem);
    color: var(--area-color, var(--color-primary));
    font-weight: 700;
    text-align: center;
    margin: 4rem 0 2rem 0;
    padding: 3rem 2rem;
    background: rgba(0,0,0,0.02);
    border-top: 4px solid var(--area-color, #72ABDD);
    border-bottom: 4px solid var(--area-color, #72ABDD);
    border-radius: 12px;
    position: relative;
    font-style: italic;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.area-highlight-quote::before, .area-highlight-quote::after {
    content: '\201D';
    font-family: serif;
    font-size: 6rem;
    color: var(--area-color, #72ABDD);
    position: absolute;
    opacity: 0.15;
    line-height: 1;
}

.area-highlight-quote::before {
    content: '\201C';
    top: -10px;
    left: 20px;
}

.area-highlight-quote::after {
    bottom: -40px;
    right: 20px;
}

/* ============================================
   NUEVAS FRONTERAS — Banner CTA
   ============================================ */
.fronteras {
  padding: 4.5rem 0;
  background: linear-gradient(135deg, #005CB9 0%, #003d7a 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.fronteras::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
  pointer-events: none;
}

.fronteras__label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
}

.fronteras__title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.25rem;
}

.fronteras__text {
  max-width: 720px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
}

.fronteras__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 50px;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  background: transparent;
}

.fronteras__cta:hover {
  background: #fff;
  color: #005CB9;
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.fronteras__cta svg {
  transition: transform 0.3s ease;
}

.fronteras__cta:hover svg {
  transform: translateX(4px);
  stroke: #005CB9;
}

/* Areas footer text color fix */
.areas__footer {
  text-align: center;
  margin-top: 3rem;
  max-width: 800px;
  margin-inline: auto;
}

.areas__footer p {
  font-size: 1.15rem;
  color: var(--color-gray-medium);
  line-height: 1.6;
}

.areas__footer strong {
  color: var(--color-gray-dark);
  font-weight: 600;
}

@media (max-width: 768px) {
  .fronteras {
    padding: 3.5rem 1.5rem;
  }
}


/* ============================================
   CARRUSEL DE ÁREAS Y LIGHTBOX
   ============================================ */

/* Contenedor del Carrusel */
.area-carousel {
  position: relative;
  width: 100%;
  margin-bottom: var(--space-2xl); /* Espacio antes del gancho */
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  background: #fdfdfd;
}

/* Pista de Imágenes */
.area-carousel__track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

/* Imagen Individual */
.area-carousel__img {
  width: 100%;
  flex-shrink: 0;
  height: 400px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.area-carousel__img:hover {
  transform: scale(1.02);
}

/* Botones de Navegación */
.area-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--color-gray-dark);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, color 0.3s ease;
}

.area-carousel__btn:hover {
  background: var(--area-color, var(--color-primary));
  color: white;
}

.area-carousel__btn--prev { left: 15px; }
.area-carousel__btn--next { right: 15px; }

@media (max-width: 768px) {
  .area-carousel__img { height: 250px; }
  .area-carousel__btn { width: 36px; height: 36px; font-size: 1rem; }
}

/* --- LIGHTBOX (PANTALLA COMPLETA) --- */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  display: flex;
  justify-content: center;
}

.lightbox__img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 50px rgba(0,0,0,0.5);
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  cursor: pointer;
  z-index: 10000;
  transition: color 0.3s ease;
}

.lightbox__close:hover {
  color: var(--color-primary);
}

.lightbox__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 15px;
  cursor: pointer;
  transition: background 0.3s ease;
  z-index: 10000;
  border-radius: 8px;
}

.lightbox__btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox__btn--prev { left: 20px; }
.lightbox__btn--next { right: 20px; }

@media (max-width: 768px) {
  .lightbox__btn { font-size: 1.5rem; padding: 10px; }
  .lightbox__btn--prev { left: 10px; }
  .lightbox__btn--next { right: 10px; }
  .lightbox__close { top: 10px; right: 20px; }
}

/* ============================================
   CATÁLOGO HELI - GRID Y COMPONENTES
   ============================================ */

/* Filtros */
.catalog-filters {
  margin-bottom: 2rem;
}

.filter-btn {
  background: white;
  border: 1px solid var(--color-gray-light);
  padding: 8px 16px;
  border-radius: 20px;
  color: var(--color-gray-medium);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.filter-btn.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

/* Grilla */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  width: 100%;
}

/* Tarjeta de Producto */
.catalog-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.catalog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.catalog-card__img-container {
  width: 100%;
  height: 200px;
  background: #fff;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #eee;
}

.catalog-card__img-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.catalog-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.catalog-card__badge {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.badge-diesel { background: #eee; color: #333; }
.badge-electric { background: #e3f2fd; color: #1565c0; }
.badge-gas { background: #fdf3e3; color: #e65100; }

.catalog-card__title {
  font-size: 1.1rem;
  color: var(--color-gray-dark);
  margin-bottom: 10px;
  line-height: 1.3;
}

.catalog-card__excerpt {
  font-size: 0.9rem;
  color: var(--color-gray-medium);
  margin-bottom: 20px;
  flex-grow: 1;
}

.catalog-card__btn {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  padding: 8px;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
  width: 100%;
  cursor: pointer;
}

.catalog-card:hover .catalog-card__btn {
  background: var(--color-primary);
  color: white;
}

/* Modal del Catálogo */
.heli-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.heli-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.heli-modal__content {
  background: white;
  width: 90%;
  max-width: 900px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  transform: translateY(20px);
  transition: transform 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.heli-modal.active .heli-modal__content {
  transform: translateY(0);
}

.heli-modal__close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--color-gray-medium);
  cursor: pointer;
  z-index: 2;
  transition: color 0.3s;
}

.heli-modal__close:hover {
  color: var(--color-primary);
}

.heli-modal__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.heli-modal__image-col {
  background: #f9f9f9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.heli-modal__image-col img {
  max-width: 100%;
  height: auto;
}

.heli-modal__info-col {
  padding: 3rem 2rem 2rem 2rem;
  display: flex;
  flex-direction: column;
}

.heli-modal__info-col h2 {
  font-size: 1.5rem;
  color: var(--color-gray-dark);
  margin-top: 10px;
  margin-bottom: 15px;
}

.heli-modal__info-col p {
  color: var(--color-gray-medium);
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.heli-modal__specs ul {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.heli-modal__specs li {
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: #444;
  display: flex;
  align-items: flex-start;
}

.heli-modal__btn {
  background: #25D366;
  color: white;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 700;
  text-align: center;
  margin-top: auto;
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.heli-modal__btn:hover {
  background: #128C7E;
}

@media (max-width: 768px) {
  .heli-modal__grid {
      grid-template-columns: 1fr;
  }
  .heli-modal__image-col {
      padding: 0;
      border-bottom: 1px solid #eee;
  }
  .heli-modal__info-col {
      padding: 1.5rem;
  }
}

/* CAROUSEL HELI */
.heli-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.heli-carousel__viewport {
  display: flex;
  transition: transform 0.3s ease-in-out;
  width: 100%;
}

.heli-carousel__viewport img {
  width: 100%;
  flex-shrink: 0;
  object-fit: contain;
  max-height: 400px;
}

.heli-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.heli-carousel__btn:hover {
  background: var(--color-primary);
}

.heli-carousel__btn--prev { left: 10px; }
.heli-carousel__btn--next { right: 10px; }

.heli-carousel__dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.heli-carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0,0,0,0.3);
  cursor: pointer;
  transition: background 0.3s;
}

.heli-carousel__dot.active {
  background: var(--color-primary);
}

/* PREMIUM CATALOG SEARCH */
.catalog-search {
  width: 100%;
  max-width: 600px;
  margin: 30px auto 10px;
  padding: 0 15px;
}

.catalog-search__wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
}

.catalog-search__wrapper:focus-within {
  box-shadow: 0 8px 25px rgba(230, 0, 0, 0.15), 0 0 0 3px rgba(230, 0, 0, 0.1);
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.catalog-search__icon {
  position: absolute;
  left: 20px;
  color: var(--color-gray-medium);
  transition: color 0.3s ease;
}

.catalog-search__wrapper:focus-within .catalog-search__icon {
  color: var(--color-primary);
}

.catalog-search__input {
  width: 100%;
  padding: 18px 20px 18px 50px;
  border: none;
  background: transparent;
  font-size: 1rem;
  color: var(--color-gray-dark);
  font-family: inherit;
  outline: none;
}

.catalog-search__input::placeholder {
  color: #a0a0a0;
  font-weight: 400;
}

@media (max-width: 480px) {
  .catalog-search__input {
      font-size: 0.95rem;
      padding: 15px 15px 15px 45px;
  }
}

/* ==========================================================================
   AREA CAROUSEL & LIGHTBOX (Mixed Aspect Ratios - Option 1)
   ========================================================================== */

.area-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 700px;
  margin: 40px auto;
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--color-gray-light); /* Neutral background for pillarboxing */
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.area-carousel__track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.area-carousel__img {
  min-width: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain; /* MAGIC: Fits without cropping, maintains aspect ratio */
  cursor: pointer;
  transition: transform 0.3s ease;
}

.area-carousel__img:hover {
  transform: scale(1.02);
}

.area-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  color: var(--color-gray-dark);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
  backdrop-filter: blur(4px);
}

.area-carousel__btn:hover {
  background: var(--color-primary);
  color: white;
}

.area-carousel__btn--prev { left: 20px; }
.area-carousel__btn--next { right: 20px; }

.area-carousel__indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.area-carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.3s ease;
  border: 1px solid rgba(0,0,0,0.1);
}

.area-carousel__dot.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

@media (max-width: 768px) {
  .area-carousel {
      aspect-ratio: 4/3; /* Taller aspect ratio for mobile to better accommodate vertical images */
      border-radius: 0;
  }
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: none;
  border: none;
  color: white;
  font-size: 3rem;
  cursor: pointer;
  z-index: 10000;
  transition: color 0.3s ease;
  line-height: 1;
}

.lightbox__close:hover {
  color: var(--color-primary);
}

.lightbox__content {
  position: relative;
  width: 90%;
  height: 85%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.lightbox__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
  backdrop-filter: blur(10px);
}

.lightbox__btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox__btn--prev { left: -20px; }
.lightbox__btn--next { right: -20px; }

.lightbox__counter {
  color: rgba(255,255,255,0.7);
  margin-top: 15px;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .lightbox__btn {
      width: 40px;
      height: 40px;
      font-size: 1.5rem;
  }
  .lightbox__btn--prev { left: 0; }
  .lightbox__btn--next { right: 0; }
}
