html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    transition: opacity 0.5s ease-in-out;
    background-color: white;
    overflow-x: hidden;
}

a, button {
    -webkit-tap-highlight-color: transparent; /* iOS/Chrome móvil */
}

a:focus, button:focus {
    outline: none;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Esto previene el scroll horizontal */
    width: 100%;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: border-box; /* Asegurar que todos los elementos usen border-box */
}

.header {
    width: 100%;
    background-color: transparent;
    padding: 10px 0;
    position: fixed;
    top: 0;          
    left: 0;
    z-index: 1000;
    overflow: visible;
}

.header-content {
    max-width: 1100px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 0 20px;
}

.logo img {
    height: 100px;
}

.nav-bar {
    background-color: #ECECEC;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.7);
    padding: 7px 70px;
    border-radius: 45px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 90px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: black;
    font-weight: bold;
    display: inline-block; 
    padding: 10px; 
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background-color: #c5c5c5;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

/* Estilos para el enlace activo */
.nav-links a.active {
    background-color: #F8C802;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(248, 200, 2, 0.5);
    color: black;
}

.nav-links a.active:hover {
    background-color: #e6b602;
}

.contact-button {
    display: inline-block; 
    background-color: #F8C802;
    padding: 15px 40px;
    margin-left: 20px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(255, 251, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.contact-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 94, 0, 0.3), transparent);
    transition: left 0.5s ease;
    color: #000000;
}

.contact-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.6);
    background: linear-gradient(45deg, #e4e4a0, #ffff00);
    color: black;
}

.contact-button:hover::before {
    left: 100%;
}

.contact-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.89);
}

.contact-button a {
    text-decoration: none;
    color: white;
}

.contact-button:hover a {
    text-decoration: none;
    color: black;
}

/* Botón hamburguesa - oculto por defecto */
.hamburger {
    display: none;
    position: fixed;
    top: 25px;
    right: 20px;
    z-index: 1100;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: rgb(73, 73, 73);
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Menú móvil */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1050;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 80px;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 22px;
    padding: 15px 20px;
    margin: 5px 0;
    width: 80%;
    text-align: left;
    transition: all 0.3s ease;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.mobile-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #F8C802;
    transform: translateX(10px);
}

/* Estilos para el enlace activo en móvil */
.mobile-menu a.active {
    background-color: #F8C802;
    color: black;
}

.mobile-menu a.active:hover {
    background-color: #e6b602;
    color: black;
    transform: translateX(10px);
}

.mobile-menu-header {
    width: 100%;
    padding: 20px 0 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
}

.mobile-menu-logo {
    height: 80px;
    width: auto;
}

