* {
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    background-color: #c7dcf8;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

#main-content {
    flex: 1; /* Esto empuja el footer hacia abajo */
}

#body_Index{
        overflow: hidden;  /* Oculta las barras de desplazamiento solo en Index*/    
}

.header {
    display: flex; /* Para centrar o alinear el contenido */
    justify-content: center;
    align-items: center;
    width: 100vw;   /*Ocupa todo el ancho de la pagina*/
    /*margin: 0;    
    padding: 0;  */
}

.banner-web {
    width: 100vw; /* La imagen ocupará el ancho completo del contenedor */
    height: auto; /* Ajusta automáticamente la altura según el ancho */
    object-fit: cover; /* asegura que ocupe todo el ancho de la pantalla sin deformarse */
}

.boton_pag_principal{
    height: 23%;
    width: 16%;
    position: absolute; /*Ubica el enlace sobre la imagen*/
    top: 5%; transform: translateY(-50%); /*Lo centra verticalmente.*/
    right: 3%; /* Ubicación en la derecha */
    transform: translateY(-1%);  /*Centrar verticalmente */
    background-color: rgba(0, 0, 0, 0); /* Fondo semitransparente */
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
}

/*====================================================
=======================MENU DESPLEGABLE===============
======================================================*/

.nav-barra{
    width: 100%;
    background-color: #0d6efd;
    padding: 10px 0;
}
.lista-barra{
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 0;
    margin: 0;
}
.lista-barra li {
    display:inline-block;
    position: relative;
}
.lista-barra a{
    text-decoration: none;
    color: white;
    font-size: 18px;
    padding: 10px 15px;
    transition: background 0.3s ease;
}
.lista-barra a:hover{
    background-color: #084298;
    border-radius: 5px;
}

.Button_menu {
    display: none;
}
/*====================================================
=======================CUERPO DE PAGINA===============
======================================================*/

.contenedores {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    max-width: 1400px;
    margin: 0;
    padding: 0;
    padding-top: 40px;
    padding-bottom: 20px;
}

.contenedores img { /* Imágenes dentro del contenedor */
    width: calc(50% - 10px); /* En pantallas grandes, cada imagen ocupará la mitad */
    max-width: 620px;
  /*  height: 320px;  */
    object-fit: cover;
    border-radius: 10px;
}

   .contenedores::after {
    content: "";
    width: 610px;
}

.membretepp {
    width: 55%;
    margin-top: 20px;
}

.footer {
    text-align: center;
    background-color: #0d6efd;
    padding: 20px 0;
    position: relative;
    bottom: 0;
    width: 100%;
}

.footer-container {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: nowrap; /* Mantener los íconos en una sola fila */
    max-width: 95%;
    margin: 0 auto;
}

/* Estilos de los íconos */
.footer-link img, .hover-icon {
    width: 60px; /* Tamaño uniforme */
    height: auto;
}

.hover-icon {
    position: relative;
    display: flex; /* Asegurar que se comporta igual que los otros íconos */
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px; /* Mantener la misma altura que los otros íconos */
}

.hover-icon img {
    position: absolute;
    width: 100%;
    height: auto;
}

.hover-img {
    display: none;
}

.hover-icon:hover .default-img {
    display: none;
}

.hover-icon:hover .hover-img {
    display: block;
}

.sitio_constr {
    width: 40%;
    height: auto;
    max-width: 100vw; /* Asegura que no sobrepase el ancho de la ventana */
    max-height: 100vh; /* Limita la altura a la ventana visible */
    object-fit: contain; /* Ajusta la imagen sin recortar */
    display: block;
    margin: 5% auto; /* Centra la imagen si es más pequeña */
}

/********************************************************
************* PAGINA INSCRIPCIONES **********************
*********************************************************/

#body_inscripciones{
    overflow-x: hidden;  /* Oculta las barras de desplazamiento solo en Index*/  
}
.tabla_inscripciones{
    width: 100%;                              /*Ancho de la tabla*/
    background-color: rgba(5, 70, 248, 0.2);    /* Transparencia 20% */
    color: black;                               /* Color del texto */
    /*border: 5px solid rgb(8, 66, 152,.8);*/       /*Borde de la tabla*/
    border: none;
    text-align: center;
    margin-top: 2%;
    margin-bottom: 2%;
    margin-left: 1%;
    margin-right: 1%;
}
.btn-inscripcion {                                 /*Boton de inscribirme*/
    background-color: #3c3d3d;
    color: white;
    border: none;
    padding: 6px 12px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 5px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 1), inset 2px 2px 5px rgb(87, 86, 86); /* Sombra suave */
}
.titulo_tabla th{                                   /*FILA DE TITULOS*/
    background-color: #2E3A59;                  /*Color del fondo*/
    color: white;                               /* Color del texto*/
    font-weight: bold;
    text-align: center;
    padding: 10px;
    border-bottom: 2px solid #444;
}
.tabla_inscripciones tbody tr {
    background-color: rgba(64,105,167,.4);  /* Color de fondo */
    text-align: center;
    height: 50px;
    vertical-align: middle; /* Centra el contenido */
}
.tabla_inscripciones tbody tr:nth-child(even) {
    background-color: rgba(69,91,125,.2);  /* Alternar colores para diferenciación */
    height: 50px;
    vertical-align: middle; /* Centra el contenido */
}
.tabla_inscripciones tbody tr td:first-child {              /*celdas nombres de cursos*/
    font-family: sans-serif;
    font-weight:bold !important;
    color: rgb(10, 10, 20);  /* Color llamativo */
    font-size: 1.0em;
    text-align: center;
}
.tabla_inscripciones td{
    padding:6px;
    font-size: 85%;
    text-align: center;
}

