/* =================================================================
   ESTILOS GENERALES
================================================================= */
body {
    font-family: 'Poppins', sans-serif;
}

/* =================================================================
   ESTILOS PARA TÍTULOS DE SECCIÓN
================================================================= */
/* --- ESTILO BASE (Común para todos los títulos) --- */
.titulo-seccion {
    font-family: 'Helvetica', Arial, sans-serif;
    font-size: 2.5rem;
    margin-bottom: 4rem;
}
.titulo-seccion strong {
    font-weight: 700; /* Negrita estándar para la parte resaltada */
}


/* =================================================================
   SECCIÓN HEROICA
================================================================= */
.seccion-heroica {
    position: relative; 
    min-height: 95vh; 
    background-image: url("../img/fondo-portada.png");
    background-size: cover; 
    background-position: center; 
    color: #ffffff; 
    display: flex;
    flex-direction: column; 
}

.contenido-heroico {
    flex-grow: 1; 
    display: flex;
    align-items: center; 
}
.titulo-heroico {
    font-family: 'Helvetica', Arial, sans-serif;
    font-size: 3.5rem; 
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.2;
}
.subtitulo-heroico {
    font-size: 1.25rem; 
    font-weight: 400; 
    margin: 1.5rem 0; 
    color: #e0e0e0; 
}

/* =================================================================
   BARRA DE NAVEGACIÓN
================================================================= */
.logo-empresa {
    height: 120px;
}
.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    color: #ffffff; 
    transition: color 0.3s ease;
    font-size: 1.1rem;
}
.navbar-nav .nav-link:hover {
    color: #c9a441; 
}
.navbar-nav .nav-link.active {
    font-weight: 600;
    color: #ffffff !important; 
}
.btn-contacto {
    display: inline-block;
    background-color: #ffffff;
    color: #000000;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    border-radius: 10px; 
    padding: 0.5rem 1.5rem; 
    font-size: 1.1rem;
    transition: all 0.3s ease; 
}
.btn-contacto:hover {
    background-color: #e0e0e0;
    color: #000000;
}
.btn-conocer-mas {
    display: inline-block;
    background-color: #9d1a2d; 
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    border-radius: 12px; 
    padding: 0.6rem 1.8rem; 
    transition: all 0.3s ease;
}
.btn-conocer-mas:hover {
    background-color: #7c1523; 
}

/* =================================================================
   CAJA DE INFORMACIÓN (SECCIÓN HEROICA)
================================================================= */
.contenedor-caja-info {
    position: absolute; 
    bottom: 50px; 
    right: 80px;
}
.imagen-caja-info {
    max-width: 400px;
    height: auto;
}


/* =================================================================
  SECCIÓN ¿QUIÉNES SOMOS?
================================================================= */
.seccion-quienes-somos {
    padding: 5rem 0;
    background-color: #ffffff; /* Fondo gris claro para que la tarjeta blanca resalte */
}

/* --- Título Corregido --- */
.seccion-quienes-somos .titulo-seccion {
    color: #99a3ac; /* 1. Color gris para la parte delgada */
    text-align: left;
    font-size: 4em;
    font-weight: 700;
    margin-bottom: .5em;
    text-transform: uppercase; /* Asegura que esté en mayúsculas */
}

.seccion-quienes-somos .titulo-seccion strong {
    color: #000000; /
    font-weight: 700; 
}

.contenedor-collage {
    position: relative;
    padding-right: 50px;
}
.banner-elite-img {
    position: absolute;
    bottom: -35px;
    right: 20px;
    width: 250px;
    height: auto;
    border-radius: 12px;
}

.tarjeta-info {
    background-color: #ffffff;
    padding: 2.5rem;
    padding-top: 5rem;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    /* --- CAMBIO AQUÍ --- */
    /* Cambiamos space-between por flex-start para alinear todo arriba */
    justify-content: flex-start;
}

.caja-experiencia {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    background-color: #800020;
    color: #ffffff;
    text-align: center;
    padding: 0.8rem 1rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(139, 0, 0, 0.4);
}
.texto-experiencia {
    font-size: 1.5em;
    font-weight: bold;
    line-height: 1.3;
    margin: 0;
}
.estoperol {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 25px;
}
.estoperol-izquierda { left: 20px; }
.estoperol-derecha { right: 20px; }

/* --- Descripción Corregida --- */
.descripcion {
    font-size: 1.5em;
    color: #333;
    line-height: 1.7;
    text-align: center;
    margin-top: 20px;
    /* --- CAMBIO AQUÍ --- */
    /* Añadimos un margen inferior para separar el texto de los iconos */
    margin-bottom: 2.5rem; 
}
.descripcion strong {
    color: #000;
}