.mobile-menu-links {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Contenido de ejemplo para probar */
.content {
    margin-top: 120px;
    padding: 40px;
    background-color: #f5f5f5;
}


.aparecer {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.aparecer.visible {
    opacity: 1 !important;
    transform: translateY(0);
}

/* Variaciones de dirección */
.aparecer.desde-izquierda {
    transform: translateX(-50px) translateY(0);
}

.aparecer.desde-derecha {
    transform: translateX(50px) translateY(0);
}

.aparecer.desde-abajo {
    transform: translateY(50px);
}

.aparecer.visible.desde-izquierda,
.aparecer.visible.desde-derecha,
.aparecer.visible.desde-abajo {
    transform: translate(0, 0);
}

/* Delays escalonados */
.aparecer:nth-child(1) { transition-delay: 0.1s; }
.aparecer:nth-child(2) { transition-delay: 0.2s; }
.aparecer:nth-child(3) { transition-delay: 0.3s; }
.aparecer:nth-child(4) { transition-delay: 0.4s; }
.aparecer:nth-child(5) { transition-delay: 0.5s; }

body.fade-out {
  opacity: 0;
  transition: opacity 0.3s ease-out;
}

body.fade-in {
  opacity: 0;
  transition: opacity 0.3s ease-in;
}



/*------------------------PARTE DE TMEX------------------------*/

.seccion-doble {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* alinear al inicio */
  gap: 150px; /* menos separación */
  padding: 110px 140px; /* margen interno más controlado */
}

/* Columna de texto */
.columna-izquierda {
  flex: 0 0 auto; /* el texto ocupa solo lo que necesita */
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.columna-izquierda h1 {
  font-size: 100px; /* más pequeño para que se vea balanceado */
  margin: 0; /* quitar espacio extra */
  letter-spacing: 1px;
  font-weight: 500;
  color: #2d2d2d;
}

/* Columna de imagen */
.columna-derecha {
  position: relative;
  width: 390px; /* más ancho para las imágenes */
  height: 420px; 
}

.columna-derecha img {
  width: 220px;
  height: auto;
  border-radius: 43px;
}

/* Imagen de abajo */
.img-1 {
  position: absolute;
  bottom: 0;
  left: 0;
  
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Imagen de arriba */
.img-2 {
  position: absolute;
  top: 0;
  right: 0;
  border: 8px solid white; /* marco blanco */
  border-radius: 15px;
}

/*------------------------PARTE DE OFRECEMOS SERVICIOS------------------------*/
.seccion-confianza {
  background-color: #000000;
  border-radius: 80px 80px 0 0;
  padding: 60px 20px;
  text-align: center;
}

.seccion-confianza h1 {
  color: #ffffff;
  font-size: 55px;
  font-weight: 500px;
  line-height: 80px;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.contenedor-tarjetas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 0 auto;
  padding: 0;
  width: 100%;
}

/* Tarjetas individuales */
.tarjeta-servicio {
  position: relative;
  height: 490px;
  border-radius: 36px;
  overflow: hidden;
  background-size: cover;
  text-align: center;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  margin: 0;
  padding: 0;
}

.tarjeta-servicio:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(255, 255, 255, 0.25);
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 60px 25px;
  margin: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.overlay img{
  opacity: 0.45;
}

/* Títulos h3 alineados */
.overlay h3 {
  font-size: 30px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 15px 0;
  line-height: 1.3;
  min-height: 2.6em;
  text-align: center;   /* Centra el texto horizontal */
  display: block;  
}

/*SECCION DE POR QUÉ ELEGIRNOS--------------------------------------------*/

.hero1 {
  position: relative;
  background: url('img/pexels-tomas-asurmendi-774865545-31514424\ 1.jpg') no-repeat center center/cover;
  height: 800px; /* Ajusta el alto que quieras */
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: white;
}

.hero-overlay1 {
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background-color: rgba(0,0,0,0.3); /* oscurece un poco */
  backdrop-filter: blur(6px); /* desenfoque */
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 50px;
}

.hero-text1 {
  max-width: 600px;
}


.por-que {
  font-size: 68px;
  margin: 0;
  line-height: 1;
  text-align: left; 
  color: white;
}

.elegirnos {
  font-size: 68px;
  margin: 60px;
  line-height: 1.5;
  align-self: flex-end; /* Lo mueve a la derecha dentro del flex container */
  margin-top: auto;    
  color: white;

}

.hero-text p {
  margin-bottom: 30px;
  line-height: 1.5;
  width: 80%;
}

.btn {
  display: inline-block; 
  background-color: #ffffff;
  color: black;
  padding: 15px 65px;
  margin-left: 20px; 
  margin-bottom: 60px;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(101, 100, 94, 0.3), transparent);
  transition: left 0.5s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.6);
  background: linear-gradient(45deg, #8b8b8b, #000000);
  color: white;
}

.btn:hover::before {
  left: 100%;
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.89);
}

.btn a{
  text-decoration: none;
  color:white;
  
}
.btn:hover a {
  text-decoration: none;
  color: black;
}


/*FOOOOOOOOOOOOOOOOOOTER --------------------------------------*/

.footer {
    background: black;
    width: 100%;
    padding: 60px 20px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.footer-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.logoFoot {
    margin-bottom: 40px;
    animation: logoGlow 3s ease-in-out infinite alternate;
}

.logoFoot img {
    width: 120px;
    height: 120px;
    object-fit: contain;
}


.social-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.social-icon:hover::before {
    left: 100%;
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    background: rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.5);
}

.social-icon svg {
    width: 24px;
    height: 24px;
    fill: #ffffff;
    transition: fill 0.3s ease;
}

.social-icon:hover svg {
    fill: #ffffff;
}

.divider {
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    margin: 0 auto 30px;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: #ffffff;
    border-radius: 50%;
}

.copyright {
    color: #cccccc;
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

/*SECCION NUESTROS SERVICIOOOOOOOS -----------------------*/

.security-container {
    position: relative;
    width: 100%;
    height: 600px;
    display: flex;
    overflow: hidden;
    padding-top: 10%;
}

.image-section {
    width: 80%;
    height: 100%;
    background-image: url('img/pexels-tima-miroshnichenko-6091857\ 1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    border-top-right-radius: 50px;
    border-bottom-right-radius: 50px;
}

.image-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    border-top-right-radius: 50px;
    border-bottom-right-radius: 50px;
}

.background-section {
    width: 40%;
    height: 100%;
    background: #ffffff;
    position: relative;
}

.text-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.text-content {
    font-size: 70px;
    font-weight: 300;
    line-height: 1.1;
    text-align: center;
    position: relative;
    padding-left: 485px;
    padding-top: 10%;    
}

.line1, .line2, .line3 {
    margin-bottom: 8px;
}

.line2 {
  padding-left: 10px;
}

.line3 {
  padding-left: 18px;
}

/* Texto blanco que está sobre la imagen */
.white-text {
    color: white;
    text-shadow: 2px 2px 6px rgba(255, 255, 255, 0.107);
}

/* Texto negro que está sobre el fondo gris */
.black-text {
    color: #000;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.339);
}

.seccion-seguridad {
  background-color: #ffffff; /* Fondo oscuro elegante */
  color: rgb(0, 0, 0);
  padding: 60px 20px;
  display: flex;
  justify-content: left;
  align-items:center;
  text-align: left;
}

.seccion-seguridad .contenedor-texto {
  max-width: 800px;
  font-size: 20px;
  line-height: 1.6;
  font-weight: 300;
}

.seccion-seguridad p {
  margin: 0;
}

/*PARTE DE TARJETAS*/

.fondo {
    position: relative;
    width: 100%;
    min-height: 100vh;
    border-radius: 50px;
    padding: 40px;
    box-sizing: border-box;
    overflow: hidden;
    background: url('img/descarga\ \(1\)\ 1.jpg') no-repeat center center/cover;
}

.cards-container2 {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto auto auto;
    gap: 20px;
    height: auto;
    padding-top: 5%;
}

.card {
    position: relative;
    border-radius: 50px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 400px; /* Altura mínima pero puede crecer */
    height: auto;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.card-large {
    grid-column: span 2;
    background-image: url('img/pexels-theshantanukr-15742574\ 1.jpg');
}

.card-large2 {
    grid-column: span 2;
    background-image: url('img/IMG_1006.jpg');
}

.card-large3 {
    grid-column: span 2;
    background-image: url('img/IMG_1010.jpg');
    
}

.card-small-1 {
    grid-column: span 1;
    background-image: url('img/IMG_1007.jpg');
}

.card-small-2 {
    grid-column: span 1;
    background-image: url('img/IMG_1009.jpg');
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: white;
    z-index: 2;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    overflow: visible;
    transition: all 0.4s ease;
}

/* TARJETAS GRANDES - Estilo original */
.card-large .card-content,
.card-large2 .card-content,
.card-large3 .card-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    max-width: 50%;
    min-height: 100%;
    margin-left: auto;
    border-top-right-radius: 50px;
    border-bottom-right-radius: 50px;
    transition: max-width 0.3s ease, margin-left 0.3s ease;
}

.card-large .card-content.expanded,
.card-large2 .card-content.expanded,
.card-large3 .card-content.expanded {
    max-width: 100%;
    margin-left: 0;
    align-items: flex-start;
    text-align: left;
}

/* TARJETAS PEQUEÑAS - Configuración específica */
.card-small-1 .card-content,
.card-small-2 .card-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    max-width: 100% !important;
    margin-left: 0 !important;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
    padding: 20px;
    min-height: 50%;
    max-height: 100%; /* Permitir crecimiento ilimitado */
    height: auto; /* Altura automática */
    overflow-y: visible;
}

.card-small-1 .card-content.expanded,
.card-small-2 .card-content.expanded {
    min-height: auto; /* Quitar restricciones de altura */
    max-height: none; /* Sin límites de altura máxima */
    height: auto;
    border-radius: 50px;
}


.card-small-2 .card-content.expanded .expand-btn {
    bottom: 10px; /* Se mueve 80px más abajo cuando se expande */
    left: 420px;
}
.card-small-1 .card-content.expanded .expand-btn{
    bottom: 5px; /* Se mueve 80px más abajo cuando se expande */
    left: 420px;
}
.card-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.card-description {
    font-size: 1rem;
    line-height: 1.5;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}


/* BOTONES - Configuración general */
.expand-btn {
  position: absolute; /* Posicionamiento absoluto */
    bottom: 20px; /* Fijo en la parte inferior */
    left: 50%; /* Centrado horizontalmente */
    transform: translateX(-50%); /* Centrado perfecto */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100; /* Z-index alto para estar siempre visible */
    flex-shrink: 0;
    min-width: 120px;
    margin: 0; /* Quitar margin */
}

.expand-btn:hover {
    background: rgba(188, 194, 10, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}


.arrow {
    transition: transform 0.3s ease;
    font-weight: bold;
    font-size: 1.2rem;
}

.arrow.rotated {
    transform: rotate(180deg);
}

/* CONTENIDO EXTRA - Configuración corregida */
.extra-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    margin-top: 15px;
    width: 100%;
}

/* SOLUCIÓN PRINCIPAL: Solo usar max-height, NO min-height */
.extra-content.expanded {
    max-height: 800px;
}

/* Para tarjetas pequeñas - altura automática */
.card-small-1 .extra-content.expanded,
.card-small-2 .extra-content.expanded {
    max-height: 600px;
}


.extra-text {
    color: #e5e7eb;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 8px;
    padding-top: 5px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.extra-text:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 15px;
}

.extra-text2 {
    color: #e5e7eb;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 8px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.extra-item {
    display: block;
    color: #e5e7eb;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 5px 0;
    padding: 2px 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}
.extra-item2 {
    display: block;
    color: #e5e7eb;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 5px 0;
    padding: 2px 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* Ajustes específicos para tarjetas pequeñas */
.card-small-1 .card-title,
.card-small-2 .card-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.card-small-1 .card-description,
.card-small-2 .card-description {
    font-size: 0.9rem;
    margin-bottom: 15px;
}


/*SECCION DE NOSOTROOOOOOOS -----------------------------------------*/
.hero-section {
    position: relative;
    width: 100%;
    height: 135vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 135vh;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.045), rgb(0, 0, 0)), 
                url('img/inspection-4691858_1280\ 2.jpg');
    border-bottom-right-radius: 50px;
    border-bottom-left-radius: 50px;            
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 4;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0;
}

.hero-text {
    width: 100%;
    padding: 0 2rem;
    margin-left: 5%;
    max-width: 600px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 300;
    color: rgb(0, 0, 0);
    line-height: 1.1;
    margin-bottom: 2rem;
    margin-top: -100px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Área blur en la parte inferior que cubre todo el ancho */
.hero-description {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    border-radius: 0;
    display: flex;
    align-items:flex-end;
    justify-content: right;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.3);
}

.hero-description-content {
    padding-top: 40px;
    padding-bottom: 40px;
    padding-right: 40px;
    max-width: 650px;
    width: 100%;
    text-align: right;
}

.hero-description p {
    color: white;
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.highlight {
    font-weight: 500;
    color: #ffd700;
}

.seccion-mision {
  padding: 0px 20px;
  padding-bottom: 10px;
  text-align: center;
  background-color: #ffffff;
}

.titulo-mision {
  font-size:  70px;
  line-height: 90px;
  margin-bottom: 10px;
  font-weight: 500;
  color: #2D2D2D;
}

.subtitulo-mision {
  font-size: 35px;
  font-weight: 38px;
  margin-bottom: 40px;
  color: #2D2D2D;
  font-weight: 400;
}

.tarjeta-mision {
  display: flex;
  flex-wrap: wrap;
  background-color: white;
  border-radius: 0 0 36px 36px;
  box-shadow: 0 2px 0px rgba(0, 50, 116, 0.2);
  padding: 30px;
  padding-bottom: 60px;
  max-width: 1600px;
  margin: 0 auto;
  text-align: left;
}

.columna-izquierda2,
.columna-derecha2 {
  flex: 1;
  padding: 20px;
}

.columna-izquierda2 {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column; 
  justify-content: center;
}

.columna-izquierda2 h3 {
  font-size: 44px;
  line-height: 55px;
  margin-bottom: 10px;
  font-weight: 500;
  color: #2D2D2D;
}

.columna-izquierda2 p {
  font-size: 28px;
  line-height: 43px;
  font-weight: 400;
  color: #000000;
}

.columna-derecha2 img {
  width: 100%;
  border-radius: 80px;
  object-fit: cover;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.979);
}

.training-section {
  position: relative;
  width: 100%;
  background-color: #ffffff;
  padding-bottom: 60px;
}

.training-section::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;       /* justo debajo de la línea */
  width: 100%;
  height: 6px;        /* altura de la sombra */
  pointer-events: none;

  /* sombra solo hacia abajo */
  background: linear-gradient(
    to bottom,
    rgba(78, 78, 78, 0.783),
    rgba(0, 0, 0, 0)
  );
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 70px;
    font-weight: 400;
    margin-bottom: -40px;
    color: #2D2D2D;
}

.section-title2 {
    font-size: 70px;
    font-weight: 400;
    color: #2D2D2D;
}

.section-description {
    font-size: 40px;
    color: #2D2D2D;
    line-height: 1.6;
}

.cards-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    width: 100%;
    display: flex;
    justify-content: center; /* Centra el contenido del contenedor */
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.3)),
                url('img/Frame\ 48096541.jpg');
    /* Reemplaza 'TU_IMAGEN_AQUI.jpg' con la ruta de tu imagen */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Efectos de luz bokeh simulados */