#countdown-container {
    text-align: center;
    font-size: 36px;
    font-weight: bold;
    color: #741904; /* Color llamativo */
    padding: 20px;
    background: #c7dcf8;
    border-radius: 10px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}
/*======================================================
=====================RESPONSIVIDAD PARA=================
=====================PANTALLAS PEQUEÑAS=================
========================================================*/

@media screen and (max-width: 820px) {

    body {
    overflow: auto;  /* habilitamos las barras de desplazamiento */
    }

    .banner-web {
    width: 100%; /* La imagen ocupará el ancho completo del contenedor */
    height: auto; /* Ajusta automáticamente la altura según el ancho */
    object-fit: cover; /* asegura que ocupe todo el ancho de la pantalla sin deformarse */
    }

    .nav-barra {
        position: relative;
        width: 100%;
        background-color: #0d6efd;
    }

    .Button_menu{
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left:47%;
        padding: 10px;
        color: white;
        background: rgba(40, 25, 165, 0.50);
        backdrop-filter: blur(10px);
        font-size: 16px;
        font-weight: bold;
        border-radius: 5px;
        cursor: pointer;
        border: 1px solid rgb(255,255, 255, 0.2);
        transition: all 0.3s ease;
    }

    .Button_menu:hover{
        background: rgba(40, 25, 165, 0.70);
        transition: transform 0.3s ease, background 0.3s ease;
        transform: scale(1.1);
    }
    
    .lista-barra.active {
        display: flex;
        max-height: 80vh; /* Limitar la altura para evitar desbordamiento */
        overflow-y: auto; /* Permitir desplazamiento si es necesario */
    }

    .lista-barra {
        display: none;
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 10px 0;
    }

    .lista-barra li {
        width: 100%;
        text-align: center;
    }

    .lista-barra a {
        display: block;
        width: 100%;
        padding: 10px;
    }

    .footer-container {
        flex-wrap: wrap; /* Permitir que se acomoden si el espacio es muy reducido */
    }

    .contenedores{
        flex-direction: row;
        align-items: center;
    }

    .contenedores img{
        width: 100%;
        max-width: none; /* En móviles, ocupará el espacio disponible sin restricciones */
    }

    .footer-link img, .hover-icon {
        width: 50px; /* Reducir tamaño en móviles */
    }

/*****************************************************************************************
***************************** PAGINA INSCRIPCIONES RESPONSIVA **************************
*****************************************************************************************/

    .tabla_inscripciones {
        width: 100%; /* Ancho completo */
        max-width: 1080px; /* Igual al límite del banner */
        margin: 0 auto; /* Sin márgenes */
        padding: 0; /* Sin relleno */
        border-collapse: collapse; /* Colapsar bordes */
        font-size: 14px; /* Tamaño de fuente más pequeño */
    }
    .tabla_inscripciones tr{
        height: 40px; /* Altura de las filas */
    }
    .tabla_inscripciones tbody tr td:first-child {
        text-align: center !important; /* Centrar texto */
        width: 150px;
    }
    .tabla_inscripciones td{
        font-size: 12px; /* Tamaño de fuente más pequeño */
    }

    .tabla_inscripciones th, .tabla_inscripciones td {
        padding: 5px; /* Espaciado interno */
        margin: 0;
        min-width: 50px; /* Ancho mínimo para celdas */
        white-space:pre-wrap; /*Permite que el texto se divida en varias lineas si es necesario */
    }

    .tabla_inscripciones th:nth-child(1),
    .tabla_inscripciones td:nth-child(1){
   /*     max-width: 30px;  /* Ajusta según necesidad */
        white-space: pre-wrap; /*Permite que el texto se divida en varias lineas si es necesario */
    }

    .tabla_inscripciones th:nth-child(2),
    .tabla_inscripciones td:nth-child(2){
        min-width: 30px;  /* Ajusta según necesidad */
        white-space: pre-wrap; /*Permite que el texto se divida en varias lineas si es necesario */
    }

    .tabla_inscripciones th:nth-child(3),
    .tabla_inscripciones td:nth-child(3){
        width: 30px; /* Ancho del botón de inscripción */
    }
    
    .tabla_inscripciones th:nth-child(4),
    .tabla_inscripciones td:nth-child(4),
    .tabla_inscripciones th:nth-child(5),
    .tabla_inscripciones td:nth-child(5){
        display: none;
    }

    .btn-inscripcion {
        width: 100%;
        text-align: center;
/*        background-color: blue; /* Color de fondo del botón */
    }
}