/* --- Características (Iconos) Corregidas --- */
.icono-caracteristica {
    height: 35px;
    margin-bottom: 0.8rem;
}
.texto-caracteristica {
    color: #555;
    line-height: 1.4;
    font-weight: 500;
}
.texto-caracteristica strong {
    color: #000;
}



/* =======================================================
   SECCIÓN NUESTRA IDENTIDAD
======================================================= */
.seccion-identidad {
    background-color: #000000;
    padding: 6rem 0;
    background-image: url('../img/LEON.png');
    background-repeat: no-repeat;
    background-position: right center;
    background-size: contain;
}

/* TÍTULO */
.seccion-identidad .titulo-seccion {
    color: rgba(255, 255, 255, 0.7);
    text-align: left;
    font-size: 4em;
    font-weight: 700;
    margin-bottom: 1rem;
}

.seccion-identidad .titulo-seccion strong {
    color: #ffffff;
    font-weight: 800;
}

/* SUBTÍTULO */
.subtitulo-seccion {
    font-size: 1.5em;
    max-width: 1000px;
    color: #ffffff;
    text-align: left;
    margin-bottom: 3rem;
}

/* FILAS */
.fila-identidad {
    margin-top: 3rem;
}

/* NAV PESTAÑAS */
.nav-identidad {
    background-color: #ffffff;
    border-radius: 15px;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.nav-identidad .nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 1.25rem;
    margin-bottom: 0.5rem;
    border-radius: 12px;
    color: #343a40;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    background: transparent;
}

.nav-identidad .nav-link:last-child {
    margin-bottom: 0;
}

.nav-identidad .nav-link.active {
    background-color: #34495e;
    color: #ffffff;
}

.nav-identidad .nav-link img {
    height: 32px;
    transition: filter 0.3s ease;
}

.nav-identidad .nav-link.active img {
    filter: brightness(0) invert(1);
}

/* CONTENIDO */
.tab-content .tab-pane {
    background-color: #ffffff;
    color: #343a40;
    padding: 2.5rem;
    border-radius: 20px;
}

/* Header del tab */
.identidad-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 1.5rem;
}

.icono-contenido {
    height: 60px;
    width: 60px;
}

/* Textos dentro del tab */
.identidad-titulo {
    font-family: 'Helvetica', Arial, sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.identidad-subtitulo {
    font-size: 1rem;
    color: #000000;
    margin: 0;
}

.identidad-texto {
    font-size: 1rem;
    line-height: 1.7;
    color: #000000;
    margin-top: 1rem;
}

/* =======================================================
   RESPONSIVE - MOBILE
======================================================= */

@media (max-width: 992px) {
    .seccion-identidad {
        background-position: center bottom;
        background-size: 55%;
        padding: 4rem 0;
    }

    .seccion-identidad .titulo-seccion {
        font-size: 3em;
        text-align: left;
    }

    .subtitulo-seccion {
        font-size: 1.2rem;
        margin-bottom: 2.5rem;
    }
}
@media (max-width: 767.98px) {

    .cobertura-header {
        display: flex;
        flex-direction: column;   /* uno debajo del otro */
        align-items: flex-start;
        gap: 0.75rem;
    }

    .presencia-estrategica {
        width: 100%;              /* que no se pegue al borde */
    }

    .btn-buscar {
        width: 100%;              /* botón tipo “full width” */
        text-align: center;
        white-space: normal;      /* que el texto pueda hacer salto de línea */
        font-size: 0.85rem;
        padding: 0.7rem 1rem;
    }
}

/* Por si en algún lado le han puesto un ancho fijo al botón */
.btn-buscar {
    max-width: 100%;
}



/* =================================================================
   SECCIÓN ¿POR QUÉ ELEGIRNOS?
================================================================= */
.seccion-elegirnos {
    padding: 6rem 0;
    background-color: #ffffff;
}

/* Título para la sección: ¿POR QUÉ ELEGIRNOS? */
.seccion-elegirnos .titulo-seccion {
    color: #212529; /* Color base negro para "¿POR QUÉ" */
    text-align: center;
    font-size: 4em;
    font-weight: 800;
}
.seccion-elegirnos .titulo-seccion strong {
    color: #868e96; /* Color gris para "ELEGIRNOS?" */
}


.subtitulo-seccion-claro {
    font-size: 1.5em;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    color: #000000;
    text-align: center;
    margin-bottom: 3rem;
}
.fila-elegirnos {
    margin-top: 3rem;
}
.flip-card {
    background-color: transparent;
    width: 100%;
    height: 320px;
    perspective: 1000px;
}
.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.7s;
    transform-style: preserve-3d;
}
.flip-card-inner.is-flipped {
    transform: rotateY(180deg);
}
.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    background-color: #111111;
    color: white;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.flip-card-back { transform: rotateY(180deg); }