.background-image::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    border-radius: 50%;
    top: 20%;
    left: 10%;
    animation: float 6s ease-in-out infinite;
}

.background-image::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    border-radius: 50%;
    top: 60%;
    right: 15%;
    animation: float 4s ease-in-out infinite reverse;
}

.cards-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 3rem;
}

.training-card {
    background: #3737377d;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    color: white;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.training-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(0, 0, 0, 0.8);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.card-title {
    font-size: 30px;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
}

.seccion-filos {
  padding-bottom: 10px;
  text-align: center;
  background-color: #ffffff;
  
}

.titulo-misionfilos {
  font-size:  70px;
  line-height: 90px;
  margin-bottom: 10px;
  font-weight: 500;
  color: #000000;
}

.tarjeta-misionfilos {
  display: flex;
  flex-wrap: wrap;
  padding-left: 0px;
  padding-bottom: 60px;
  max-width: 1600px;
  margin: 0 auto;
  text-align: left;
}

.columna-izquierdafilos {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column; 
  justify-content: center;
}

.columna-izquierdafilos p {
  font-size: 28px;
  line-height: 43px;
  font-weight: 400;
  color: #000000;
}

.columna-izquierdafilos,
.columna-derechafilos {
  flex: 1;
  padding: 20px;
}

.columna-derechafilos{
  padding-left: 0;
}

.columna-derechafilos img {
  padding: 0;       /* elimina padding interno */
  margin: 0;        /* elimina margen */
  width: 100%;      /* que ocupe todo el ancho del contenedor */
 
  object-fit: cover;
  display: block;
  padding-top: 50px;
}
/*CARRUSEL*/

.protocols-section {
    background: linear-gradient(135deg, #393939 0%, #000000 100%);
    padding: 80px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    border-radius: 50px
}

.containerCarr {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.section-titleCarr {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #ffffff 0%, #cccccc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.section-descriptionCarr {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #e0e0e0;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    margin: 60px 0;
}

.carousel-track {
    display: flex;
    animation: infiniteScroll 30s linear infinite;
    gap: 30px;
}

.carousel-item {
    flex: 0 0 auto;
    width: 280px;
    height: 420px;
    /*background: linear-gradient(145deg, #333333 0%, #2a2a2a 100%);*/
    background: transparent;
    border-radius: 20px;
    padding: 0;
    display: flex;
    flex-direction: column;
    text-align: center;
    /*box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);*/
    /*border: 1px solid rgba(255, 255, 255, 0.1);*/
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.carousel-item:hover {
    transform: translateY(10px) scale(1.02);
    /*box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);*/
    border-color: rgba(255, 255, 255, 0.2);
}

.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.carousel-item:hover::before {
    left: 100%;
}

.item-image {
    width: 100%;
    height:300px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.item-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(to top, rgba(42, 42, 42, 0.8), transparent);
}

.item-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.item-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.3);
    position: relative;
}

.item-icon::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 60%;
    background: white;
    border-radius: 50%;
    opacity: 0.9;
}

.item-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ffffff;
    line-height: 1.3;
}

@keyframes infiniteScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.carousel-track {
    width: calc(280px * 10 + 30px * 9);
}

.fade-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    pointer-events: none;
    z-index: 2;
}

.fade-left {
    left: 0;
    background: linear-gradient(to right, #1a1a1a, transparent);
}

.fade-right {
    right: 0;
    background: linear-gradient(to left, #1a1a1a, transparent);
}

/*----------------PAGINA DE GALERIAAAA----------------------------------------*/
.herogal {
    background: linear-gradient(360deg, rgba(255, 255, 255, 0.064), rgba(0, 0, 0, 0.5)), 
                url('img/Group\ 1.png'); /* CAMBIA 'tu-imagen-hero.jpg' por la ruta de tu imagen */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem 4rem;
    position: relative;
    overflow: hidden;
    border-bottom-left-radius: 60px;
    border-bottom-right-radius: 60px;
}

.hero-contentgal {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.herogal h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ffffff, #94918a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
}

.herogal p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: white;
}

/* Gallery Section */
.gallery-section {
    padding: 3rem 2rem;
    background: transparent;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: rgb(0, 0, 0);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: bold;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.797);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border-radius: 25px;
    font-weight: bold;
}

.filter-btn.active {
    background: linear-gradient(45deg, #ffd500, #c2b800);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    color: white;
    border-radius: 25px;
    font-weight: bold;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #333;
    aspect-ratio: 1;
}

.gallery-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.281), rgba(0, 0, 0, 0.8));
    opacity: 0;
    transition: opacity 0.9s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.play-icon {
    font-size: 3rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.video-item::after {
    content: '▶';
    position: absolute;
    top: 15px;
    right: 15px;
    color: white;
    font-size: 1.5rem;
    background: rgba(0,0,0,0.7);
    padding: 5px 10px;
    border-radius: 50%;
}

        /* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);  /* ← MÁS OSCURO */
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px);   /* ← BLUR MÁS INTENSO */
    padding: 2rem;                 /* ← PADDING AGREGADO */
}

.modal-content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
    display: flex;                 /* ← AGREGADO PARA CENTRAR */
    justify-content: center;       /* ← AGREGADO PARA CENTRAR */
    align-items: center;           /* ← AGREGADO PARA CENTRAR */
}

.modal-content img,
.modal-content video {
    max-width: 100%;
    max-height: 100%;
    border-radius: 15px;           /* ← BORDES MÁS REDONDEADOS */
    box-shadow: 0 20px 40px rgba(0,0,0,0.8); /* ← SOMBRA AGREGADA */
}

.close-modal {
    position: absolute;
    top: -50px;                    /* ← MÁS SEPARADO */
    right: -10px;
    color: rgb(0, 0, 0);
    font-size: 2.5rem;             /* ← MÁS GRANDE */
    cursor: pointer;
    background: rgba(250, 242, 0, 0.1);
    border-radius: 50%;
    width: 50px;                   /* ← MÁS GRANDE */
    height: 50px;                  /* ← MÁS GRANDE */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;     /* ← TRANSICIÓN AGREGADA */
    backdrop-filter: blur(10px);   /* ← BLUR AGREGADO */
}

.close-modal:hover {               /* ← HOVER AGREGADO */
    background: rgba(255, 225, 0, 0.9);
    transform: scale(1.1);
}
        
/*MEDIA QUERYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYS ------------------------------------------*/
@media screen and (max-width: 1250px) {
    /* Ocultar navegación normal */
    .nav-bar {
        display: none;
    }
    
    .contact-button {
        display: none;
    }

    /* Mostrar botón hamburguesa */
    .hamburger {
        display: block;
    }

    /* Mostrar menú móvil */
    .mobile-menu {
        display: flex;
    }
    
    /* Ajustar el logo */
    .logo img {
        height: 80px;
    }
    
    /* Ajustar header content para mobile */
    .header-content {
        max-width: 100%;
        padding: 0 15px;
        margin: 0;
    }
}

