/* ===== Variables y Reset ===== */
:root {
  --colorPrimary: #ED6F2F;
  --colorPrimaryLight: rgba(237, 111, 47, 0.9);
  --colorDark: #262425;
  --colorLight: #FFF;
  --colorOverlay: rgba(0, 0, 0, 0.7);
  --transitionBase: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transitionSlow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --borderRadiusSm: 15px;
  --borderRadiusLg: 30px;
  --shadowBase: 0 10px 20px rgba(0,0,0,0.1);
  --shadowHover: 0 15px 30px rgba(0,0,0,0.2);
}

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

html {
  scroll-behavior: smooth;
}

body, html {
  height: 100%;
  font-family: 'Segoe UI', system-ui, sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== Hero Section ===== */
.heroSection {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  will-change: transform;
}

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

.carouselSlide {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity var(--transitionSlow);
  will-change: opacity;
}

/* ===== Optimización de animaciones ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.carouselSlide.active {
  opacity: 1;
}

.heroOverlay {
  position: absolute;
  inset: 0;
  background-color: rgba(var(--colorDark), var(--overlayOpacity));
  z-index: 1;
}

.heroContent {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.heroLogo {
  width: 20vw;
  height: 30vh;
  object-fit: contain;
}

body.hero-active {
  overflow: hidden;
  height: 100vh;
}

/* ===== Carrusel Indicators ===== */
.carouselIndicators {
  position: absolute;
  bottom: 20%;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 2vw;
}

.indicatorLine {
  width: 8vw;
  height: 5px;
  background-color: var(--colorLight);
  opacity: 0.7;
  border-radius: 5px;
  transition: var(--transitionBase);
  transition: all 0.3s ease;
}

.indicatorLine.active {
  background-color: var(--colorPrimary);
  transform: scaleY(1.5);
  opacity: 1;
}

.ctaButton {
  background-color: var(--colorPrimary);
  color: var(--colorLight);
  padding: 1rem 2rem;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 5vh;
  transition: var(--transitionBase);
}

.ctaButton:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* ===== Widescreen Container ===== */
.widescreenContainer {
  width: 100%;
  max-width: var(--widescreenWidth);
  max-height: 900px;
  min-height: var(--widescreenHeight);
  margin: 0 auto;
  position: relative;
}

/* ===== Navigation Bar ===== */
.navigation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: none; /* Oculto inicialmente */
}

.navLogo {
  position: absolute;
  top: 15px;
  left: 50px;
  z-index: 1001;
  display: flex;
  align-items: center; /* Alinea verticalmente */
  gap: 20px; /* Espacio entre logo y texto */
}

.navLogoImg {
  width: 100px;
  height: auto;
  transition: transform 0.3s ease;
}

.navLogoFont {
  height: 60px; /* Puedes ajustar según visual */
  width: auto;
}

.navLogoImg:hover {
  transform: scale(1.1);
}

.navLinksContainer {
  position: absolute;
  top: 50px;
  right: 50px;
  display: flex;
  justify-content: flex-end;
}

.navLinks {
  display: flex;
  gap: 50px;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 10px 20px;
  border-radius: 25px;
}

.navLink {
  color: white;
  text-decoration: none;
  font-family: 'Segoe UI', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.navLink:hover {
  color: #ED6F2F;
  transform: scale(1.1);
}

.navLink::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #ED6F2F;
  transition: width 0.3s ease;
}

.navLink:hover::after {
  width: 100%;
}

/* 3-8. Widescreen Sections */
.widescreenContainer {
  width: 100%;
}

.pageSection {
  width: 100%;
  height: 900px;
  position: relative;
}

/* Contenido interno centrado */
.sectionContent {
  max-width: 1600px;
  margin: 0 auto;
  height: 100%;
}

/* ===== Home Section ===== */
.axisHomePage {
  position: relative;
  width: 100%;
  min-height: 100vh; /* Ocupa toda la pantalla */
  max-height: none; /* Elimina límite fijo */
  overflow: hidden;
}

.homeGrid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  height: 100%;
  min-height: 100vh;
  max-height: none;
}

.mainImageContainer {
  position: relative;
  height: 100%;
}