.card-icono {
    max-height: 80px;
    margin-bottom: 1.5rem;
}
.card-titulo {
    font-family: 'Helvetica', Arial, sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
}
.card-footer {
    width: 100%;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 3px solid #2f4f6f;
    text-align: center;
    font-weight: 500;
    color: #a0a0a0;
}
.card-texto-reverso {
    font-size: 1rem;
    text-align: center;
    color: #e0e0e0;
}
/* --- Añade esto a tu CSS para girar con el mouse --- */
.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

/* =================================================================
   DISEÑO RESPONSIVO (PARA MÓVILES)
================================================================= */
@media (max-width: 991.98px) {
    .titulo-heroico, .subtitulo-heroico, .seccion-quienes-somos .titulo-seccion, .tarjeta-info {
        text-align: center;
    }
    .banner-elite-img { right: 15px; bottom: -15px; }
    .tarjeta-info { margin-top: 5rem; }
}
@media (max-width: 767.98px) {
    .seccion-identidad { background-image: none; }
    .nav-identidad { margin-bottom: 2rem; }
    .seccion-identidad .titulo-seccion, .seccion-identidad .subtitulo-seccion {
        text-align: center;
    }
}



/* =================================================================
   SECCIÓN CALL TO ACTION (CTA)
================================================================= */
.seccion-cta {
    padding: 3rem 0;
    background-color: #ffffff; /* Fondo gris claro */
}

.tarjeta-cta {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 3rem;
    position: relative;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.titulo-cta {
    font-family: 'Helvetica', Arial, sans-serif;
    font-size: 2.2rem;
    font-weight: 500;
    color: #000000;
    margin-bottom: 1rem;
}

.titulo-cta strong {
    font-weight: 700;
}

.subtitulo-cta {
    font-size: 1.1rem;
    color: #000000;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.cta-botones {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
    flex-wrap: wrap; /* Para que los botones se apilen en pantallas pequeñas */
}

.btn-cta {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-cta img {
    height: 20px;
}

.btn-primario {
    background-color: #c9a444; /* Tono dorado */
    color: #ffffff;
}
.btn-primario:hover {
    background-color: #b38f3b;
    color: #ffffff;
}

.btn-secundario {
    background-color: #e9ecef; /* Tono gris claro */
    color: #495057;
}
.btn-secundario:hover {
    background-color: #d3d9df;
}

.estoperol-diferencia-uno {
    position: absolute;
    top: 30px;
    left: 20px;
    height: 40px;
}
.estoperol-diferencia-dos {
    position: absolute; /* Clave para posicionarlo dentro del contenedor */
    bottom: 30px;      /* Distancia desde el borde inferior */
    right: 20px;       /* Distancia desde el borde derecho */
    height: 40px;
}



/* =================================================================
   SECCIÓN CLIENTES (Versión Cinta Animada)
================================================================= */

.seccion-clientes {
    padding: 6rem 0;
}

.seccion-clientes .titulo-seccion {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 3em;
     font-weight: 700;
     color: #000;
}

/* Definimos la animación de scroll */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Mueve el contenedor la mitad de su ancho (la longitud del grupo original de logos) */
        transform: translateX(-50%);
    }
}

.cinta-logos {
    overflow: hidden; /* Oculta los logos que están fuera de la vista */
    padding: 40px 0;
    background: white;
    white-space: nowrap; /* Evita que los logos salten de línea */
    position: relative;
}

/* El contenedor que se mueve */
.logos-slide {
    display: inline-block;
    /* La animación se llama 'scroll', dura 35s, es lineal y se repite infinitamente */
    animation: scroll 35s linear infinite;
}

/* Estilo para cada logo en la cinta */
.logos-slide img {
    height: 100px; /* Altura de cada logo */
    margin: 0 40px; /* Espacio entre logos */
    transition: filter 0.3s ease;
}





/* =================================================================
  SECCIÓN COBERTURA
================================================================= */
.seccion-cobertura {
    padding: 6rem 0;
    background-image: linear-gradient(rgba(10, 20, 30, 0.85), rgba(10, 20, 30, 0.85)), url('../img/MUJER-SEGURIDAD.png');
    background-size: cover;
    background-position: center;
}

