html {
    /* background-image: url('../img/fondo.jpg'); */
    background-image: url('../img/fondo.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
}

body {
    font-family: Roboto, "Open Sans", sans-serif;
}

/* body {
    background-color: #fff;
} */

.navbar {
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.4);
}

/* Logos en desktop */
.navbar-item img {
    max-height: 90px;
}

/* Logos en móviles (pantallas <= 768px) */
@media screen and (max-width: 768px) {
    .navbar-item img {
        max-height: 40px;
        /* o un valor menor si quieres */
    }
}


/* .hero {
    background: linear-gradient(rgba(0, 0, 50, 0.5), rgba(0, 0, 50, 0.5)),
        url('../img/logo_enecb.png') center/cover;
    color: white;
}

.hero .title,
.hero .subtitle {
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
} */

.logo-img {
    max-height: 60px;
    margin-right: 15px;
}

.section-title {
    border-left: 6px solid #e63946;
    /* rojo */
    padding-left: 10px;
    margin-bottom: 20px;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

/* Animación suave en scroll */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}



.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* relación 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 0 auto;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.button.is-link {
    background-color: #1B396A;
    color: white;
}

/* Centrar los logos dentro de la navbar */
.logos-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.navbar.is-fixed-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 30;
}

footer.footer {
    background-color: #1B396A;
    /* azul corporativo */
    color: #ffffff;
    /* letras en blanco */
    padding: 10px 0;
    /* más delgado */
}

footer.footer p,
footer.footer strong {
    color: #ffffff;
    /* asegúrate que todo el texto quede blanco */
}


/* Tabs personalizados */
.custom-tabs {
    background-color: #1B396A;
    /* Fondo azul */
    padding: 0.5rem;
    border-radius: 8px;
}

/* Menú fijo solo en escritorio */
@media screen and (min-width: 769px) {
    .custom-tabs {
        position: fixed;
        top: 90px;
        left: 0;
        right: 0;
        z-index: 25;
        margin: 0;
    }
}

.custom-tabs ul li a {
    font-family: 'Roboto', 'Open Sans', sans-serif !important;
    color: #ffffff;
    /* Texto blanco */
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.custom-tabs ul li.is-active a,
.custom-tabs ul li a:hover {
    color: #ffffff;
    /* sigue siendo blanco */
    font-weight: bold;
    /* en negritas */
    border-bottom: 2px solid #ffffff;
    /* subrayado blanco */
}

section {
    scroll-margin-top: 60px;
    /* ajusta al alto de tu navbar */
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    /* separación desde abajo */
    left: 20px;
    /* separación desde la derecha */
    background-color: #e63946;
    /* azul corporativo */
    color: #fff;
    font-size: 24px;
    /* tamaño del ícono/texto */
    padding: 12px 16px;
    border-radius: 50%;
    /* círculo */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    transition: transform 0.3s ease, background 0.3s ease;
    z-index: 1000;
    /* siempre por encima */
}

.back-to-top:hover {
    background-color: #e63946;
    /* un poco más claro en hover */
    transform: scale(1.1);
}



h3 {
    background-color: #ffffff;
}

/* CSS para la galeria */
.myGallery {
    width: 100%;
    padding: 20px 0;
}

.myGallery img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.myGallery img:hover {
    transform: scale(1.05);
}

/* Estilo del modal */
#descModal .modal-content {
    max-width: 80%;
}

#descModal figcaption {
    font-size: 1.2rem;
    font-weight: bold;
}

.descripcion {
    white-space: pre-line;
}

.custom-tabs .acceso-destacado a {
    color: #ffffff;
    /* texto blanco */
    background-color: #e63946;
    /* fondo rojo, cámbialo a tu preferencia */
    border-radius: 3px;
    /* esquinas redondeadas */
    height: 1.8rem;
    font-weight: bold;
    /* negrita */
}

.custom-tabs .acceso-destacado a {
    color: #ffffff;
    /* texto blanco */
    background-color: #e63946;
    /* fondo rojo, cámbialo a tu preferencia */
    border-radius: 3px;
    /* esquinas redondeadas */
    height: 1.8rem;
    font-weight: bold;
    /* negrita */
}


* {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      font-family: Arial, sans-serif;
    }

    .carousel {
      position: relative;
      width: 100%;
      max-width: 900px; /* ancho máximo en pantallas grandes */
      margin: auto;
      aspect-ratio: 16 / 9; /* mantiene relación 16:9 */
      overflow: hidden;
      border-radius: 12px;
    }

    .carousel-track {
      display: flex;
      width: 100%;
      height: 100%;
      transition: transform 0.5s ease-in-out;
    }

    .carousel-slide {
      min-width: 100%;
      height: 100%;
    }

    .carousel-slide img {
      width: 100%;
      height: 100%;
      object-fit: cover; /* mantiene proporción sin deformar */
    }
/* Iconos personalizados del mapa */
.custom-div-icon {
    background: none !important;
    border: none !important;
    font-size: 30px;
    text-align: center;
    line-height: 40px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}