.secondaryContent {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.carouselContainer {
  position: relative;
  width: 100%;
  height: 100%;
}

.orangePanel {
  height: 50% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  padding-top: 0.5rem !important;
  margin: 0 !important;
}

.carouselSlide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.carouselSlide.active {
  opacity: 1;
}

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


/* Barra indicadora vertical */
.verticalIndicators {
  position: absolute;
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 30px;
  z-index: 3;
}

.indicatorItem {
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
}

.indicatorText {
  color: white;
  font-family: 'Segoe UI', sans-serif;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.indicatorBar {
  width: 4px;
  height: 30px;
  background-color: rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.indicatorItem.active .indicatorText {
  opacity: 1;
  font-weight: bold;
}

.indicatorItem.active .indicatorBar {
  background-color: var(--colorPrimary);
  height: 40px;
}

/* Imagen secundaria como enlace */
.secondaryImageLink {
  display: block;
  width: 100%;
  height: 50%;
  transition: transform 0.3s ease;
}

.secondaryImageLink:hover {
  transform: scale(1.02);
}

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

/* Panel naranja con texto centrado */
.orangePanel {
  position: relative;
  background-color: var(--colorPrimary);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  overflow: hidden;
}

.orangePanelContent {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}



.orangePanelContent h2 {
  position: absolute;
  width: 100%;
  text-align: center;
  top: 0%;
  margin: 0%;
  padding-bottom: 1rem;
  color: white;
  font-size: 3rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.orangePanelContent {
  height: 100%; /* o una altura específica si la conoces, por ejemplo: 600px */
  display: flex;
  flex-direction: column;
}

.text-wrapper {
  max-width: 90%;
  margin: 0 auto;
}

.homeText {
  width: 90%;
  max-width: 800px;
  text-align: center;
  color: white;
  display: none;
}

.homeText.active {
  display: flex;
  flex-direction: column;
  align-items: center;
}



/* Cada tercio */
.homeText h2 {
  font-size: min(3vw, 3rem); /* Tamaño proporcional con máximo de 3rem */
  margin-bottom: 1.5vw;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: bold;
  line-height: 1.2;
}


.homeText p:not(.homeKeyWords) {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: min(1.5vw, 1.5rem);
  line-height: 1.6;
  margin-top: 80px;
  text-align: center;
  max-width: 80ch;
}

.homeText .homeKeyWords {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2vw;
  font-size: min(1.6vw, 1.6rem);
  font-weight: bold;
  text-align: center;
  color: #006478;
}

.homeText.active {
  opacity: 1;
}

/* Transiciones para el carrusel Home */
.homeSlide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: opacity, transform; /* Preparar navegador */
}

.homeSlide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Textos del panel naranja */
.homeText {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  color: white;
  font-size: 1.5rem;
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.homeText.active {
  opacity: 1;
}

/* Responsive */
@media (max-width: 1024px) {
  .verticalIndicators {
    right: 20px;
    gap: 20px;
  }
  
  .indicatorText {
    font-size: 1rem;
  }
}

.orangePanel {
  height: 50vh;
  min-height: 400px;
}

/* ===== AJUSTES PARA MOVIL ===== */
@media (max-width: 1023px) {
  .orangePanel {
    height: auto;
    min-height: 50vh;
    padding: 4rem 2rem;
  }
  
  .homeText h2 {
    font-size: clamp(1.8rem, 6vw, 3rem);
  }
  
  .homeText p:not(.homeKeyWords) {
    font-size: clamp(1rem, 3vw, 1.5rem);
  }
  
  .homeKeyWords {
    font-size: clamp(1.1rem, 3.5vw, 1.6rem);
  }
}

@media (max-width: 768px) {
  .homeGrid {
    grid-template-columns: 1fr;
    height: auto;
  }
  
  .verticalIndicators {
    flex-direction: row;
    top: auto;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    contain: layout paint;
  }
  
  .indicatorItem {
    flex-direction: column;
    align-items: center;
    will-change: transform, opacity;
  }
  
  .indicatorBar {
    width: 30px;
    height: 4px;
  }
  
  .indicatorItem.active .indicatorBar {
    width: 40px;
    height: 4px;
  }
  
  .secondaryImageLink {
    height: 300px;
  }
  
  .orangePanel {
    height: auto;
    padding: 2rem 1rem;
  }
}

/* ===== ABOUT SECTION - VERSIÓN RESPONSIVE ===== */
.aboutSection {
  width: 100%;
  aspect-ratio: 1920/900; /* Proporción clave */
  min-height: 900px;
  max-height: 100vh;
  position: relative;
  overflow: hidden;
}

.aboutContainer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
}

/* Columnas base */
.aboutImageColumn {
  width: 38.125%; /* 732px / 1920px */
  height: 100%;
  position: relative;
}



/* Columna de imagen */
.aboutImageColumn {
  width: 38.125%; /* 732px / 1920px */
  height: 100%;
  position: relative;
}

.aboutOrangeColumn {
  width: 30.9635%; /* 594.5px / 1920px */
  height: 100%;
}

.aboutWhiteColumn {
  width: 30.9635%; /* 594.5px / 1920px */
  height: 100%;
}

.imageWrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

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

.imageOverlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.25);
}

.imageTitle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: clamp(2.5rem, 4vw, 4rem);
  text-align: center;
  z-index: 2;
  width: 100%;
  padding: 0 20px;
}