.cobertura-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.presencia-estrategica {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    font-size: 1.5rem;
    color: #ffffff;
}
.presencia-estrategica img {
    height: 80px;
}
.presencia-estrategica span::before {
    content: '';
    display: inline-block;
    height: 4px;
    width: 100px;
    background-image: linear-gradient(to right, transparent, #c89116);
    margin-right: 15px;
    vertical-align: middle;
}

.seccion-cobertura .titulo-seccion {
    color: #ced4da;
    text-align: center;
    margin-bottom: 1rem;
    font-size: 4em;
    font-weight: 400;
}
.seccion-cobertura .titulo-seccion strong {
    font-weight: 700;
    color: #ffffff;
}

.subtitulo-cobertura {
    color: #ffffff;
    font-size: 2rem;
    max-width: 1200px;
    line-height: 1.6;
    margin: 0 auto 2.5rem auto;
    text-align: center;
}
.subtitulo-cobertura strong {
    font-weight: 600;
}

.btn-buscar {
    background-color: #c9a444;
    color: #ffffff;
    padding: 0.8rem 1.5rem;
    border-radius: 35px;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

.nav-cobertura {
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    padding: 5px;
    margin-bottom: 1.5rem;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
}
.nav-cobertura .nav-link {
    background-color: transparent;
    color: #ffffff;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 2rem;
    flex-grow: 1;
    text-align: center;
}
.nav-cobertura .nav-link.active {
    background-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

.tarjeta-cobertura {
    background-color: #ffffff;
    color: #000000;
    border-radius: 20px;
    font-weight: 200;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.cobertura-titulo-ciudad {
    font-weight: 700;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid #e9ecef;
    width: fit-content;
}

.cobertura-descripcion {
    font-size: 1.1rem;
    color: #000000;
    font-weight: 500;
}

.cobertura-stats {
    display: flex;
    gap: 4rem;
    /* Este margen ahora aplica DENTRO de la columna izquierda */
    margin-top: 2.5rem;
    margin-bottom: 2.5rem; 
}
.stat-item {
    display: flex;
    flex-direction: column;
}
.stat-numero {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fc2126;
}
.stat-texto {
    color: #000000;
    font-weight: 500;
}

.areas-titulo {
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}
.areas-lista {
    list-style: none;
    padding-left: 0;
}
.areas-lista li {
    padding: 0.4rem 0;
    color: #000000;
    font-weight: 500;
}
.areas-lista li::before {
    content: '•';
    color: #000000;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* --- Posicionamiento y Estilo del Marcador del Mapa --- */
.cobertura-mapa {
    position: relative; /* Asegura que .marcador-mapa se posicione relativo a esto */
    display: inline-block; /* Ajusta el contenedor al tamaño de la imagen */
}

.marcador-mapa {
    position: absolute;
    /* POSICIONAMIENTO PRECISO: */
    top: -7%; /* Sube el pin (ajusta 10% si necesitas más/menos altura) */
    left: 45%; /* Centra horizontalmente */
    transform: translateX(-50%); /* Ajuste fino para centrar */
    
    display: flex;       /* Pin y texto en línea */
    flex-direction: row; /* Uno al lado del otro */
    align-items: center; /* Alineados verticalmente */
    gap: 10px;           /* Espacio entre pin y texto */
    z-index: 10;         /* Asegura que esté por encima del mapa */
    white-space: nowrap; /* Evita que el texto se parta */
}

.marcador-mapa img {
    height: 90px; /* Tamaño del pin */
}

.marcador-mapa span {
    font-weight: 700;
    color: #000000;
    font-size: 1.1rem;
    line-height: 1; /* Ajusta la altura de línea del texto */
}

/* =================================================================
   SECCIÓN COMPROMISO DE EXCELENCIA
================================================================= */
.seccion-compromiso {
    padding: 6rem 0;
    background-color: #ffffff;
}
.tarjeta-compromiso {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    padding: 4rem;
    position: relative;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.07);
}

.estoperol-compromiso-superior-izquierdo {
    position: absolute;
    top: 35px;
    height: 40px;
    left: 25px;
}
.estoperol-compromiso-superior-derecho {
    position: absolute;
    height: 40px;
    top: 35px;      /* Distancia desde el borde inferior (igual que la superior) */
    right: 25px;       /* Distancia desde el borde derecho */
}
.compromiso-titulo {
    font-family: 'Helvetica', Arial, sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 2rem;
}
.compromiso-texto {
    font-size: 1.2rem;
    color: #495057;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 2.5rem auto;
    border: none;
    padding: 0;
}
.compromiso-texto strong {
    font-weight: 600;
    color: #212529;
}
.btn-compromiso {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background-color: #c9a444;
    color: #ffffff;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}
.btn-compromiso:hover {
    background-color: #b38f3b;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(201, 164, 68, 0.3);
}
.btn-compromiso img {
    height: 24px;
}
.punto-animado {
    height: 10px;
    width: 10px;
    background-color: #ffffff;
    border-radius: 50%;
}



/* =================================================================
  SECCIÓN INFRAESTRUCTURA (CSS REHECHO PARA COINCIDIR CON LA IMAGEN)
================================================================= */
.seccion-infraestructura {
    padding: 6rem 0;
    background-color: #ffffff; /* Fondo blanco */
}

/* --- Título Principal --- */
.seccion-infraestructura .titulo-seccion {
    color: #adb5bd; /* Gris claro para "NUESTRA" */
    text-align: left;
    font-size: 4em; /* Tamaño ajustado */
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}
.seccion-infraestructura .titulo-seccion strong {
    color: #000000; /* Negro para "INFRAESTRUCTURA" */
}

/* --- Subtítulo --- */
.subtitulo-infraestructura { /* Nueva clase */
    text-align: left; /* Alineado a la izquierda */
    color: #000000; /* Gris oscuro */
    font-size: 1.5em;
    line-height: 1.6;
    max-width: 1200px;
    margin-bottom: 3rem;
}

/* --- Columna Izquierda: Navegación --- */
.nav-infra {
    border: 2px solid #2f4f6f; /* Borde simple gris */
    border-radius: 8px; /* Ligero redondeo en el contenedor */
    padding: 40px 55px; /* Espacio interior pequeño */
}
.nav-infra .nav-link {
    display: flex;
    align-items: center;
    gap: 20px; 
    padding: 1.25rem 1.5rem; 
    margin-bottom: 0.75rem; 
    border-radius: 8px;
    color: #000000;
    font-size: 1.1rem; 
    font-weight: 500;
    text-align: left;
    background-color: #f8f9fa;
    border: none;
    

    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease-out; 
    position: relative;
}

.nav-infra .nav-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 8px #68656569;
}

.nav-infra .nav-link:last-child {
    margin-bottom: 0;
}

.nav-infra .nav-link.active {
    background-color: #2f4f6f;
    color: #ffffff;
    transform: translateY(-15px); */ 
}

.nav-infra .nav-link .nav-icon {
    height: 32px; /* CAMBIO: Iconos más grandes */
    filter: grayscale(100%) opacity(0.6);
    transition: filter 0.3s ease;
}
.nav-infra .nav-link.active .nav-icon {
    filter: brightness(0) invert(1);
}

/* --- Columna Derecha: Contenido --- */
.infra-contenido-tarjeta {
    padding: 1.5rem; /* Espacio interior del contenido */
}

.infra-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Alinea los elementos arriba */
    gap: 20px;
    margin-bottom: 1.5rem;
}

.infra-header-main {
    display: flex;
    align-items: center; 
    gap: 15px;
}

.infra-icono-contenido {
    height: 80px; /* Tamaño icono principal */
    flex-shrink: 0; /* Evita que el icono se encoja */
}

.infra-titulo {
    font-size: 1.6rem;
    font-weight: 700;
    color: #212529;
    margin: 0;
}

.infra-escudo-icono {
    height: 45px; /* Tamaño icono escudo */
    opacity: 0.4; /* Opacidad del escudo */
    margin-top: 5px; /* Ajuste vertical leve */
    flex-shrink: 0;
}

.infra-descripcion {
    font-size: 1.1rem;
    color: #000000;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.lista-caracteristicas {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2rem;
}

.lista-caracteristicas li {
    padding: 0.5rem 0 0.5rem 35px;
    font-size: 1rem;
    color: #000000;
    position: relative;
    line-height: 1.5;
}

.lista-caracteristicas li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%; /* CAMBIO: Centrado verticalmente */
    transform: translateY(-50%); /* CAMBIO: Ajuste fino para centrar verticalmente */
    height: 24px; 
    width: 24px; 
    background-image: url('../img/PALOMITA-VERDE.png');
    background-size: contain;
    background-repeat: no-repeat;
}

/* Footer del contenido */
.footer-contenido-infra {
    text-align: right;
    margin-top: 2rem;
}

.link-conoce-mas {
    color: #212529;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}
.link-conoce-mas:hover {
    color: #2f4f6f;
}
/* Flecha a la derecha */
.link-conoce-mas::after {
    content: ' >';
    font-weight: bold;
    font-family: monospace;
}

/* ============================
   AJUSTE TÍTULO INFRAESTRUCTURA EN MÓVIL
============================ */
@media (max-width: 767.98px) {

  .seccion-infraestructura .titulo-seccion {
      font-size: 2.4rem;        /* antes 4em */
      line-height: 1.1;
      text-align: center;       /* opcional, queda más bonito en móvil */
      margin-bottom: 1rem;
      word-wrap: break-word;
      overflow-wrap: break-word;
  }

  .seccion-infraestructura .titulo-seccion strong {
      display: block;           /* hace que INFRAESTRUCTURA baje a segunda línea */
      font-size: 2.4rem;        /* mismo tamaño que el texto gris */
  }

  .subtitulo-infraestructura {
      font-size: 1rem;
      text-align: center;
      margin-bottom: 2.5rem;
  }

  /* ya que estamos, ajustamos un poco la caja de tabs en móvil */
  .nav-infra {
      padding: 20px;
      margin-top: 1.5rem;
  }
}


/* Define la animación de deslizamiento hacia arriba */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px); /* Empieza 20px abajo */
  }
  to {
    opacity: 1;
    transform: translateY(0);   /* Termina en su posición normal */
  }
}

