/* ================== RESET & BASE STYLES ================== */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin-bottom: 50px;
    overflow: scroll;
}

h1 {
    text-align: center;
}

/* ================== BUTTONS & FORM CONTROLS ================== */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* ================== HEADER & NAVIGATION ================== */
header {
    display: block;
    margin-bottom: 0;
    padding-bottom: 0;
    overflow: hidden;
}

#mainnav {
    background-color: #000;
}

.nav-link {
    color: white !important;
}

/* ================== TITLE SECTION ================== */
.titlebackground {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #001f3f;
    height: 100px; /* Altura fija del contenedor */
    width: 100%;
    overflow: hidden; /* Evita que el div crezca demasiado */
    padding: 10px 0; /* Ajuste opcional */
    /*box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);*/ /* Sombra interna para difuminar */
    filter: blur(); 
}

.leftWing {
    width: 113%;
    clip-path: polygon(0 0, 100% 0, 100% 75%, 0 100%);
    margin-left: -12px;
    background: #001f3f;
    filter: blur();
}

.rightWing {
    width: 112%;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 75%);
    background: #001f3f;
    filter: blur();
}

.leftWing, .rightWing {
    height: 100%;
    top: 0;
}


.logo-img {
    height: 6rem; /* Ajuste según necesidad */
    width: auto;
    max-height: 100px; /* No crecer más allá del contenedor */
}

.title-img {
    height: 5rem; /* Ajuste para hacerlo más grande */
    width: auto;
    max-height: 100px; /* No crecer más allá del contenedor */
}

/* ================== CAROUSEL ================== */
.indexMainCarousel {
    display: inline-block;
    width: 100%;
    margin: 0 auto;
}

.carousel-item {
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #000;
}

    .carousel-item img {
        height: 350px;
        object-fit: fill;
        border-radius: 3px;
    }

.carousel-caption {
    color: white;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    font-size: 18px;
}

/* ================== NEWS SECTION ================== */
#latestNews {
    margin-top: 50px;
}

.lastNews {
    background-color: black;
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
}

/* NEWS CARDS */
.news-paragraph {
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    font-size: 18px;
    color: #333;
    margin: 10px 0;
}

.card_box {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    background-clip: content-box;
    border: 5px solid rgba(0, 0, 0, .125);
    border-radius: 1.25em;
    padding: 15px; /* Espaciado interno para evitar que el contenido quede pegado al borde */
    margin: 15px; /* Agrega espacio entre las cards */
}

    .card_box:hover {
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    }

.card-title {
    color: rgb(0, 123, 255);
    font-weight: bold;
}

#latestNews .row {
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 20px; /* Espacio entre las cards */
}

#latestNews .card_box {
    flex: 0 0 calc(32.333% - 20px); /* Ocupa un tercio del ancho */
    max-width: calc(32.333% - 20px);
    margin: 10px; /* Espaciado entre las cards */
}

@media (max-width: 768px) {
    #latestNews .row {
        justify-content: center; /* Centra las cards en móviles */
    }

    #latestNews .card_box {
        flex: 0 0 calc(48% - 20px); /* Dos cards por fila */
        max-width: calc(48% - 20px);
    }
}

/* ================== NEWS DETAILS ================== */
.detailsContainer {
    padding: 10px 0;
    margin: 0 auto;
}

.titleCapsule {
    display: inline-block;
    background-color: black;
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin: 10px auto;
}

.news-body {
    font-size: 1.2rem;
    line-height: 1.6;
    text-align: justify;
    margin-bottom: 30px;
}

/* ================== FOOTER ================== */
footer {
    position: absolute;
    background: linear-gradient(to left, #333, #333 95%, #eee 50%, #333 75%);
    bottom: 0;
}

/* ================== PRIVACY ================== */

.legalNotice {
    background-color: black;
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin-top: 50px;
    margin-bottom: 50px;
}

/* ================== TEAMS ================== */

.teamsTitle {
    margin-top: 30px;
    margin-bottom: 30px;
}

.container {
    max-width: 90%; /* Hace que la tabla ocupe el 90% del ancho de la página */
    padding-left: 15px; /* Pequeño margen a la izquierda */
    padding-right: 15px; /* Pequeño margen a la derecha */
}

.table {
    border-radius: 10px; /* Bordes redondeados */
    overflow: hidden; /* Evitar que los bordes sobresalgan */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3); /* Sombra elegante */
    background-color: white;
    color: black;
}

    .table thead {
        background-color: #003366; /* Azul oscuro */
        color: white;
    }

    .table tbody tr:hover {
        background-color: rgba(0, 123, 255, 0.1); /* Efecto hover en filas */
    }

    .table td, .table th {
        padding: 8px; /* Reduce el espacio interno */
        text-align: center; /* Centrar contenido */
        vertical-align: middle; /* Alinear verticalmente */
        max-width: 190px;        
        width: 190px;
        height: 130px;            
    }

    .table td.p-0{
        background-position: center center;
        background-repeat: no-repeat;
        background-size: cover;
    }

/* Ajustar el tamaño de las imágenes */
.team-image {
    width: 100%; /* Ajusta el ancho */
    height: auto; /* Mantiene la proporción */
    object-fit: cover; /* Evita deformaciones */
    max-width: 230px;
    max-height: 300px;
}

/* ================== MISC. ================== */