/* Columna naranja */
.aboutOrangeColumn {
  width: 30.9635%; /* 594.5px / 1920px */
  height: 100%;
  flex: 0 0 30.9635%;
  background-color: var(--colorPrimary);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(2rem, 3vw, 4rem);
}

.orangeContent {
  height: 90%;
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.orangeTitle {
  font-size: clamp(2rem, 3vw, 3rem);
  text-align: center;
  color: white;
  margin-top: clamp(0%, 0vw, 0%);
  width: 100%;
  padding-bottom: 1rem;
}

.orangeText {
  text-align: center;
  color: white;
  font-size: clamp(1.1rem, 1.5vw, 1.5rem);
  line-height: 1.6;
  width: 100%;
  margin-bottom: clamp(25%, 33.33vw, 33.33%);
  padding: 0 clamp(1rem, 2vw, 2rem);
}

/* Columna blanca con carrusel */
.aboutWhiteColumn {
  width: 30.9635%; /* 594.5px / 1920px */
  height: 100%;
  flex: 0 0 30.9635%;
  background-color: white;
  overflow: hidden;
  position: relative;
}

.cardsTrack {
  position: relative;
  width: 100%;
  height: 100%;
}

.card {
  position: absolute;
  width: 50%;
  height: clamp(70px, 4.6875vw, 90px);
  border-radius: clamp(18px, 1.302vw, 25px);
  display: flex;
  margin-left: clamp(20px, 1.5625vw, 30px);
  align-items: center;
  justify-content: center;
  font-size: clamp(1.1rem, 1.5vw, 1.5rem);
  font-weight: bold;
  color: white;
  box-shadow: 0 clamp(3px, 0.208vw, 4px) clamp(11px, 0.781vw, 15px) rgba(0, 0, 0, 0.5);
  animation: cardAnimation 27s linear infinite;
  opacity: 0;
  will-change: transform, opacity;
}

/* Colores de tarjetas */
.card[data-color="orange"] { background-color: #ED6F2F; }
.card[data-color="blue"] { background-color: #023341; }
.card[data-color="black"] { background-color: #262425; }

/* Posicionamiento horizontal */
.card-1, .card-4, .card-7 { left: 0; }
.card-2, .card-5, .card-8 { left: 20%; }
.card-3, .card-6, .card-9 { left: 40%; }

/* Timing de animación */
.card-1 { animation-delay: 0s; }
.card-2 { animation-delay: 3s; }
.card-3 { animation-delay: 6s; }
.card-4 { animation-delay: 9s; }
.card-5 { animation-delay: 12s; }
.card-6 { animation-delay: 15s; }
.card-7 { animation-delay: 18s; }
.card-8 { animation-delay: 21s; }
.card-9 { animation-delay: 24s; }

/* Animación de tarjetas (sin cambios) */
@keyframes cardAnimation {
  0% { transform: translateY(900px); opacity: 0; }
  5% { transform: translateY(800px); opacity: 1; }
  15% { transform: translateY(600px); }
  30% { transform: translateY(400px); }
  50% { transform: translateY(200px); }
  70% { transform: translateY(0px); }
  85% { transform: translateY(-100px); opacity: 1; }
  100% { transform: translateY(-200px); opacity: 0; }
}

/* ===== RESPONSIVE PARA TABLETS ===== */
@media (max-width: 1200px) {
  .aboutContainer {
    flex-direction: column;
    height: auto;
    min-height: auto;
  }
  
  .aboutImageColumn,
  .aboutOrangeColumn,
  .aboutWhiteColumn {
    width: 100%;
    flex: 1 1 auto;
    height: auto;
  }
  
  .aboutImageColumn {
    height: 50vh;
  }
  
  .orangeTitle,
  .orangeText {
    margin: 2rem 0;
  }
  
  .card {
    position: relative;
    animation: none;
    opacity: 1;
    width: 80%;
    left: auto !important;
    margin: 1rem auto;
    height: 80px;
    font-size: 1.2rem;
  }
}

/* ===== RESPONSIVE PARA MÓVILES ===== */
@media (max-width: 768px) {
  .aboutSection {
    height: auto;
    min-height: auto;
  }
  
  .aboutImageColumn {
    height: 40vh;
  }
  
  .orangeTitle {
    font-size: 1.8rem;
    margin-top: 1.5rem;
  }
  
  .orangeText {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
  }
  
  .card {
    height: 70px;
    font-size: 1.1rem;
  }
}

/* ===== Services Section ===== */
/* Estilos base */
.homeAxisServices {
  position: relative;
  width: 1920px;
  height: 900px;
  overflow: hidden;
}

/* Fondo con overlay */
.servicesBackground img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease, transform 0.5s ease;
  transform-origin: center center;
  will-change: transform, opacity;
}

.bgImage {
  max-width: 1920px;
  max-height: 900px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 1s ease;
}

.bgOverlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.25);
  z-index: 1;
}

/* Contenido de texto */
.servicesContent {
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  color: white;
  z-index: 10; /* Mayor que el overlay (1) */
  transition: opacity 0.3s ease;
}

.servicesTitle {
  margin-top: 210px;
  margin-left: 50px;
  text-align: left;
  font-size: 3rem; /* Ajustar según necesidad */
}

.servicesDescription {
  color: white;
  margin-left: 50px;
  margin-top: 110px; /* Espacio entre h1 y p */
  font-size: 1.5rem;
}

/* Botón */
.servicesButton {
  margin-left: 50px;
  margin-bottom: 150px;
  border: 5px solid white;
  border-radius: 25px;
  background-color: transparent;
  padding: 15px 30px;
  cursor: pointer;
  position: absolute;
  bottom: 0;
}

.servicesButton h3 {
  margin: 0;
  color: white;
  font-size: 1.5rem;
  text-align: center;
}

/* Contenedores de imágenes */
.imageContainers {
  position: absolute;
  right: -100px;
  bottom: 150px;
  display: flex;
  gap: 0px;
  transition: opacity 0.5s ease;
  will-change: transform;
  z-index: 3;
}

.imageBox {
  width: 200px;
  height: 350px;
  border-radius: 25px;
  /*border: 5px solid white;;*/
  background-size: 375% auto; /* Ajusta este valor para el "zoom" */
  background-position: center; /* Controla qué parte de la imagen se muestra */
  background-repeat: no-repeat;
  overflow: hidden; /* Asegura que el borde radius funcione como máscara */
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center center;
  will-change: transform, opacity;
  z-index: 2;
  flex-shrink: 0 0 200px; /* Evita que se compriman */
  margin-right: 25px; /* Espacio entre máscaras */
}

.imageBox:nth-child(1) {
  background-position: 40% 0%; /* Muestra la esquina superior izquierda */
}
.imageBox:nth-child(2) {
  background-position: 40% 0%; /* Muestra la esquina superior izquierda */
}
.imageBox:nth-child(3) {
  background-position: 40% 0%; /* Muestra la esquina superior izquierda */
}
.imageBox:nth-child(4) {
  background-position: 40% 0%; /* Muestra la esquina superior izquierda */
}
.imageBox:nth-child(5) {
  background-position: 40% 0%; /* Muestra la esquina superior izquierda */
}

/* Barra de progreso - inicialmente oculta */
.progressBarContainer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 10;
  overflow: hidden;
}