/* Clase para aplicar la animación */
.animate-slide-up {
  animation-name: slideUp;
  animation-duration: 0.5s; /* Duración de la animación (ajusta si quieres) */
  animation-fill-mode: both; /* Mantiene el estado final */
  animation-timing-function: ease-out; /* Curva de velocidad */
}

/* Opcional: Asegura que el contenido esté oculto antes de la animación */
.seccion-infraestructura .tab-content .tab-pane {
  opacity: 0; /* Empieza invisible */
}
.seccion-infraestructura .tab-content .tab-pane.active.show {
  opacity: 1; /* Asegura que el contenido activo sea visible (necesario para Bootstrap) */
}




/* =================================================================
  SECCIÓN EQUIPO
================================================================= */

/* --- Estilos Generales --- */
.seccion-equipo {
    padding: 80px 0;
    background-color: #000000;
    overflow-x: hidden;
}

.titulo-equipo {
    color: #ffffff;
    text-align: center;
    font-weight: 700;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4em;
}

.titulo-equipo::before,
.titulo-equipo::after {
    content: '';
    flex: 1;
    max-width: 120px;
    height: 4px;
    background-color: #2f4f6f;
    margin: 0 25px;
}

/* --- Contenedor del Carrusel --- */
.carrusel-personalizado-contenedor {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 5%;
}