@media screen and (max-width: 1000px) and (min-width: 768px) {
  .seccion-doble {
      gap: 100px;
      padding: 180px 100px;
  }

  .columna-izquierda h1 {
      font-size: 80px;
  }

  .columna-derecha {
      width: 170px;
      height: 200px;
  }

  .columna-derecha img {
      width: 210px;
  }

  .seccion-confianza {
    background-color: #000000;
    border-radius: 50px 50px 0 0;
    padding: 20px 50px;
    text-align: center;
  }

  .seccion-confianza h1 {
    color: #ffffff;
    font-size: 40px;
    font-weight: 500px;
    line-height: 39px;
    margin-bottom: 15px;
    letter-spacing: 1px;
  }

  .contenedor-tarjetas {
      grid-template-columns: 1fr; /* Una sola columna */
      gap: 20px; /* Reducir el gap para pantallas pequeñas */
  }

  .tarjeta-servicio {
      height: 300px; 
      width: auto;/* Altura reducida para mobile */
      border-radius: 24px; /* Radio más pequeño */
      margin-bottom: 10px; 
  }

  .overlay {
      padding: 40px 20px; /* Padding reducido */
  }

  .overlay h3 {
      font-size: 24px; /* Texto más pequeño */
      margin: 0 0 10px 0;
      min-height: auto; /* Eliminar altura mínima fija */
      line-height: 1.2;
  }

  .hero1 {
    height: 100vh; /* Altura completa de pantalla */
    display: flex; /* Asegurar flex */
    justify-content: flex-start; /* Alinear al inicio (izquierda) */
    align-items: center; /* Centrar verticalmente */
  }
  
  .hero-overlay1 {
    position: relative; /* Posición relativa */
    width: 50%; /* Ocupa la mitad del ancho */
    max-width: 500px; /* Ancho máximo controlado */
    min-width: 400px; /* Ancho mínimo para legibilidad */
    height: auto; /* Altura automática */
    background-color: rgba(0, 0, 0, 0.4); /* Fondo semi-transparente */
    backdrop-filter: blur(8px); /* Efecto de desenfoque */
    -webkit-backdrop-filter: blur(3px); /* Safari support */
    padding: 40px 30px; /* Padding generoso */
    text-align: left; /* Alinear texto a la izquierda */
    border-bottom-right-radius: 25px; /* Bordes redondeados */
    border-top-right-radius: 25px;
    margin-left: 0px; /* Margen izquierdo para separación */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3); /* Sombra sutil */
  }
  
  .hero-text1 {
    max-width: 100%; /* Ancho completo del contenedor */
    width: 100%;
  }
  
  .por-que {
    font-size: 38px; /* Tamaño optimizado para tablets */
    font-weight: 700;
    margin: 0 0 8px 0; /* Margen inferior reducido */
    line-height: 1.2;
    text-align: left; /* Alineado a la izquierda */
    color: #fff; /* Asegurar color blanco */
  }
  
  .elegirnos {
    font-size: 38px; /* Mismo tamaño que por-que */
    font-weight: 700;
    margin: 0 0 25px 0; /* Margen inferior para separar del botón */
    line-height: 1.2;
    text-align: left; /* Alineado a la izquierda */
    color: #fff; /* Asegurar color blanco */
  }
  
  .hero-text1 p {
    margin-bottom: 20px; /* Espaciado entre párrafos */
    line-height: 1.6; /* Mejor legibilidad */
    width: 100%;
    font-size: 16px; /* Tamaño legible para tablets */
    text-align: left; /* Alineado a la izquierda */
    color: rgba(255, 255, 255, 0.9); /* Blanco ligeramente transparente */
  }
  
  .hero-text1 p:last-of-type {
    margin-bottom: 0; /* Sin margen en el último párrafo */
  }
  
  .btn {
    padding: 14px 35px; /* Botón proporcionado */
    margin: 0 0 30px 0; /* Sin centrar, alineado a la izquierda */
    font-size: 16px; /* Tamaño de texto apropiado */
    display: inline-block; /* Display inline-block para alineación izquierda */
    width: fit-content; /* Solo el ancho necesario */
    border-radius: 30px; /* Bordes más redondeados */
    text-decoration: none;
    font-weight: 600;
  }

  /*PAGINA DE SERVICIOOOOOOOOOOOS ----------------------------------------------------------------------------------------*/
  .security-container {
        height: 500px;
        padding-top: 8%;
    }
    
    .text-content {
        font-size: 55px;
        padding-left: 350px;
        padding-top: 8%;
    }
    
    .image-section {
        width: 75%;
    }
    
    .background-section {
        width: 45%;
    }

    .fondo {
        padding: 35px;
        border-radius: 45px;
    }
    
    .fondo::before {
        width: 9px;
        transform: rotate(-41deg);
    }
    
    .cards-container2 {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        padding-top: 5%;
        max-width: 900px;
    }
    
    .card {
        border-radius: 45px;
        min-height: 340px;
    }
    
    .card-large,
    .card-large2, 
    .card-large3 {
        grid-column: span 2;
    }
    
    .card-small-1,
    .card-small-2 {
        grid-column: span 1;
    }
    
    .card-content {
        padding: 28px;
        border-radius: 45px;
    }
    
    .card-large .card-content,
    .card-large2 .card-content,
    .card-large3 .card-content {
        max-width: 55%;
        margin-left: auto;
        min-height: 100%;
        border-top-right-radius: 45px;
        border-top-left-radius: 0px;
        border-bottom-left-radius: 0px;
        border-bottom-right-radius: 45px;
    }
    
    .card-large .card-content.expanded,
    .card-large2 .card-content.expanded,
    .card-large3 .card-content.expanded {
        max-width: 100%;
        margin-left: 0;
    }
    
    .card-small-1 .card-content,
    .card-small-2 .card-content {
        max-width: 100%;
        margin-left: 0;
        border-bottom-left-radius: 45px;
        border-bottom-right-radius: 45px;
        padding: 22px;
        min-height: 52%;
    }
    
    .card-title {
        font-size: 1.7rem;
        margin-bottom: 14px;
    }
    
    .card-small-1 .card-title,
    .card-small-2 .card-title {
        font-size: 1.35rem;
        margin-bottom: 11px;
    }
    
    .card-description {
        font-size: 0.98rem;
        margin-bottom: 19px;
        line-height: 1.5;
    }
    
    .card-small-1 .card-description,
    .card-small-2 .card-description {
        font-size: 0.88rem;
        margin-bottom: 16px;
    }
    
    .expand-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        min-width: 118px;
        bottom: 19px;
    }
    
    .card-small-1 .card-content.expanded .expand-btn,
    .card-small-2 .card-content.expanded .expand-btn {
        left: 75%;
        transform: translateX(-50%);
        bottom: 8px;
    }
    
    .extra-content.expanded {
        max-height: 750px;
    }
    
    .card-small-1 .extra-content.expanded,
    .card-small-2 .extra-content.expanded {
        max-height: 550px;
    }
    
    .extra-text,
    .extra-text2,
    .extra-item,
    .extra-item2 {
        font-size: 0.88rem;
        line-height: 1.5;
    }

    /*PAGINA DE NOSOTROOOOOOOOOOOOOOOOOOOOOOOOS ----------------------------------------------------------------------------------------*/
    .hero-section {
        height: 120vh;
    }
    
    .hero-background {
        height: 120vh;
        border-bottom-right-radius: 40px;
        border-bottom-left-radius: 40px;
    }
    
    .hero-text {
        margin-left: 3%;
        max-width: 550px;
        padding: 0 1.5rem;
    }
    
    .hero-title {
        font-size: 65px;
        margin-top: -80px;
    }
    
    .hero-description-content {
        max-width: 580px;
        padding-top: 35px;
        padding-bottom: 35px;
        padding-right: 35px;
    }
    
    .hero-description p {
        font-size: 22px;
    }

    .seccion-mision {
        padding: 20px 20px;
        text-align: center;
        background-color: #ffffff;
    }


    .titulo-mision {
        font-size:  55px;
        line-height: 90px;
        margin-bottom: 5px;
        font-weight: 600;
        color: #000000;
    }

    .tarjeta-mision {
        flex-direction: column-reverse;
        background-color: white;
        border-radius: 0 0 36px 36px;
        box-shadow: 0 2px 0px rgba(0, 50, 116, 0.2);
        
    }

    .columna-izquierda2,
    .columna-derecha2 {
        flex: 1;
        padding: 0px;
    }

    .columna-izquierda2 {
        flex: 1;
        padding: 0px;
        display: flex;
        flex-direction: column; 
        
    }

    .columna-izquierda2 h3 {
        font-size: 28px;
        line-height: 30px;
        margin-bottom: 10px;
        font-weight: 500;
        color: #000000;
    }

    .columna-izquierda2 p {
        font-size: 24px;
        line-height: 30px;
        font-weight: 400;
        color: #000000;
    }

    .columna-derecha2 img {
        width: 100%;
        border-radius: 15px;
        object-fit: cover;
    }

    /*--------------------*/
    .container {
        max-width: 95%;
        padding: 0 20px;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
        text-align: center;
    }
    
    .section-title {
        font-size: 55px;
        margin-bottom: -30px;
    }
    
    .section-title2 {
        font-size: 55px;
        margin-bottom: 1.5rem;
    }
    
    .section-description {
        font-size: 28px;
        max-width: 90%;
        margin: 0 auto;
    }
    
    .cards-container {
        border-radius: 15px;
    }
    
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
        padding: 2.5rem;
    }
    
    .training-card {
        padding: 1.8rem;
    }
    
    .card-title {
        font-size: 24px;
    }
    
    .background-image::before {
        width: 150px;
        height: 150px;
    }
    
    .background-image::after {
        width: 120px;
        height: 120px;
    }

    /*----------------------------------*/
    .seccion-filos {
        padding-bottom: 20px;
    }
    
    .titulo-misionfilos {
        font-size: 55px;
        line-height: 70px;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .tarjeta-misionfilos {
        max-width: 95%;
        padding-bottom: 50px;
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .columna-izquierdafilos {
        padding: 15px;
    }
    
    .columna-izquierdafilos p {
        font-size: 24px;
        line-height: 36px;
    }
    
    .columna-derechafilos {
        padding: 15px;
        padding-left: 10px;
    }
    
    .columna-derechafilos img {
        padding-top: 40px;
    }

    .protocols-section {
        padding: 70px 15px;
        min-height: 90vh;
        border-radius: 40px;
    }
    
    .containerCarr {
        max-width: 95%;
    }
    
    .section-titleCarr {
        font-size: 3rem;
        margin-bottom: 35px;
        line-height: 1.1;
    }
    
    .section-descriptionCarr {
        font-size: 1.1rem;
        line-height: 1.5;
        margin-bottom: 50px;
        max-width: 85%;
    }
}

/* Tablets: 613px - 768px */
@media screen and (max-width: 768px) and (min-width: 613px) {
  .seccion-doble {
      gap: 80px;
      padding: 60px 80px;
  }

  .columna-izquierda h1 {
      font-size: 70px;
  }

  .columna-derecha {
      width: 270px;
      height: 300px;
  }

  .columna-derecha img {
      width: 160px;
  }

  .seccion-confianza {
    background-color: #000000;
    border-radius: 40px 40px 0 0;
    padding: 10px 20px;
    text-align: center;
  }

  .seccion-confianza h1 {
    color: #ffffff;
    font-size: 30px;
    font-weight: 500px;
    line-height: 35px;
    margin-bottom: 15px;
    letter-spacing: 1px;
  }

  .contenedor-tarjetas {
      grid-template-columns: 1fr; /* Una sola columna */
      gap: 20px; /* Reducir el gap para pantallas pequeñas */
  }

  .tarjeta-servicio {
      height: 300px; 
      width: auto;/* Altura reducida para mobile */
      border-radius: 24px; /* Radio más pequeño */
      margin-bottom: 10px; 
  }

  .overlay {
      padding: 40px 20px; /* Padding reducido */
  }

  .overlay h3 {
      font-size: 24px; /* Texto más pequeño */
      margin: 0 0 10px 0;
      min-height: auto; /* Eliminar altura mínima fija */
      line-height: 1.2;
  }

  .hero1 {
      height: 85vh; /* Altura completa de pantalla */
      justify-content: center; /* Centrar contenido */
      align-items: flex-start;
      padding-top: 80px; /* Espacio desde arriba */
  }

  .hero-overlay1 {
      position: relative; /* Cambiar a relativo */
      width: 100%; /* Ancho completo */
      height: auto; /* Altura automática */
      background-color: rgba(0, 0, 0, 0.5); /* Más oscuro para legibilidad */
      backdrop-filter: blur(5px); /* Más desenfoque */
      padding: 30px 20px; /* Padding uniforme */
      text-align: center; /* Centrar texto */
      border-radius: 20px; /* Bordes redondeados */
      margin: 0 15px; /* Margen lateral */
  }

  .hero-text1 {
      max-width: 100%; /* Ancho completo */
      width: 100%;
  }

  .por-que {
      font-size: 32px; /* Mucho más pequeño */
      margin: 0 0 15px 0;
      line-height: 1.1;
      text-align: center; /* Centrar */
  }

  .elegirnos {
      font-size: 32px; /* Mucho más pequeño */
      margin: 0 0 20px 0; /* Resetear márgenes */
      line-height: 1.1;
      align-self: auto; /* Resetear alineación */
      margin-top: 0; /* Resetear margin-top */
      text-align: center; /* Centrar */
  }

  .hero-text p {
      margin-bottom: 25px;
      line-height: 1.4;
      width: 100%; /* Ancho completo */
      font-size: 14px; /* Texto más pequeño */
      text-align: center;
  }

  .btn {
      padding: 12px 30px; /* Botón más pequeño */
      margin: 0 auto 20px auto; /* Centrar y reducir margen */
      font-size: 14px; /* Texto más pequeño */
      display: block; /* Bloque para centrarlo */
      width: fit-content; /* Solo el ancho necesario */
      border-radius: 25px; /* Radio más pequeño */
  }

  /*PAGINA DE SERVICIOOOOOOOOOOOS ----------------------------------------------------------------------------------------*/

  .security-container {
        height: 450px;
        padding-top: 17%;
    }
    
    .text-content {
        font-size: 40px;
        padding-left: 0px;
        padding-top: 25%;
    }
    
    .image-section {
        width: 100%;
        border-top-right-radius: 30px;
        border-bottom-right-radius: 30px;
    }
    
    .image-section::before {
        border-top-right-radius: 30px;
        border-bottom-right-radius: 30px;
    }
    
    .background-section {
        width: 50%;
    }
    
    .line1, .line2, .line3 {
        margin-bottom: 6px;
    }

    .line1 {
        padding-left: 240px;
    }

    .line2 {
        padding-left: 245px;
    }

    .line3 {
        padding-left: 252px;
    }

    /* Texto blanco que está sobre la imagen */
    .white-text {
        color: white;
        text-shadow: 2px 2px 6px rgba(255, 255, 255, 0.107);
    }

    /* Texto negro que está sobre el fondo gris */
    .black-text {
        color: #000;
        text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.339);
    }

    .fondo {
        padding: 30px;
        border-radius: 40px;
    }
    
    .fondo::before {
        width: 8px;
        transform: rotate(-42deg);
    }
    
    .cards-container2 {
        grid-template-columns: 1fr 1fr;
        gap: 18px;
        padding-top: 6%;
    }
    
    .card {
        border-radius: 40px;
        min-height: 320px;
    }
    
    .card-large,
    .card-large2, 
    .card-large3 {
        grid-column: span 2;
    }
    
    .card-small-1,
    .card-small-2 {
        grid-column: span 1;
    }
    
    .card-content {
        padding: 25px;
    }
    
    .card-large .card-content,
    .card-large2 .card-content,
    .card-large3 .card-content {
        max-width: 65%;
        margin-left: auto;
        min-height: 100%;
        border-top-right-radius: 40px;
        border-top-left-radius: 0px;
        border-bottom-left-radius: 0px;
        border-bottom-right-radius: 40px;
    }
    
    .card-large .card-content.expanded,
    .card-large2 .card-content.expanded,
    .card-large3 .card-content.expanded {
        max-width: 100%;
        margin-left: 0;
    }
    
    .card-small-1 .card-content,
    .card-small-2 .card-content {
        max-width: 100%;
        margin-left: 0;
        border-bottom-left-radius: 40px;
        border-bottom-right-radius: 40px;
        border-top-right-radius: 0px;
        border-top-left-radius: 0px;
        padding: 20px;
        min-height: 55%;
    }
    
    .card-title {
        font-size: 1.6rem;
        margin-bottom: 12px;
    }
    
    .card-small-1 .card-title,
    .card-small-2 .card-title {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    
    .card-description {
        font-size: 0.95rem;
        margin-bottom: 18px;
        line-height: 1.5;
    }
    
    .card-small-1 .card-description,
    .card-small-2 .card-description {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }
    
    .expand-btn {
        padding: 10px 18px;
        font-size: 0.9rem;
        min-width: 115px;
        bottom: 18px;
    }
    
    .card-small-1 .expand-btn {
        transform: translateX(-50%);
        bottom: 3px;
        padding: 3px 6px;
    }

    .card-large2 .card-content.expanded .expand-btn {
        left: 85%;
        transform: translateX(-50%);
        bottom: 8px;
        padding: 3px 6px;
    }

    .card-large3 .card-content.expanded .expand-btn {
        left: 50%;
        transform: translateX(-50%);
        bottom: 0px;
    }

    .card-small-1 .card-content.expanded .expand-btn,
    .card-small-2 .card-content.expanded .expand-btn {
        left: 60%;
        transform: translateX(-50%);
        bottom: 7px;
        padding: 2px 6px;
    }
    
    .extra-content.expanded {
        max-height: 700px;
    }
    
    .card-small-1 .extra-content.expanded,
    .card-small-2 .extra-content.expanded {
        max-height: 500px;
    }
    
    .extra-text,
    .extra-text2,
    .extra-item,
    .extra-item2 {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    /*PAGINA DE NOSOTROOOOOOOOOOOOOOOOOOOOOOOOS ----------------------------------------------------------------------------------------*/
    .hero-section {
        height: 95vh;
        align-items: flex-start;
        padding-top: 80px;
        border-bottom-right-radius: 35px;
        border-bottom-left-radius: 35px;
    }
    
    .hero-background {
        height: 95vh;
        border-bottom-right-radius: 35px;
        border-bottom-left-radius: 35px;
    }
    
    .hero-content {
        flex-direction: column;
        justify-content: space-between;
    }
    
    .hero-text {
        margin-left: 0;
        max-width: 100%;
        padding: 0 1rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 55px;
        margin-top: 35px;
        margin-bottom: 1rem;
        color: white;
        text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    }
    
    .hero-description {
        position: relative;
        justify-content: center;
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
    }
    
    .hero-description-content {
        max-width: 100%;
        padding: 25px 20px;
        text-align: center;
    }
    
    .hero-description p {
        font-size: 27px;
        line-height: 1.4;
    }

    .seccion-mision {
        padding: 20px 20px;
        text-align: center;
        background-color: #ffffff;
    }


    .titulo-mision {
        font-size:  55px;
        line-height: 90px;
        margin-bottom: 5px;
        font-weight: 600;
        color: #000000;
    }

    .tarjeta-mision {
        flex-direction: column-reverse;
        background-color: white;
        border-radius: 0 0 36px 36px;
        box-shadow: 0 2px 0px rgba(0, 50, 116, 0.2);
        
    }

    .columna-izquierda2,
    .columna-derecha2 {
        flex: 1;
        padding: 0px;
    }

    .columna-izquierda2 {
        flex: 1;
        padding: 0px;
        display: flex;
        flex-direction: column; 
        
    }

    .columna-izquierda2 h3 {
        font-size: 28px;
        line-height: 30px;
        margin-bottom: 10px;
        font-weight: 500;
        color: #000000;
    }

    .columna-izquierda2 p {
        font-size: 24px;
        line-height: 30px;
        font-weight: 400;
        color: #000000;
    }

    .columna-derecha2 img {
        width: 100%;
        border-radius: 15px;
        object-fit: cover;
    }

    /*----------------------------------*/
    .training-section {
        padding-bottom: 40px;
    }
    
    .container {
        max-width: 95%;
        padding: 0 15px;
    }
    
    .section-header {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .section-title {
        font-size: 42px;
        margin-bottom: -25px;
    }
    
    .section-title2 {
        font-size: 42px;
        margin-bottom: 1.2rem;
    }
    
    .section-description {
        font-size: 22px;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .cards-container {
        border-radius: 12px;
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    }
    
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 2rem;
    }
    
    .training-card {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .card-title {
        font-size: 20px;
        line-height: 1.3;
    }
    
    .background-image::before {
        width: 120px;
        height: 120px;
        top: 15%;
        left: 8%;
    }
    
    .background-image::after {
        width: 100px;
        height: 100px;
        top: 65%;
        right: 12%;
    }

    /*-----------------------------------*/
    .seccion-filos {
        padding-bottom: 30px;
    }
    
    .titulo-misionfilos {
        font-size: 45px;
        line-height: 55px;
        margin-bottom: 20px;
        text-align: center;
        padding: 0 20px;
    }
    
    .tarjeta-misionfilos {
        flex-direction: column;
        max-width: 95%;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .columna-izquierdafilos {
        order: 2;
        padding: 20px 15px;
        text-align: center;
    }
    
    .columna-izquierdafilos p {
        font-size: 22px;
        line-height: 32px;
        max-width: 90%;
        margin: 0 auto 20px auto;
    }
    
    .columna-derechafilos {
        order: 1;
        padding: 15px;
        padding-left: 15px;
    }
    
    .columna-derechafilos img {
        padding-top: 20px;
        border-radius: 10px;
        border-radius: 55px;
    }

    .protocols-section {
        padding: 60px 12px;
        min-height: 80vh;
        border-radius: 35px;
    }
    
    .containerCarr {
        max-width: 100%;
        padding: 0 10px;
    }
    
    .section-titleCarr {
        font-size: 2.5rem;
        margin-bottom: 30px;
        line-height: 1.2;
        padding: 0 10px;
    }
    
    .section-descriptionCarr {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 45px;
        max-width: 90%;
        padding: 0 5px;
    }
  
}

/* Tablets pequeñas: 481px - 612px */
@media screen and (max-width: 612px) and (min-width: 481px) {
  .seccion-doble {
      flex-direction: column;
      gap: 40px;
      padding: 50px 60px;
      text-align: center;
  }

  .columna-izquierda h1 {
      font-size: 60px;
  }

  .columna-derecha {
      width: 350px;
      height: 380px;
  }

  .columna-derecha img {
      width: 200px;
  }

  .seccion-confianza {
    background-color: #000000;
    border-radius: 40px 40px 0 0;
    padding: 10px 20px;
    text-align: center;
  }

  .seccion-confianza h1 {
    color: #ffffff;
    font-size: 30px;
    font-weight: 500px;
    line-height: 35px;
    margin-bottom: 15px;
    letter-spacing: 1px;
  }

  .contenedor-tarjetas {
      grid-template-columns: 1fr; /* Una sola columna */
      gap: 20px; /* Reducir el gap para pantallas pequeñas */
  }

  .tarjeta-servicio {
      height: 300px; 
      width: auto;/* Altura reducida para mobile */
      border-radius: 24px; /* Radio más pequeño */
      margin-bottom: 10px; 
  }

  .overlay {
      padding: 40px 20px; /* Padding reducido */
  }

  .overlay h3 {
      font-size: 24px; /* Texto más pequeño */
      margin: 0 0 10px 0;
      min-height: auto; /* Eliminar altura mínima fija */
      line-height: 1.2;
  }

  .hero1 {
      height: 85vh; /* Altura completa de pantalla */
      justify-content: center; /* Centrar contenido */
      align-items: flex-start;
      padding-top: 80px; /* Espacio desde arriba */
  }

  .hero-overlay1 {
      position: relative; /* Cambiar a relativo */
      width: 100%; /* Ancho completo */
      height: auto; /* Altura automática */
      background-color: rgba(0, 0, 0, 0.5); /* Más oscuro para legibilidad */
      backdrop-filter: blur(5px); /* Más desenfoque */
      padding: 30px 20px; /* Padding uniforme */
      text-align: center; /* Centrar texto */
      border-radius: 20px; /* Bordes redondeados */
      margin: 0 15px; /* Margen lateral */
  }

  .hero-text1 {
      max-width: 100%; /* Ancho completo */
      width: 100%;
  }

  .por-que {
      font-size: 32px; /* Mucho más pequeño */
      margin: 0 0 15px 0;
      line-height: 1.1;
      text-align: center; /* Centrar */
  }

  .elegirnos {
      font-size: 32px; /* Mucho más pequeño */
      margin: 0 0 20px 0; /* Resetear márgenes */
      line-height: 1.1;
      align-self: auto; /* Resetear alineación */
      margin-top: 0; /* Resetear margin-top */
      text-align: center; /* Centrar */
  }

  .hero-text p {
      margin-bottom: 25px;
      line-height: 1.4;
      width: 100%; /* Ancho completo */
      font-size: 14px; /* Texto más pequeño */
      text-align: center;
  }

  .btn {
      padding: 12px 30px; /* Botón más pequeño */
      margin: 0 auto 20px auto; /* Centrar y reducir margen */
      font-size: 14px; /* Texto más pequeño */
      display: block; /* Bloque para centrarlo */
      width: fit-content; /* Solo el ancho necesario */
      border-radius: 25px; /* Radio más pequeño */
  }
  /*PAGINA DE SERVICIOOOOOOOOOOOS ----------------------------------------------------------------------------------------*/

    .security-container {
        height: 350px;
        flex-direction: column;
        padding-top: 0%;
        border-radius: 0px;
    }
    
    .image-section {
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        position: relative;
        border-radius: 0px;
    }
    
    .image-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.3);
        border-top-right-radius: 0px;
        border-bottom-right-radius: 0px;
    }
    
    .background-section {
        width: 100%;
        height: 0%;
    }
    
    .text-content {
        font-size: 37px;
        padding-left: 0;
        padding-top: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        height: 100%;
        line-height: 1.0;
    }
    
    .line1, .line2, .line3 {
        margin-bottom: 4px;
    }
    
    .line2 {
        padding-left: 3px;
    }
    
    .line3 {
        padding-left: 6px;
    }
    
    .white-text, .black-text {
        color: white;
        text-shadow: 2px 2px 6px rgba(255, 255, 255, 0.299);
    }

    .seccion-seguridad {
        padding: 30px 15px;
        justify-content: center;
        text-align: center;
    }
    
    .seccion-seguridad .contenedor-texto {
        max-width: 100%;
        font-size: 22px;
        line-height: 1.8; /* Más espaciado para móviles */
        font-weight: 400; /* Ligeramente más bold para pantallas pequeñas */
    }

    .fondo {
        padding: 25px;
        border-radius: 35px;
    }
    
    .fondo::before {
        width: 7px;
        transform: rotate(-45deg);
    }
    
    .cards-container2 {
        grid-template-columns: 1fr;
        gap: 18px;
        padding-top: 8%;
    }
    
    .card {
        border-radius: 35px;
        min-height: 300px;
    }
    
    .card-large,
    .card-large2, 
    .card-large3,
    .card-small-1,
    .card-small-2 {
        grid-column: span 1;
    }
    
    .card-content {
        padding: 25px;
        border-radius: 35px;
    }
    
    .card-large .card-content,
    .card-large2 .card-content,
    .card-large3 .card-content {
        max-width: 100%;
        margin-left: 0;
        min-height: 65%;
        border-top-right-radius: 0px;
        border-top-left-radius: 0px;
        border-bottom-left-radius: 35px;
        border-bottom-right-radius: 35px;
    }
    
    .card-small-1 .card-content,
    .card-small-2 .card-content {
        border-bottom-left-radius: 35px;
        border-bottom-right-radius: 35px;
        border-top-right-radius: 0px;
        border-top-left-radius: 0px;
        padding: 18px;
        min-height: 55%;
    }
    
    .card-title {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }
    
    .card-description {
        font-size: 0.9rem;
        margin-bottom: 18px;
        line-height: 1.45;
    }
    
    .expand-btn {
        padding: 9px 18px;
        font-size: 0.85rem;
        min-width: 110px;
        bottom: 18px;
    }
    
    .card-small-1 .card-content.expanded .expand-btn,
    .card-small-2 .card-content.expanded .expand-btn {
        left: 50%;
        transform: translateX(-50%);
        bottom: 0px;
    }

    .card-small-2 .card-content.expanded .expand-btn {
        left: 85%;
        transform: translateX(-50%);
        bottom: 8px;
        padding: 2px 6px;
    }

    .card-large .card-content.expanded .expand-btn,
    .card-large2 .card-content.expanded .expand-btn,
    .card-large3 .card-content.expanded .expand-btn {
        left: 50%;
        transform: translateX(-50%);
        bottom: 7px;
    }
    
    .extra-content.expanded {
        max-height: 650px;
    }
    
    .card-small-1 .extra-content.expanded,
    .card-small-2 .extra-content.expanded {
        max-height: 550px;
    }
    
    .extra-text,
    .extra-text2,
    .extra-item,
    .extra-item2 {
        font-size: 0.85rem;
        line-height: 1.45;
    }

    /*PAGINA DE NOSOTROOOOOOOOOOOOOOOOOOOOOOOOS ----------------------------------------------------------------------------------------*/
    .hero-section {
        height: 80vh;
        align-items: flex-start;
        padding-top: 80px;
        border-bottom-right-radius: 30px;
        border-bottom-left-radius: 30px;
    }
    
    .hero-background {
        height: 100vh;
        border-bottom-right-radius: 30px;
        border-bottom-left-radius: 30px;
    }
    
    .hero-content {
        flex-direction: column;
        justify-content: space-between;
    }
    
    .hero-text {
        margin-left: 0;
        max-width: 100%;
        padding: 0 1rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 48px;
        margin-top: 0;
        margin-bottom: 1rem;
        color: white;
        text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    }
    
    .hero-description {
        position: relative;
        justify-content: center;
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
    }
    
    .hero-description-content {
        max-width: 100%;
        padding: 25px 20px;
        text-align: center;
    }
    
    .hero-description p {
        font-size: 22px;
        line-height: 1.4;
    }

    .seccion-mision {
        padding: 20px 20px;
        text-align: center;
        background-color: #ffffff;
    }


    .titulo-mision {
        font-size:  48px;
        line-height: 90px;
        margin-bottom: 5px;
        font-weight: 600;
        color: #000000;
    }

    .tarjeta-mision {
        flex-direction: column-reverse;
        background-color: white;
        border-radius: 0 0 36px 36px;
        box-shadow: 0 2px 0px rgba(0, 50, 116, 0.2);
        
    }

    .columna-izquierda2,
    .columna-derecha2 {
        flex: 1;
        padding: 0px;
    }

    .columna-izquierda2 {
        flex: 1;
        padding: 0px;
        display: flex;
        flex-direction: column; 
        
    }

    .columna-izquierda2 h3 {
        font-size: 26px;
        line-height: 30px;
        margin-bottom: 10px;
        font-weight: 500;
        color: #000000;
    }

    .columna-izquierda2 p {
        font-size: 22px;
        line-height: 30px;
        font-weight: 400;
        color: #000000;
    }

    .columna-derecha2 img {
        width: 100%;
        border-radius: 15px;
        object-fit: cover;
    }

    /*-------------------------------*/
    .training-section {
        padding-bottom: 30px;
    }
    
    .container {
        max-width: 100%;
        padding: 0 12px;
    }
    
    .section-header {
        margin-bottom: 1.8rem;
        text-align: center;
    }
    
    .section-title {
        font-size: 32px;
        margin-bottom: -18px;
    }
    
    .section-title2 {
        font-size: 32px;
        margin-bottom: 1rem;
    }
    
    .section-description {
        font-size: 18px;
        line-height: 1.5;
    }
    
    .cards-container {
        border-radius: 10px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        padding: 1.5rem;
    }
    
    .training-card {
        padding: 1.3rem;
        border-radius: 10px;
    }
    
    .training-card:hover {
        transform: translateY(-4px) scale(1.01);
    }
    
    .card-title {
        font-size: 17px;
        line-height: 1.3;
    }
    
    .background-image::before {
        width: 100px;
        height: 100px;
        top: 10%;
        left: 5%;
    }
    
    .background-image::after {
        width: 80px;
        height: 80px;
        top: 70%;
        right: 8%;
    }

    /*-----------------------------------*/
    .seccion-filos {
        padding-bottom: 20px;
    }
    
    .titulo-misionfilos {
        font-size: 36px;
        line-height: 44px;
        margin-bottom: 25px;
        text-align: center;
        padding: 0 15px;
    }
    
    .tarjeta-misionfilos {
        flex-direction: column;
        max-width: 100%;
        padding-bottom: 30px;
        padding-left: 12px;
        padding-right: 12px;
    }
    
    .columna-izquierdafilos {
        order: 2;
        padding: 15px 10px;
        text-align: center;
    }
    
    .columna-izquierdafilos p {
        font-size: 18px;
        line-height: 26px;
        margin: 0 auto 18px auto;
        max-width: 100%;
    }
    
    .columna-derechafilos {
        order: 1;
        padding: 10px;
        padding-left: 10px;
    }
    
    .columna-derechafilos img {
        padding-top: 15px;
        border-radius: 54px;
        max-height: 490px;
        object-fit: cover;
    }

    .protocols-section {
        padding: 50px 10px;
        min-height: 70vh;
        border-radius: 30px;
    }
    
    .containerCarr {
        max-width: 100%;
        padding: 0 8px;
    }
    
    .section-titleCarr {
        font-size: 2.2rem;
        margin-bottom: 25px;
        line-height: 1.1;
        padding: 0 8px;
    }
    
    .section-descriptionCarr {
        font-size: 0.95rem;
        line-height: 1.4;
        margin-bottom: 40px;
        max-width: 100%;
        padding: 0 5px;
    }
}


/* Móviles pequeños: hasta 380px */
@media screen and (max-width: 480px) {
  .seccion-doble {
      flex-direction: column;
      gap: 30px;
      text-align: center;
      align-items: center;
      
  }

  .columna-izquierda h1 {
      font-size: 40px;
      letter-spacing: 0.5px;
      width: 300px;
  }

  .columna-derecha {
      width: 320px;
      height: 320px;
  }

  .columna-derecha img {
      width: 180px;
  }

  .img-2 {
      border: 4px solid white;
      border-radius: 12px;
  }

  .seccion-confianza {
    background-color: #000000;
    border-radius: 40px 40px 0 0;
    padding: 10px 20px;
    text-align: center;
  }

  .seccion-confianza h1 {
    color: #ffffff;
    font-size: 30px;
    font-weight: 500px;
    line-height: 35px;
    margin-bottom: 15px;
    letter-spacing: 1px;
  }

  .contenedor-tarjetas {
      grid-template-columns: 1fr; /* Una sola columna */
      gap: 20px; /* Reducir el gap para pantallas pequeñas */
  }

  .tarjeta-servicio {
      height: 300px; 
      width: auto;/* Altura reducida para mobile */
      border-radius: 24px; /* Radio más pequeño */
      margin-bottom: 10px; 
  }

  .overlay {
      padding: 40px 20px; /* Padding reducido */
  }

  .overlay h3 {
      font-size: 24px; /* Texto más pequeño */
      margin: 0 0 10px 0;
      min-height: auto; /* Eliminar altura mínima fija */
      line-height: 1.2;
  }

  .hero1 {
      height: 80vh; /* Altura completa de pantalla */
      justify-content: center; /* Centrar contenido */
      align-items: flex-start;
      padding-top: 80px; /* Espacio desde arriba */
  }

  .hero-overlay1 {
      position: relative; /* Cambiar a relativo */
      width: 100%; /* Ancho completo */
      height: auto; /* Altura automática */
      background-color: rgba(0, 0, 0, 0.5); /* Más oscuro para legibilidad */
      backdrop-filter: blur(5px); /* Más desenfoque */
      padding: 30px 20px; /* Padding uniforme */
      text-align: center; /* Centrar texto */
      border-radius: 20px; /* Bordes redondeados */
      margin: 0 15px; /* Margen lateral */
  }

  .hero-text1 {
      max-width: 100%; /* Ancho completo */
      width: 100%;
  }

  .por-que {
      font-size: 32px; /* Mucho más pequeño */
      margin: 0 0 15px 0;
      line-height: 1.1;
      text-align: center; /* Centrar */
  }

  .elegirnos {
      font-size: 32px; /* Mucho más pequeño */
      margin: 0 0 20px 0; /* Resetear márgenes */
      line-height: 1.1;
      align-self: auto; /* Resetear alineación */
      margin-top: 0; /* Resetear margin-top */
      text-align: center; /* Centrar */
  }

  .hero-text p {
      margin-bottom: 25px;
      line-height: 1.4;
      width: 100%; /* Ancho completo */
      font-size: 14px; /* Texto más pequeño */
      text-align: center;
  }

  .btn {
      padding: 12px 30px; /* Botón más pequeño */
      margin: 0 auto 20px auto; /* Centrar y reducir margen */
      font-size: 14px; /* Texto más pequeño */
      display: block; /* Bloque para centrarlo */
      width: fit-content; /* Solo el ancho necesario */
      border-radius: 25px; /* Radio más pequeño */
  }

  /*PAGINA DE SERVICIOOOOOOOOOOOS ----------------------------------------------------------------------------------------*/

  .security-container {
        height: 350px;
        flex-direction: column;
        padding-top: 0%;
        border-radius: 0px;
        
    }
    
    .image-section {
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        position: relative;
        border-radius: 0px;
    }
    
    .image-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.3);
        border-top-right-radius: 0px;
        border-bottom-right-radius: 0px;
    }
    
    .background-section {
        width: 100%;
        height: 0%;
    }
    
    .text-content {
        font-size: 26px;
        padding-left: 0;
        padding-top: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;

        height: 100%;
        line-height: 1.0;
    }
    
    .line1, .line2, .line3 {
        margin-bottom: 4px;
    }
    
    .line2 {
        padding-left: 3px;
    }
    
    .line3 {
        padding-left: 6px;
    }
    
    .white-text, .black-text {
        color: white;
        text-shadow: 2px 2px 6px rgba(255, 255, 255, 0.299);
    }

    .seccion-seguridad {
        padding: 30px 15px;
        justify-content: center;
        text-align: center;
    }
    
    .seccion-seguridad .contenedor-texto {
        max-width: 100%;
        font-size: 16px;
        line-height: 1.8; /* Más espaciado para móviles */
        font-weight: 400; /* Ligeramente más bold para pantallas pequeñas */
    }

    .fondo {
        padding: 20px;
        border-radius: 25px;
    }
    
    .fondo::before {
        width: 5px;
        transform: rotate(-50deg);
    }
    
    .cards-container2 {
        grid-template-columns: 1fr;
        gap: 15px;
        padding-top: 10%;
    }
    
    .card {
        border-radius: 25px;
        min-height: 280px;
    }
    
    .card-large,
    .card-large2, 
    .card-large3,
    .card-small-1,
    .card-small-2 {
        grid-column: span 1;
    }
    
    .card-content {
        padding: 20px;
        border-radius: 25px;
    }
    
    .card-large .card-content,
    .card-large2 .card-content,
    .card-large3 .card-content {
        max-width: 100%;
        margin-left: 0;
        min-height: 70%;
        border-top-left-radius: 0px;
        border-top-right-radius: 0px;
        border-bottom-left-radius: 25px;
        border-bottom-right-radius: 25px;
    }
    
    .card-small-1 .card-content,
    .card-small-2 .card-content {
        border-bottom-left-radius: 25px;
        border-bottom-right-radius: 25px;
        border-top-left-radius: 0px;
        border-top-right-radius: 0px;
        padding: 15px;
        min-height: 60%;
    }
    
    .card-title {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    
    .card-description {
        font-size: 0.85rem;
        margin-bottom: 15px;
        line-height: 1.4;
    }
    
    .expand-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
        min-width: 100px;
        bottom: 7px;
    }
    
    .card-small-1 .card-content.expanded .expand-btn,
    .card-small-2 .card-content.expanded .expand-btn {
        left: 50%;
        transform: translateX(-50%);
        bottom: 0px;
        padding: 1px 6px;
    }

    .card-large .card-content.expanded .expand-btn,
    .card-large2 .card-content.expanded .expand-btn {
        left: 60%;
        transform: translateX(-50%);
        bottom: 0px;
    }

    .card-large3 .card-content.expanded .expand-btn {
        left: 65%;
        transform: translateX(-50%);
        bottom: 4px;
        padding: 3px 6px;
    }

    
    .extra-content.expanded {
        max-height: 600px;
    }
    
    .card-small-1 .extra-content.expanded,
    .card-small-2 .extra-content.expanded {
        max-height: 500px;
    }
    
    .extra-text,
    .extra-text2,
    .extra-item,
    .extra-item2 {
        font-size: 0.8rem;
        line-height: 1.4;
    }

     /*PAGINA DE NOSOTROOOOOOOOOOOOOOOOOOOOOOOOS ----------------------------------------------------------------------------------------*/

     .hero-section {
        height: 60vh;
        width: 100%;
        align-items: flex-start;
        padding-top: 60px;
        border-bottom-right-radius: 25px;
        border-bottom-left-radius: 25px;
    }
    
    .hero-background {
        height: 100%;
        border-bottom-right-radius: 25px;
        border-bottom-left-radius: 25px;
    }
    
    .hero-content {
        flex-direction: column;
        justify-content: space-between;
        padding: 0;
    }
    
    .hero-text {
        margin-left: 0;
        max-width: 100%;
        padding: 0 0.8rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 36px;
        margin-top: 0;
        margin-bottom: 0.8rem;
        color: white;
        text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
        line-height: 1.2;
    }
    
    .hero-description {
        position: relative;
        justify-content: center;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.4);
    }
    
    .hero-description-content {
        max-width: 100%;
        padding: 20px 15px;
        text-align: center;
    }
    
    .hero-description p {
        font-size: 18px;
        line-height: 1.3;
    }

    .seccion-mision {
        padding: 20px 20px;
        text-align: center;
        background-color: #ffffff;
    }


    .titulo-mision {
        font-size:  36px;
        line-height: 90px;
        margin-bottom: 5px;
        font-weight: 600;
        color: #000000;
    }

    .tarjeta-mision {
        flex-direction: column-reverse;
        background-color: white;
        border-radius: 0 0 36px 36px;
        box-shadow: 0 2px 0px rgba(0, 50, 116, 0.2);
        
    }

    .columna-izquierda2,
    .columna-derecha2 {
        flex: 1;
        padding: 0px;
    }

    .columna-izquierda2 {
        flex: 1;
        padding: 0px;
        display: flex;
        flex-direction: column; 
        
    }

    .columna-izquierda2 h3 {
        font-size: 24px;
        line-height: 30px;
        margin-bottom: 10px;
        font-weight: 500;
        color: #000000;
    }

    .columna-izquierda2 p {
        font-size: 18px;
        line-height: 30px;
        font-weight: 400;
        color: #000000;
    }

    .columna-derecha2 img {
        width: 100%;
        border-radius: 15px;
        object-fit: cover;
    }

    /*--------------------------------*/
    .training-section {
        padding-bottom: 25px;
    }
    
    .container {
        max-width: 100%;
        padding: 0 10px;
    }
    
    .section-header {
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    .section-title {
        font-size: 26px;
        margin-bottom: -15px;
        line-height: 1.2;
    }
    
    .section-title2 {
        font-size: 26px;
        margin-bottom: 0.8rem;
        line-height: 1.2;
    }
    
    .section-description {
        font-size: 16px;
        line-height: 1.4;
        padding: 0 5px;
    }
    
    .cards-container {
        border-radius: 8px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
        padding: 1.2rem;
    }
    
    .training-card {
        padding: 1.1rem;
        border-radius: 8px;
    }
    
    .training-card:hover {
        transform: translateY(-2px);
    }
    
    .card-title {
        font-size: 15px;
        line-height: 1.2;
    }
    
    .background-image::before {
        width: 80px;
        height: 80px;
        top: 8%;
        left: 3%;
    }
    
    .background-image::after {
        width: 60px;
        height: 60px;
        top: 75%;
        right: 5%;
    }
    
    .training-section::after {
        height: 4px;
    }

    /*--------------------------------------*/
    .seccion-filos {
        padding-bottom: 15px;
    }
    
    .titulo-misionfilos {
        font-size: 28px;
        line-height: 34px;
        margin-bottom: 20px;
        text-align: center;
        padding: 0 10px;
    }
    
    .tarjeta-misionfilos {
        flex-direction: column;
        max-width: 100%;
        padding-bottom: 25px;
        padding-left: 8px;
        padding-right: 8px;
    }
    
    .columna-izquierdafilos {
        order: 2;
        padding: 12px 8px;
        text-align: center;
    }
    
    .columna-izquierdafilos p {
        font-size: 16px;
        line-height: 24px;
        margin: 0 auto 15px auto;
        max-width: 100%;
    }
    
    .columna-derechafilos {
        order: 1;
        padding: 8px;
        padding-left: 8px;
        border-radius: 20px;
    }
    
    .columna-derechafilos img {
        padding-top: 10px;
        border-radius: 50px;
        max-height: 400px;
        object-fit: cover;
    }

    .protocols-section {
        padding: 40px 8px;
        min-height: 60vh;
        border-radius: 25px;
    }
    
    .containerCarr {
        max-width: 100%;
        padding: 0 5px;
    }
    
    .section-titleCarr {
        font-size: 1.8rem;
        margin-bottom: 20px;
        line-height: 1.1;
        padding: 0 5px;
    }
    
    .section-descriptionCarr {
        font-size: 0.9rem;
        line-height: 1.3;
        margin-bottom: 35px;
        max-width: 100%;
        padding: 0 3px;
    }

    

}
















/*MEDIA QUERY DE MENU HAMBURGUESA Y DE FOOTER*/
@media (max-width: 768px) {
    .footer-container {
      padding: 30px 25px;
      min-height: 350px;
      border-radius: 40px;
    }

    .footer-main-content {
    flex-direction: column;
    text-align: center;
    gap: 25px;
    }

    .footer-nav ul {
    text-align: center;
    display:flex;
    flex-wrap: wrap;
    justify-content:center;
    gap: 10px;
    }

    .footer-nav ul li {
    margin: 5px;
    }

    .footer-social {
    text-align: center;
    }

    .social-icons {
    flex-direction: row;
    justify-content: center;
    gap: 20px;
    }

    .footer-copy-inside {
    font-size: 13px;
    margin-top: 20px;
    padding-top: 15px;
    }
}

@media (max-width: 480px) {
  .footer-container {
    padding: 25px 20px;
    border-radius: 30px;
  }

  .footer-logo img {
    width: 80px;
    height: 80px;
  }

  .social-icons img {
    width: 35px;
    height: 35px;
    padding: 6px;
  }
}

/* Evitar efecto azul/selección al tocar en móviles para tarjetas y botones */
.card, .card *, .card .expand-btn {
    -webkit-tap-highlight-color: transparent; /* iOS y Chrome móvil */
    outline: none; /* Quita borde de foco */
}
