/* ==========================================
   CLIENTES - CARRUSEL DE MARCAS
========================================== */

.clientes-section {
    width: 100%;
    padding: 24px 5%;
    box-sizing: border-box;
    overflow: hidden;
    margin-top: 20px;
}

.clientes-section h2 {
    text-align: center;
    margin: 0 0 16px;
    font-size: 1.2rem;
    color: var(--azul-secundario);
    letter-spacing: 2px;
}

.cliente-carousel {
    width: 100%;
    box-sizing: border-box;
}

.cliente-carousel-title {
    text-align: center;
    margin: 0 0 10px;
    font-size: 1rem;
}

.cliente-carousel-inner {
    display: flex;
    align-items: center;
}

.cliente-carousel-arrow {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 40px;
    background: none;
    border: none;
    color: var(--azul-oscuro);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.cliente-carousel-arrow:hover {
    color: var(--azul-secundario);
}

.cliente-carousel-viewport {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.cliente-carousel-track {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cliente-carousel-slide {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    box-sizing: border-box;
}

.cliente-carousel-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: opacity 0.25s ease;
}

/* Estilos CSS para alinear la línea de tiempo horizontal y los elementos */
.historia-section {
    text-align: center;
    padding: 30px 10px;
    max-width: 1400px;
    margin: 0 auto;
}

.historia-section h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #0052cc;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.historia-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 15px;
}

.historia-section > h3 {
    font-size: 1rem;
    font-weight: 400;
    color: #4a5568;
    max-width: 700px;
    margin: 0 auto 50px auto;
    line-height: 1.5;
}

.trayectoria-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    gap: 20px;
}

/* Línea conectora horizontal de fondo */
.trayectoria-grid::before {
    content: '';
    position: absolute;
    top: 35px;
    left: 8%;
    right: 8%;
    height: 2px;
    background-color: #e2e8f0;
    z-index: 1;
}

.trayectoria-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    position: relative;
    z-index: 2;
    padding: 0 10px;
}

.trayectoria-item-icon {
    width: 70px;
    height: 70px;
    background-color: #EAF2F8;
    border: 2px solid #EAF2F8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

/* Elemento destacado ("Hoy") con fondo azul sólido */
.trayectoria-item.active .trayectoria-item-icon,
.trayectoria-item-icon.bg-primary {
    background-color: #0052cc;
    border-color: #0052cc;
}

.trayectoria-item-icon-img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

/* Invertir color de imagen si el fondo es oscuro/azul */
.trayectoria-item.active .trayectoria-item-icon-img {
    filter: brightness(0) invert(1);
}

.trayectoria-item-year {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0052cc;
    margin-bottom: 5px;
}

.trayectoria-item-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 8px;
}

.trayectoria-item-subtitle {
    font-size: 0.8rem;
    color: #718096;
    line-height: 1.4;
}

/* Contenedor principal en 3 columnas */
.mision-vision-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 10px;
}

/* Estilo base de cada tarjeta */
.info-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    padding: 35px 30px 0 30px; /* Sin padding inferior para que la imagen pegue al borde */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    border: 1px solid #f1f5f9;
}

/* Cabecera interna con el icono y título */
.card-header-content {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
}

/* Contenedor circular del icono */
.section-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Colores personalizados por tarjeta */
.mision-card .section-icon {
    background-color: #e6f4ea;
}
.mision-card h2 {
    color: #137333;
}
.mision-card .valor-bullet {
    background-color: #137333;
}

.vision-card .section-icon {
    background-color: #e8f0fe;
}
.vision-card h2 {
    color: #1a73e8;
}
.vision-card .valor-bullet {
    background-color: #1a73e8;
}

.valores-card .section-icon {
    background-color: #fef7e0;
}
.valores-card h2 {
    color: #d97706;
}
.valores-card .valor-bullet {
    background-color: #f97316;
}

.section-icon-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

/* Títulos h2 */
.info-card h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
}

/* Párrafos descriptivos */
.info-card p {
    font-size: 0.8rem;
    color: #4a5568;
    line-height: 1.65;
    margin-bottom: 25px;
}

/* Lista de valores limpia */
.valores-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.valor-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 0.8rem;
    color: #2d3748;
    font-weight: 500;
}

/* Viñetas personalizadas para los valores */
.valor-bullet {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Contenedor de la imagen inferior adaptado al borde de la tarjeta */
.card-image-container {
    margin-top: auto;
    width: calc(100% + 60px); /* Extiende la imagen de lado a lado compensando el padding */
    margin-left: -30px;
    margin-right: -30px;
    line-height: 0; /* Elimina espacio fantasma inferior */
}

.card-bottom-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

/* Contenedor principal estilo tarjeta contenedora con bordes redondeados y sombra suave */
.compromiso-section {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto 60px;
    padding: 40px;
    background: #EAF2F8;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

/* Imagen de la izquierda con esquinas redondeadas */
.compromiso-img {
    flex: 0 0 45%;
}

.compromiso-img img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px 0 15px 0;
}

/* Columna de texto e información de la derecha */
.compromiso-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.compromiso-info h4 {
    font-size: 0.75rem;
    font-weight: 700;
    color: #0052cc;
    letter-spacing: 1.2px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.compromiso-info h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 10px;
}

.compromiso-info > h3 {
    font-size: 0.9rem;
    font-weight: 400;
    color: #4a5568;
    line-height: 1.5;
    margin-bottom: 25px;
}

/* Cuadrícula de los 4 elementos en línea horizontal */
.compromiso-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.compromiso-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.compromiso-header {
    display: flex;
    flex-direction: column;
    align-items: center;
}


.compromiso-item .section-icon-img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    filter: invert(35%) sepia(85%) saturate(1200%) hue-rotate(190deg);
}

/* Título debajo del ícono */
.compromiso-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
    line-height: 1.25;
}

/* Responsividad para tablets y móviles */
@media (max-width: 992px) {
    .compromiso-section {
        flex-direction: column;
        padding: 25px;
    }
    .compromiso-img {
        flex: 1;
        width: 100%;
    }
    .compromiso-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Responsividad para móviles y tablets */
@media (max-width: 900px) {
    .mision-vision-section {
        grid-template-columns: 1fr;
    }
}

/* Responsividad para pantallas pequeñas */
@media (max-width: 900px) {
    .trayectoria-grid {
        flex-direction: column;
        align-items: center;
    }
    .trayectoria-grid::before {
        display: none; /* Se oculta la línea horizontal en móviles */
    }
    .trayectoria-item {
        margin-bottom: 30px;
    }
}