
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    z-index: 1000; /* Para que quede encima del resto */
    background-color: #f4f4f9;
}

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


html {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 30vh;
    text-align: center;
    padding: 20px;
    background-color: #f9f9f9;
}


main h1 {
    font-size: 2.5em;
    color: #315fbf;
    margin-bottom: 10px;
}


main p {
    font-size: 1.2em;
    color: #555;
    max-width: 800px;
    line-height: 1.6;
}

.h1home {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 2em;
    color: #315fbf;
    margin-bottom: 10px;
}

.h1hometitle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 2.5em;
    color: #315fbf;
    margin-bottom: 10px;
}


.phome {
    text-align: justify;
    margin: 0 auto;
    max-width: 90%;
    padding: 0 30px;
    font-size: 1em;
    color: #333;

}

@media (max-width: 768px) {
    main h1 {
        font-size: 2em;
    }

    main p {
        font-size: 1em;
    }
    .h1home {
        font-size: 2em;
    }

    .h1hometitle {
        font-size: 2em;
    }

    .phome {
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    main h1 {
        font-size: 1.8em;
    }

    main p {
        font-size: 0.9em;
    }
    .h1home {
        font-size: 1.8em;
    }

    .h1hometitle {
        font-size: 1.8em;
    }

    .phome {
        font-size: 0.9em;
    }
}


header {
    background-color: #315fbf;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}


h3 {
    font-size: 1.8rem;
    color: #34495e;
    line-height: 1.5;
    text-align: center;
}

.h3timeline {
    font-size: 2rem;
    color: #315fbf;
    line-height: 1.5;
    text-align: center;
}

.h3timeline:hover {
    color: #315fbf;
    font-size: 1.5rem;
}

.h3timeline1 {
    font-size: 3rem;
    color: white;
    line-height: 1.5;
    text-align: center;
}

.h3timeline:hover {
    color: white;
    font-size: 2rem;
}

p {
    font-size: 1rem;
    color: #7f8c8d;
    line-height: 1.6;
    text-align: justify;
}

.h4tabla{
    font-size: 1.2rem;
    color: #315fbf;
    line-height: 1.5;
    text-align: center;
}


@media (max-width: 1024px) {
    h3 {
        font-size: 1.6rem;
    }

    p {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    h3 {
        font-size: 1.4rem;
        text-align: left;
    }

    p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    h3 {
        font-size: 1.2rem;
    }

    p {
        font-size: 0.85rem;
    }
}

.table {
    text-align: center;
    max-width: 85%;
    border-collapse: collapse;
    margin: 0 auto;
    padding: 0 30px;
}

.table th, .table td {
    padding: 10px;
    text-align: center;
}

.table th {
    background-color: #f2f2f2;
}

.table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.table-bordered {
    border: 3px solid #315fbf;
}

@media (max-width: 768px) {
    .h1home {
        font-size: 1.5em;
    }
    .table th, .table td {
        font-size: 0.9em;
    }
}

.image-container {
    text-align: center;
    margin-top: 10px;
}

.small-image {
    max-width: 150px; /* Ancho máximo del párrafo */ /* Ancho pequeño para la imagen */
    height: auto; /* Mantiene la proporción de la imagen */
    display: inline-block; /* Se comporta como un elemento en línea centrado */
    border-radius: 8px; /* Bordes redondeados opcional */
}

.small-image1 {
    max-width: 170px; /* Ancho máximo del párrafo */ /* Ancho pequeño para la imagen */
    height: auto; /* Mantiene la proporción de la imagen */
    display: inline-block; /* Se comporta como un elemento en línea centrado */
    border-radius: 8px; /* Bordes redondeados opcional */
}

.small-image2 {
    max-width: 700px; /* Ancho máximo del párrafo */ /* Ancho pequeño para la imagen */
    height: auto; /* Mantiene la proporción de la imagen */
    display: inline-block; /* Se comporta como un elemento en línea centrado */
    border-radius: 8px; /* Bordes redondeados opcional */
}

.register-container {
    max-width: 700px;
    margin: 40px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
h2 {
    color: #315fbf;
    text-align: center;
    margin-bottom: 20px;
}
.btn-custom {
    background-color: #315fbf;
    color: #fff;
}
.navbarlog {
    display: none;
}

.navbarlog.active {
    display: block;
}

.text-danger {
    color: red;
    font-size: 0.9em;
    margin-top: 5px;
}

.navbar a {
    color: #315fbf;
    font-weight: normal;
    text-decoration: none;
    transition: font-weight 0.2s ease, color 0.2s ease;
}

.navbar a:hover {
    font-weight: bold;
    color: #315fbf;
    text-decoration: none;
}

.container {
    flex: 1;
}

footer {
    background-color: #315fbf;
    color: white;
    text-align: center;
    padding: 20px 0;
    position: relative;
    width: 100%;
    margin-top: auto;
    white-space: nowrap;
    font-size: 1rem;
}


footer a {
    color: white;
    text-decoration: none;
    font-weight: normal;
    transition: font-weight 0.3s ease;
}

footer a:hover {
    font-weight: bold;
}


footer .footer-text {
    font-size: 1rem;
    font-weight: normal;
    transition: font-weight 0.3s ease;
}


footer .footer-text:hover {
    font-weight: bold;
}

/* Eliminar las viñetas */
.redes-sociales {
    list-style-type: none;
    padding-left: 0; /
}

/* Mejorar la presentación */
.redes-sociales li {
    margin-bottom: 10px; /* Espacio entre cada red social */
}

.redes-sociales a {
    text-decoration: none; /* Quitar subrayado a los enlaces */
    color: #007bff; /* Un color de enlace personalizado */
}

.redes-sociales a:hover {
    color: #0056b3; /* Color al pasar el ratón */
}

/* Estilos para el contenedor principal del timeline */
.timeline {
    display: flex;
    justify-content: space-between; /* Espacios distribuidos entre los elementos */
    align-items: center; /* Alinear los elementos verticalmente */
    position: relative;
    margin-top: 40px;
    margin-bottom: 40px;
    width: 100%;
}

/* Estilo para cada item del timeline */
.timeline-item {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 22%;
    text-align: center;
    height: 350px;
    padding: 20px;
    border: 4px solid #315fbf;
    border-radius: 8px;
    transition: all 0.3s ease;
    z-index: 1;
    transform: translateY(0);
}

.timeline-item a {
    text-decoration: none !important;
}



/* Efecto al pasar el mouse */
.timeline-item:hover {
    border-color: red; /* Cambia a rojo cuando el mouse pasa por encima */
    transform: translateY(-10px); /* Eleva el item ligeramente */
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.2); /* Sombra suave para dar efecto de elevación */
}

/* El contenido dentro de cada item */
.timeline-content h3,
.timeline-content h4,
.timeline-content h5 {
    margin: 5px 0;
    color: #315fbf; /* Color de texto blanco por defecto */
    font-size: 14px; /* Reducimos el tamaño del texto */
    text-decoration: none; /* Quitamos el subrayado si hay enlaces */
}

/* H3 en negrita y rojo al pasar el mouse */
.timeline-content h3 {
    font-weight: normal; /* No es negrita por defecto */
    transition: color 0.3s, font-weight 0.3s; /* Transición suave para el cambio */
}

/* Efecto hover sobre el h3 */
.timeline-item:hover .timeline-content h3 {
    color: red; /* Cambia el color a rojo */
    font-weight: bold; /* Cambia el peso a negrita */
}

/* Estilo para la línea de conexión entre los items (por detrás de los items) */
.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 4px;
    background-color: #315fbf; /* Línea de color azul */
    z-index: -1; /* Coloca la línea por detrás de los items */
}

/* Responsividad para pantallas pequeñas */
@media (max-width: 768px) {
    .timeline {
        flex-direction: column; /* Los items se alinean verticalmente */
        align-items: flex-start;
    }

    .timeline-item {
        width: 90%; /* Los items ocupan el 90% del contenedor */
        margin-bottom: 20px; /* Separación entre los items */
        height: auto; /* Permitimos que la altura se ajuste automáticamente */
    }

    .timeline::before {
        left: 50%;
        transform: translateX(-50%); /* Centra la línea en la vista móvil */
    }
}

/*BANNER*/
/* Contenedor del banner */
.banner-container {
    position: relative;
    width: 100%;
    height: auto;
}

/* Estilo del banner */
.banner-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease-in-out; /* Efecto al pasar el mouse */
}

.banner-etapas{
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.2s ease-in-out; /* Efecto al pasar el mouse */
}

.foro-img {
    width: 70%;
    height: auto;
    display: block;
    transition: transform 0.3s ease-in-out;
    margin: 20px auto;
}


.estructura-img {
    width: 50%;
    height: auto;
    display: block;
    transition: transform 0.3s ease-in-out;
    margin: 20px auto;
}

/* Estilo del texto encima del banner */
.banner-text {
    position: absolute;
    top: 50%;
    left: 22.5%;
    transform: translate(-50%, -50%);
    font-family: Arial, sans-serif;
    font-size: 40px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Sombra para mayor legibilidad */
    transition: color 0.3s ease-in-out, font-size 0.3s ease-in-out; /* Efectos dinámicos */
}

.banner-text1 {
    position: absolute;
    top: 40%;
    left: 22.5%;
    transform: translate(-50%, -50%);
    font-family: Arial, sans-serif;
    font-size: 60px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Sombra para mayor legibilidad */
    transition: color 0.3s ease-in-out, font-size 0.3s ease-in-out; /* Efectos dinámicos */
}

.banner-text2 {
    position: absolute;
    top: 60%;
    left: 22.5%;
    transform: translate(-50%, -50%);
    font-family: Arial, sans-serif;
    font-size: 50px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Sombra para mayor legibilidad */
    transition: color 0.3s ease-in-out, font-size 0.3s ease-in-out; /* Efectos dinámicos */
}

/* Cambio de color y tamaño al pasar el mouse sobre el banner */
.banner-container:hover .banner-img {
    transform: scale(1.1); /* Aumenta ligeramente el tamaño del banner */
}

.banner-container:hover .foro-img {
    transform: scale(1.1); /* Aumenta ligeramente el tamaño del banner */
}




.banner-container:hover .estructura-img {
    transform: scale(1.1); /* Aumenta ligeramente el tamaño del banner */
}

.banner-container:hover .banner-text {
    color: #FFD700; /* Cambia el color del texto */
    font-size: 50px; /* Aumenta el tamaño del texto */
}

.content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 50px;
    background-color: white;
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
    margin-bottom: 20px;
    border-radius: 8px;
    text-align: center;
}
.profile-img {
        width: 120px;
        height: 120px;
        border-radius: 50%;
        object-fit: cover;
        border: 3px solid #315fbf;
        margin-bottom: 15px;
    }

.h3a {
            font-size: 2rem; /* Tamaño base */
            color: #315fbf;
            line-height: 1.5;
            text-align: center;
    }

.profile-imgbase {
    width: 100px;
    height:100px;
    border-radius: 20%;
    object-fit: cover;
    display: block;
    margin: 10px auto;
}