.contenedor-tarjetas-equipo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
    max-width: 1200px;
    min-height: 500px;
}

/* --- Estilo de Tarjetas --- */
.tarjeta-equipo {
    background-color: #ffffff;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    max-width: 320px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
    transition: transform 0.6s ease-in-out, opacity 0.6s ease-in-out, filter 0.6s ease-in-out;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) scale(0.8) translateY(20px);
    opacity: 0;
    filter: blur(5px);
    z-index: 1;
}

.tarjeta-equipo.activa {
    transform: translateX(-50%) scale(1);
    opacity: 1;
    filter: blur(0);
    z-index: 10;
}

.tarjeta-equipo.vecina-izquierda {
    transform: translateX(-150%) scale(0.8);
    opacity: 0.5;
    filter: blur(4px);
    z-index: 5;
}

.tarjeta-equipo.vecina-derecha {
    transform: translateX(50%) scale(0.8);
    opacity: 0.5;
    filter: blur(4px);
    z-index: 5;
}

/* --- Contenido de la Tarjeta --- */
.tarjeta-equipo img {
    width: 180px;
    height: 200px;
    object-fit: cover;
    margin-bottom: 20px;
}

.tarjeta-equipo h5,
.tarjeta-equipo p {
    color: #000000;
}

/* --- Controles de Navegación (Flechas) --- */
.control-carrusel-anterior,
.control-carrusel-siguiente {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    /* TAMAÑO DE LOS BOTONES: Aumentamos el tamaño */
    width: 70px; 
    height: 70px; 
    border-radius: 50%; /* Asegura que sean círculos */
    background-color: #ffffff; /* FONDO BLANCO SÓLIDO */
    box-shadow: 0 4px 10px rgba(0,0,0,0.2); /* Sombra sutil para darle profundidad */
    display: flex; /* Centra el icono dentro del botón */
    align-items: center;
    justify-content: center;
    opacity: 1;
    z-index: 20;
    cursor: pointer;
    border: none; /* Quitamos el borde por defecto de los botones */
    transition: background-color 0.3s ease, transform 0.3s ease; /* Transición para hover */
}

/* Efecto hover */
.control-carrusel-anterior:hover,
.control-carrusel-siguiente:hover {
    background-color: #f0f0f0; /* Un blanco un poco más oscuro al pasar el mouse */
    transform: translateY(-50%) scale(1.05); /* Ligeramente más grande */
}

.control-carrusel-anterior { left: 28%; /* Ajuste de posición */ }
.control-carrusel-siguiente { right: 28%; /* Ajuste de posición */ }

.icono-control-anterior,
.icono-control-siguiente {
    /* El span del icono ya no necesita background-color porque el botón lo tiene */
    background-color: transparent; 
    width: 60%; /* TAMAÑO DEL ÍCONO: Más grande dentro del botón */
    height: 60%; /* TAMAÑO DEL ÍCONO: Más grande dentro del botón */
    background-size: contain; /* Asegura que el icono se ajuste bien */
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 0; /* Aseguramos que no tenga borde de radio, solo el botón */
}