.progressBarBase {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.3);
}

.progressBarFill {
  position: absolute;
  width: 0;
  height: 100%;
  background-color: var(--colorPrimary);
  transition: width 50ms linear;
  will-change: width;
}



/* ===== Benefits Section ===== */
/* ===== BENEFITS SECTION - VERSIÓN RESPONSIVE ===== */
.axisBenefits {
  position: relative;
  width: 100%;
  padding-bottom: 46.875%; /* Proporción 900/1920 (900/1920=0.46875) */
  height: 0;
  overflow: hidden;
}

/* Fondo */
.benefitsBackground {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

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

/* Contenedor principal - Escalado proporcional */
.benefitsContainer {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 95.15625%; /* 1827/1920 = 0.9515625 */
  height: 72.222%; /* 650/900 = 0.72222 */
  bottom: 16.666%; /* 150/900 = 0.16666 */
  display: flex;
  gap: 1.302vw; /* 25/1920 = 0.01302 */
}

/* Grupos de tarjetas */
.horizontalGroup {
  display: flex;
  flex-direction: column;
  width: 33%; /* 585/1920 */
  gap: 1.302vw;
}

.verticalGroup {
  display: flex;
  gap: 1.5vw;
  width: 67%; /* 1220/1920 */
}

/* Tarjetas horizontales */
.hMask {
  border-radius: 1.5vw; /* 30/1920 */
  overflow: hidden;
  background-size: cover;
  background-position: center;
  position: relative;
}

.topHorizontal {
  height: 16.1458vw; /* 310/1920 */
}

.bottomHorizontal {
  height: 16.1458vw;
  display: flex;
}

/* Tarjetas verticales */
.vMask {
  width: 100%; /* 390/1920 */
  border-radius: 1.5vw; /* 15/1920 */
  overflow: hidden;
  background-size: cover;
  background-position: center;
  position: relative;
}

.leftVertical, .centerVertical, .rightVertical {
  height: 33.8541vw; /* 650/1920 */
}

/* Textos - Escalado proporcional */
.card1text, .cardText2-4, .cardText3 {
  font-size: 1.3vw; /* 18/1920 (equivalente a 1.5rem) */
  font-weight: bold;
  color: #023341;
  position: absolute;
}

.card1text {
  width: 53%;
  top: 1vw; /* ~50px */
  right: -.5vw; /* ~30px */
  padding-right: 1.5vw;
}

.cardText2-4 {
  width: 100%;
  bottom: 15.625vw; /* ~300px */
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.cardText3 {
  width: 90%;
  bottom: 6vw; /* ~200px */
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

/* Imágenes internas */
.imgCard2, .imgCard3-5, .imgCard4 {
  position: absolute;
  object-fit: contain;
}

.imgCard2 {
  width: 13.75vw; /* ~200px */
  bottom: 0.78125vw; /* ~15px */
  left: 0.78125vw;
}

.imgCard3-5 {
  width: 17.75vw; /* ~250px */
  bottom: 0.78125vw;
  left: 1.2vw;
}

.imgCard4 {
  width: 17.75vw;
  top: 0.78125vw;
  right: 1.2vw;
}

/* Botones */
.nestedButton {
  position: absolute;
  width: 3.6458vw; /* ~70px */
  height: 3.6458vw;
  background-color: rgba(237, 111, 47, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 0.9375vw;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2;
}

/* Posicionamiento botones */
.hButton2 { bottom: 0vw; right: 0vw; }
.vButton1 { right: 0vw; left: 0vw; }
.vButton2 { bottom: 0vw; right: 0vw; }
.vButton3 { top: 0vw; right: 0vw; }

/* Efectos hover */
.nestedButton:hover {
  transform: scale(1.15);
  box-shadow: 0 0 0.78125vw rgba(237, 111, 47, 0.8);
}

.hMask:hover, .vMask:hover {
  transform: translateY(-0.2604vw);
  box-shadow: 0 0.5208vw 1.302vw rgba(0, 0, 0, 0.3);
}

/* ===== MEDIA QUERIES ===== */

/* Tablet */
@media (max-width: 1024px) {
  .benefitsContainer {
    flex-direction: column;
    align-items: center;
    height: auto;
    position: relative;
    transform: none;
    left: auto;
    bottom: auto;
    padding: 5vw 0;
  }
  
  .horizontalGroup, .verticalGroup {
    width: 90%;
  }
  
  .verticalGroup {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .vMask {
    width: 45%;
    height: 40vw;
    margin-bottom: 2vw;
  }
  
  /* Ajustes de texto para tablet */
  .card1text, .cardText2-4, .cardText3 {
    font-size: 1.8vw;
  }
}

/* Móvil */
@media (max-width: 768px) {
  .axisBenefits {
    padding-bottom: 150vw; /* Más altura para contenido apilado */
  }
  
  .horizontalGroup, .verticalGroup {
    width: 95%;
  }
  
  .hMask, .vMask {
    width: 100% !important;
  }
  
  .topHorizontal, .bottomHorizontal {
    height: 50vw;
  }
  
  .vMask {
    height: 60vw;
  }
  
  /* Textos más grandes en móvil */
  .card1text, .cardText2-4, .cardText3 {
    font-size: 2.5vw;
  }
  
  .nestedButton {
    width: 8vw;
    height: 8vw;
    font-size: 3vw;
  }
}

/* ===== Contact Section ===== */
.axisContactSection {
  position: relative;
  width: 100%;
  min-height: 900px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding-bottom: 5rem;
}

.backgroundImage {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.contactCardGroup {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 5rem;
  width: 100%;
  max-width: 1400px;
  margin: 3rem auto;
  padding: 0 1rem;
  z-index: 1;
  flex-wrap: wrap;
}

.contactCard {
  position: relative;
  width: 100%;
  max-width: 400px;
  height: 600px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.contactCard:focus {
  outline: 2px solid var(--colorPrimary);
  outline-offset: 4px;
}

.baseImage {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1rem;
}

.cornerImage {
  position: absolute;
  width: 220px;
  height: 65px;
  object-fit: contain;
  z-index: 2;
  transition: transform 0.3s ease;
}

.bottomLeft {
  bottom: 0rem;
  left: 0rem;
}

.topLeft {
  top: 0rem;
  left: 0rem;
}

.bottomRight {
  bottom: 0rem;
  right: 0rem;
}

.cardOverlay {
  position: absolute;
  inset: 0;
  border-radius: 1.5rem;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease, background-color 0.3s ease;
  padding: 2rem;
  text-align: center;
  font-size: 1.5rem;
}

.contactCard:hover .cardOverlay,
.contactCard:focus .cardOverlay {
  opacity: 1;
}

.contactCard:hover .cornerImage,
.contactCard:focus .cornerImage {
  transform: scale(1.05);
}

.email-button {
  display: block;
  text-decoration: none;
  transition: transform 0.5s ease;
}

.email-button img {
  display: block;
  width: 100%;
  height: auto;
}

.email-button:hover,
.email-button:focus {
  transform: scale(1.05);
  outline: none;
}

/* Asegurar que el botón esté sobre el overlay */
.email-button {
  z-index: 3;
}

/* Responsive */
@media (max-width: 1200px) {
  .contactCardGroup {
    gap: 1.5rem;
    padding-bottom: 4rem;
  }
  
  .contactCard {
    height: 500px;
  }
}

@media (max-width: 768px) {
  .contactCardGroup {
    flex-direction: column;
    align-items: center;
    padding-bottom: 2rem;
  }
  
  .contactCard {
    height: 400px;
    max-width: 350px;
  }
  
  .cornerImage {
    width: 180px;
    height: 55px;
  }
}

/* ===== Footer ===== */
.axis-footer {
  background-color: var(--colorDark);
  color: var(--colorLight);
  padding: 2rem;
  text-align: center;
}

.footer-logo {
  width: 80px;
  margin: 0 auto 1rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--colorLight);
  text-decoration: none;
  transition: var(--transitionBase);
}

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