:root {
    /* --primary-color: #003366; */
    /* --secondary-color: #E31837; */
    /* --light-color: #F5F5F5; */
    --primary-color: #141415;
    --secondary-color: #A88B51;
    --accent-color: #FFD100;
    --light-color: #F0E2C5;
    --dark-color: #333333;
}

/* Principa: #A88B51 */
/* Secundario: #F0E2C5 */

.bg-publiciencia {
    background-color: var(--secondary-color) !important;
}

.texto-primario {
    color: var(--secondary-color) !important;
}

.bg-publiciencia-light {
    background-color: var(--light-color) !important;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-color);
    background-color: var(--light-color);
}

.titulo {
    color: var(--accent-color);
}

/* Header */
.navbar {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 5px 0;
}

.navbar-brand {
    /* font-weight: 700; */
    color: var(--primary-color);
    /* font-size: 1.8rem; */
}

.nav-link {
    /* color: var(--dark-color); */
    font-weight: 500;
    margin: 0 10px;
}

.nav-link-hijo {
    color: white !important;
}

.nav-link:hover {
    color: var(--secondary-color) !important;
}

.nav-link2:hover {
    color: var(--light-color) !important;
}

.btn-primary {
    background-color: var(--secondary-color);
    border: none;
    padding: 8px 20px;
}

.btn-primary:hover {
    background-color: var(--light-color) !important;
    color: var(--secondary-color);
}

/* Hero Carousel */
.carousel {
    margin-bottom: 40px;
}

.carousel-item1 {
    height: 500px;
}

.carousel-item2 {
    height: 200px;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
}

.carousel-caption {
    /* background-color: rgba(0, 51, 102, 0.5); */
    background-color: rgba(168, 139, 81, 0.7);
    padding: 20px;
    border-radius: 5px;
    bottom: 100px;
}

/* Content Sections */
.section-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

.feature-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    margin-bottom: 30px;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.footer-otro a {
    color: var(--accent-color) !important;
}

.footer-otro a:hover {
    color: var(--secondary-color) !important;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 30px 0 20px;
}

.footer-links h5 {
    color: var(--accent-color);
    margin-bottom: 20px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.social-icons a {
    color: white;
    font-size: 1.5rem;
    margin-right: 15px;
}

.social-icons a:hover {
    color: var(--accent-color);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 30px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .carousel-item {
        height: 350px;
    }

    .carousel-caption {
        bottom: 20px;
        padding: 10px;
    }

    .carousel-caption h3 {
        font-size: 1.2rem;
    }

    .carousel-caption p {
        font-size: 0.9rem;
    }
}

/* Sub List */

.title-list {
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    color: #333;
}

.sublist {
    list-style: none;
    margin: 0.5rem 0 0 1.8rem;
    padding: 0;
}

.sublist li {
    display: flex;
    align-items: flex-start;
    /* gap: 8px; */
    padding: 0.3rem 0;
    border: none;
    background: none;
}

.sublist i {
    color: #999;
    font-size: 0.9rem;
    margin-top: 3px;
}

.sublist span {
    color: #555;
}

/* Clients Section Styles */
.client-logo-container {
    padding: 15px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%);
    transition: all 0.3s ease;
    background-color: white;
    border-radius: 8px;
    margin: 0 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.client-logo-container:hover {
    filter: grayscale(0%);
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.client-logo {
    max-height: 80px;
    width: auto;
    object-fit: contain;
    max-width: 100%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-size: 50%;
    background-color: var(--secondary-color);
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

@media (max-width: 768px) {
    .client-logo-container {
        height: 80px;
        padding: 10px;
    }

    .client-logo {
        max-height: 50px;
    }
}

ul a {
    text-decoration: none;
}

.custom-list {
    list-style: none;
    padding: 0;
}

.custom-list li {
    background: white;
    border-radius: 1rem;
    padding: 0.8rem 1.5rem;
    margin-bottom: 1rem;
    /* display: flex; */
    align-items: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    /* border-left: 6px solid var(--secondary-color); */
}

.custom-list li:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.12);
    background-color: #f1f8ff;
}

.custom-list li i {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-right: 1rem;
    flex-shrink: 0;
}

.custom-list li span {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
}

/* Carrusel de empresas */

:root {
    --salud-carousel-base-color: #A88B51;
}

/* Prefijo para todas las clases del carrusel: salud-carousel- */
.salud-carousel-container {
    padding: 0;
    /* background-color: #f8f9fa; */
    /* Un fondo claro para contrastar */
}

.salud-carousel-item-wrapper {
    padding: 5px 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.salud-carousel-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    margin: 10px;
    /* Espacio entre las tarjetas */
    flex: 1;
    /* Para que ocupen espacio equitativamente */
    min-width: 200px;
    /* Ancho mínimo para las tarjetas */
    max-width: 280px;
    /* Ancho máximo para las tarjetas */
}

.salud-carousel-card:hover {
    transform: translateY(-5px);
}

.salud-carousel-card img {
    max-width: 100%;
    height: 80px;
    /* Altura fija para las imágenes */
    object-fit: contain;
    /* Asegura que la imagen se ajuste sin distorsión */
    margin-bottom: 15px;
}

.salud-carousel-card h5 {
    color: var(--salud-carousel-base-color);
    font-size: 1rem;
    margin-bottom: 0;
}

/* Estilos de los controles del carrusel */
.salud-carousel-control-prev-icon,
.salud-carousel-control-next-icon {
    background-color: var(--salud-carousel-base-color);
    border-radius: 50%;
    padding: 15px;
    font-size: 1.5rem;
    color: #fff;
}

.salud-carousel-control-prev,
.salud-carousel-control-next {
    width: 5%;
    /* Ancho de los controles para que no sean muy grandes */
}

.salud-carousel-item-wrapper a {
    text-decoration: none;
}

/* Responsividad: 2 empresas por slide en pantallas pequeñas */
@media (max-width: 768px) {
    .salud-carousel-item-wrapper {
        flex-wrap: wrap;
        /* Permite que las tarjetas se envuelvan */
        justify-content: center;
        /* Centra las tarjetas */
    }

    .salud-carousel-card {
        flex: 0 0 calc(50% - 20px);
        /* 2 tarjetas por fila con espaciado */
        max-width: calc(50% - 20px);
    }
}

/* Responsividad: 1 empresa por slide en pantallas extra pequeñas */
@media (max-width: 576px) {
    .salud-carousel-card {
        flex: 0 0 calc(100% - 20px);
        /* 1 tarjeta por fila con espaciado */
        max-width: calc(100% - 20px);
    }
}

/* Caracteristicas Section */

.card-container {
    display: flex;
    justify-content: center;
}

.custom-card {
    background-color: #f8f5f0;
    border: none;
    text-align: center;
    padding: 20px;
    margin: 10px;
    box-shadow: none;
}

.card-img-top {
    width: 150px;
    height: auto;
    margin: 0 auto 1rem;
}

.card-title {
    font-weight: bold;
    color: #333;
    font-size: 1.25rem;
}

.card-text {
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
}

/* Caracteristicas Section Final */