/* Imágenes SVG para las flechas */
.icono-control-anterior {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}

.icono-control-siguiente {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* --- Clases de utilidad y Responsividad --- */
.visualmente-oculto {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Ajustes responsivos para los botones */
@media (max-width: 1200px) {
    .control-carrusel-anterior { left: 15%; } /* Mover botones más hacia adentro en pantallas medianas */
    .control-carrusel-siguiente { right: 15%; }
}

@media (max-width: 992px) {
    .control-carrusel-anterior { left: 10%; }
    .control-carrusel-siguiente { right: 10%; }
    .control-carrusel-anterior,
    .control-carrusel-siguiente {
        width: 60px; /* Reducir tamaño de botón en tablets */
        height: 60px;
    }
    .icono-control-anterior,
    .icono-control-siguiente {
        width: 50%; /* Ajustar tamaño del icono */
        height: 50%;
    }
}

@media (max-width: 768px) {
    .tarjeta-equipo:not(.activa) {
        opacity: 0;
        pointer-events: none;
    }
    /* Mover botones a los extremos de la pantalla para móviles */
    .control-carrusel-anterior { left: 2%; } 
    .control-carrusel-siguiente { right: 2%; }
    .control-carrusel-anterior,
    .control-carrusel-siguiente {
        width: 50px; /* Reducir tamaño de botón en móviles */
        height: 50px;
    }
    .icono-control-anterior,
    .icono-control-siguiente {
        width: 50%; /* Ajustar tamaño del icono */
        height: 50%;
    }
}

@media (max-width: 576px) {
    .titulo-equipo { font-size: 2.5rem; }
    .titulo-equipo::before, .titulo-equipo::after { max-width: 50px; }
}





/* =================================================================
   SECCIÓN Capacitación Y SEGURIDAD
================================================================= */

.seccion-capacitacion {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 150px 20px; /* Espaciado de la sección */
    background-color: #ffffff; /* Un color de fondo suave para el ejemplo */
}

.contenedor-info {
    position: relative; 
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 20px; 
    padding: 60px 100px;
    max-width: 1200px;   
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

/* --- Estilos para los estoperoles (imágenes PNG) --- */
.estoperol-capacitacion {
    position: relative; 
    
    /* --- ¡AQUÍ PUEDES EDITAR EL TAMAÑO! --- */
    width: 40px;
    height: 40px;
}

.estoperol-capacitacion-superior-izquierdo {
    /* --- ¡AQUÍ PUEDES EDITAR LA POSICIÓN! --- */
    top: -40px;
    left: -520px;
}

.estoperol-capacitacion-inferior-derecho {
    /* --- ¡AQUÍ PUEDES EDITAR LA POSICIÓN! --- */
    bottom: -230px;
    right: -520px;
}

/* --- Estilos para el texto y el botón --- */
.texto-info {
    font-size: 1.5em;
    line-height: 1.6;
    color: #333;
    margin-bottom: 30px; /* Espacio entre el texto y el botón */
}

.texto-info strong {
    color: #000;
}

.boton-seguridad {
    display: inline-flex; /* Permite alinear el icono y el texto */
    align-items: center;
    background-color: #c7a759; /* Color dorado/café del botón */
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 50px; /* Bordes muy redondeados */
    text-decoration: none;
    font-weight: 650;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.boton-seguridad:hover {
    background-color: #b3954f; /* Color al pasar el mouse */
    transform: scale(1.05);
}

/* --- Estilo para el escudo (imagen PNG) --- */
.icono-escudo {
    /* --- ¡AQUÍ PUEDES EDITAR EL TAMAÑO! --- */
    width: 24px;
    height: 24px;
    margin-right: 10px; /* Espacio entre el escudo y el texto */
}




/* =================================================================
   SECCIÓN permisos Y CERTIFICACIONES
================================================================= */

.seccion-certificaciones {
    /* Espaciado general mucho mayor */
    padding: 120px 20px;
    background-color: #ffffff;
    text-align: center;
}

/* --- Título y Decoración --- */
.titulo-contenedor {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px; /* Aumentamos el espacio */
    margin-bottom: 30px;
}

.icono-certificacion {
    /* Icono mucho más grande */
    width: 80px;
    height: 80px;
}

.linea-decorativa {
    /* Línea más ancha */
    width: 120px;
    height: 4px;
    background-image: linear-gradient(to right, #000, #c89116);
}

.titulo-certificacion {
    /* Título mucho más grande */
    font-size: 4rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

/* --- Subtítulo --- */
.subtitulo-certificacion {
    /* Subtítulo más grande y con más espacio */
    font-size: 1.5rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto 80px auto; /* Aumentamos el margen inferior */
}

/* --- Logos de Certificaciones --- */
.contenedor-logos {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px; /* Más espacio entre filas de logos */
    margin-bottom: 80px; /* Aumentamos el margen inferior */
}

.logos-inferiores {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px; /* Mucho más espacio entre logos */
    flex-wrap: wrap;
}

.logo-item img {
    /* Logos mucho más grandes */
    max-height: 110px;
    width: auto;
    opacity: 0.8;
}

/* --- Botón --- */
.boton-certificacion {
    display: inline-block;
    background-color: #c7a759;
    color: #ffffff;
    /* Botón mucho más grande */
    padding: 20px 60px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.boton-certificacion:hover {
    background-color: #b3954f;
    transform: scale(1.05);
}

/* --- Diseño Responsivo (sin cambios) --- */
@media (max-width: 768px) {
    .seccion-certificaciones {
        padding: 80px 20px;
    }
    .titulo-certificacion {
        font-size: 3em;
    }
    .titulo-contenedor {
        flex-direction: column;
        gap: 15px;
    }
    .subtitulo-certificacion {
        font-size: 1.1rem;
        margin-bottom: 50px;
    }
    .logo-item img {
        max-height: 60px; /* Logos más pequeños en móviles */
    }
    .contenedor-logos, .logos-inferiores {
        gap: 40px;
    }
    .boton-certificacion {
        padding: 15px 40px;
        font-size: 1rem;
    }
}


/* =================================================================
   SECCIÓN footer
================================================================= */

.pie {
  background: #000;
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 60px 5%;
}

.contenedor-pie {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  text-align: center;
}

/* === COLUMNA IZQUIERDA === */
.izquierda {
  flex: 1;
  min-width: 250px;
}

.logo-pie {
  width: 250px;
  margin-bottom: 15px;
}

.derechos-pie {
  font-size: var(--tamano-derechos, 0.9rem);
  color: var(--color-derechos, #fff);
}

/* === COLUMNA CENTRAL === */
.centro {
  flex: 1.5;
  min-width: 300px;
}

.titulo-pie {
  font-size: 1em;
  font-weight: var(--peso-titulo, 700);
  letter-spacing: 1px;
  margin-bottom: 20px;
  color: var(--color-titulo, #fff);
  text-transform: uppercase;
}

.enlaces-pie {
  list-style: none;
  padding: 0;
  margin: 0;
}

.enlaces-pie li {
  display: inline-block;
  margin: 5px 10px;
}

.enlaces-pie a {
  text-decoration: none;
  color: var(--color-enlace, #fff);
  font-size: var(--tamano-enlace, 0.9rem);
  transition: 0.3s;
}

.enlaces-pie a:hover {
  color: var(--color-enlace-hover, #c9a441);
}

/* === COLUMNA DERECHA === */
.derecha {
  flex: 1;
  min-width: 250px;
}

.subtitulo-pie {
  font-size: var(--tamano-subtitulo, 1rem);
  font-weight: var(--peso-subtitulo, 700);
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--color-subtitulo, #fff);
}

.redes-pie img {
  width: var(--tamano-icono-red, 30px);
  margin: 15px 6px;
  transition: transform 0.3s ease;
}

.redes-pie img:hover {
  transform: scale(1.15);
}

/* === TELÉFONO === */
.telefono-pie {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 12px 0;
}

.icono-telefono {
  width: 35px;
  height: auto;
}

.numero-telefono {
  font-size: var(--tamano-contacto, 0.95rem);
  color: var(--color-contacto, #fff);
}

.diseno-pie {
  font-size: 1em;
  color: #fff;
}

/* === RESPONSIVO === */
@media (max-width: 768px) {
  .contenedor-pie {
    flex-direction: column;
    text-align: center;
  }

  .columna-pie {
    margin-bottom: 30px;
  }

  .telefono-pie {
    justify-content: center;
  }
}

/* === BARRA INFERIOR CON LÍNEA DIVISORIA === */

.barra-inferior-pie {
    display: flex; /* Para alinear los dos textos */
    justify-content: space-between; /* Uno a cada extremo */
    align-items: center;
    flex-wrap: wrap; /* Para que se apilen en móvil */
    
    border-top: 1px solid #333; 

    margin-top: 40px; /* Espacio sobre la línea */
    padding-top: 20px; /* Espacio debajo de la línea */
}

/* Ajustamos los párrafos para que no tengan márgenes extra */
.derechos-pie, .diseno-pie {
    margin: 5px 10px; /* Margen para móvil */
}

/* Ajustes para la vista en móvil */
@media (max-width: 768px) {
    .barra-inferior-pie {
        justify-content: center; /* Centramos los textos en móvil */
        text-align: center;
    }
}