body {
    font-family: 'Montserrat', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #FFC300;
}

.nav-bar {
    padding: 2px !important;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    display: inline;
    margin-right: 20px;
    font-size: 18px;
}

nav ul li a {
    text-decoration: none;
    color: #fff;
    font-size: 25px;
}

/* Estilos para pantallas medianas */
@media (max-width: 768px) {
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #ffc107;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        z-index: 1000;
    }

    .navbar-collapse.show {
        max-height: 300px;
        padding: 10px;
    }

    .navbar-nav {
        text-align: center;
    }

    .nav-item {
        margin-bottom: 10px;
    }

    .nav-link, .navbar-nav .nav-item a {
        color: #000 !important;
        font-size: 18px;
        display: block;
        padding: 0.5rem 1rem;
    }
}

/* Estilos para pantallas pequeñas */
@media (max-width: 480px) {
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #ffc107;
        padding: 10px;
        transition: max-height 0.3s ease-out;
        max-height: 0;
        overflow: hidden;
    }

    .navbar-collapse.show {
        max-height: 300px;
    }

    .navbar-nav {
        text-align: center;
    }

    .nav-item {
        margin-bottom: 10px;
    }

    .nav-link, .navbar-nav .nav-item a {
        color: #000 !important;
        font-size: 18px;
    }

    .container-fluid {
        flex-direction: column;
        align-items: center;
    }

    h1 {
        font-size: 30px;
    }

    h3 {
        font-size: 14px;
    }

    .logo-nav {
        width: 100px;
        height: 100px;
        padding: 8px;
    }
}

/* Estilos adicionales para asegurar visibilidad */
.navbar {
    background-color: #ffc107 !important;
}

.navbar-toggler {
    background-color: #fff;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 0.55)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Resto de los estilos sin cambios */
.content {
    padding: 20px;
}

footer {
    color: #fff;
    text-align: center;
    padding: 10px;
    bottom: 0;
    width: 100%;
}

.titulos {
    text-align: center;    
    font-size: 50px;
    letter-spacing: 20px;
}

.logo-nav {
    border-radius: 8%;
}

.portada{
    min-height: 85vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.portada::before{
    content: '';
    background-image: url('../img/enf4.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    opacity: 0.70;
}

.container {
    position: relative;
    text-align: center;
}

h1 {
    font-size: 80px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    color: #0077BE;
}

h3 {
    font-size: 20px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    color: #333333;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 10px;
}

.carrusel {
    width: 1200px; 
}

.carousel-item img {
    max-width: 100%;
    height: 100%;
    object-fit: cover;
}

.titu, .ban {
    font-family: 'Montserrat', sans-serif;
}

.btn-danger {
    background-color: #D64045;
    border-color: #D64045;
}

.bg-primary {
    background-color: #0077BE !important;
}