body {
    /* Definimos la imagen de fondo */
    background-image: url('Imagenes/fondo.jpg');
    background-repeat: no-repeat;
    /* No repetir */
    background-position: center;
    /* Centrar */
    background-size: cover;
    /* Cubrir todo el área */
    background-attachment: fixed;
    /* Queda fija al hacer scroll */
    margin: 0;
    padding: 0;
}

/* Para asegurarnos de que el contenido contraste bien */
h1,
p {
    color: #f0f0f0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.container {
    padding: 2rem;
}

/* map */
#map {
    width: 100%;
    height: 400px;
    border-radius: 0.5rem;
}

#map {
    width: 100%;
    height: 400px;
    border-radius: 1rem;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.18);
    margin-top: 1rem;
}

/* Navbar */
.navbar {
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.navbar-brand:hover {
    color: #0dcaf0 !important;
}

.navbar-brand {
    font-weight: bold;
    letter-spacing: 2px;
    font-size: 1.5rem;
}

.navbar-toggler:hover {
    color: #0dcaf0 !important;
}

.nav-link {
    transition: color 0.2s;
}

.nav-link.active,
.nav-link:hover {
    color: #0dcaf0 !important;
}


#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#hero .main-content {
    position: relative;
    z-index: 1;
}

#hero .overlay {
    background: linear-gradient(120deg, rgba(0, 0, 0, 0.512) 60%, rgba(7, 62, 106, 0.098));
}


h2,
h3,
h4,
h5,
h6 {
    color: #fff;
    text-shadow: 1px 2px 8px rgba(0, 0, 0, 0.5);
}

li,
.card-title {
    color: #e0e0e0;
}

/* Section backgrounds */
section {
    position: relative;
    z-index: 1;
}

/* Cards */
.card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 8px 32px rgba(13, 202, 240, 0.18);
}

.card-img-top {
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    object-fit: cover;
    height: 435px;
}

/* List group */
.list-group-item {
    background: transparent !important;
    border: none;
    font-size: 1.1rem;
    padding-left: 0;
}

/* Botones */
.btn-primary,
.btn-secondary {
    border-radius: 2rem;
    font-weight: 600;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(13, 202, 240, 0.12);
    transition: background 0.2s, color 0.2s;
}

.btn-primary:hover,
.btn-secondary:hover {
    background: #0dcaf0;
    color: #222;
}

/* video */
video {
    max-width: 100%;
    height: auto;
}

/*Modals*/
.modal-content {
    background: linear-gradient(rgba(24, 24, 24, 0.555), #0cbcdf86),
                url('Imagenes/fondo.jpg') center center/cover no-repeat; 
    border-radius: 1rem;
    border: none;
    box-shadow: 0 4px 32px rgba(0,0,0,0.4);
}

.modal-backdrop.show {
    background-color: rgba(0, 0, 0, 0.6); /* Más transparencia en el overlay */
   }


/* Miembros */
#miembros .card-img-top {
    height: 220px;
    object-fit: cover;
}

/* Redes Sociales */
#redes .bi {
    transition: color 0.2s, transform 0.2s;
}

#redes .bi:hover {
    color: #0dcaf0;
    transform: scale(1.2);
}


/* Responsive tweaks */
@media (max-width: 991px) {
    #hero {
        min-height: 60vh;
        padding-top: 5rem;
    }

    .container,
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .card-img-top {
        height: 160px;
    }
}

@media (max-width: 767px) {
    #hero {
        min-height: 40vh;
        padding-top: 6rem;
    }

    h1 {
        font-size: 2rem;
    }

    .card-img-top {
        height: 120px;
    }
}