/* Estilos generales */
body {
    font-family: 'Nunito', sans-serif;
    line-height: 1.5;
    text-align: center;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
}

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

.justify-text {
    text-align: justify;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #003366; /* Azul oscuro */
    color: white;
    padding: 10px 20px;
    flex-wrap: wrap;
}

header img {
    height: 70px;
    width: 200px;
    max-width: 800px;
}

nav {
    position: relative;
}

.menu-icon {
    display: none;
    font-size: 30px;
    cursor: pointer;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0 10px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 10px;
    display: block;
}

nav ul li a:hover {
    background-color: #005bb5; /* Fondo azul oscuro al pasar el cursor */
    color: #ffffff; /* Color de texto blanco */
    border-radius: 5px; /* Bordes redondeados */
    transition: background-color 0.3s ease, color 0.3s ease; /* Transición suave */
}

button {
    background-color: #ff3333; /* Rojo brillante */
    border: none;
    color: white;
    padding: 10px 20px;
    cursor: pointer;
    margin-top: 10px;
}

main {
    padding: 20px;
    margin-left: 20%;
    margin-right: 20%;
    border: none; /* Quitar la línea del margen */
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    border: 1px solid black;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
}

.section-border {
    border: none; /* Quitar la línea del margen */
    padding: 20px;
    margin: 20px 0;
    border-radius: 10px; /* Borde redondeado */
    background-color: #ffffff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1); /* Añadir sombra */
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 10px; /* Bordes redondeados para mejor estética */
    box-shadow: 0 0 10px rgba(0,0,0,0.1); /* Añadir sombra */
}

.social-container {
    justify-content: center;
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.social-link {
    display: inline-block;
}

.social-image {
    width: 40px; /* Ajustar tamaño de las imágenes de redes sociales */
    height: auto;
}

.social-icons {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.social-icons li {
    display: inline-block;
}

.social-icons a {
    color: #ff3333; /* Rojo brillante */
    font-size: 24px;
    text-decoration: none;
}

.social-icons a:hover {
    color: #b30000; /* Rojo oscuro */
}

footer {
    background-color: #333333; /* Negro claro */
    color: white;
    text-align: center;
    padding: 10px 20px;
}

/* Media Queries para responsividad */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    .menu-icon {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    nav ul.show {
        display: flex;
    }

    nav ul li {
        margin: 5px 0;
    }

    main {
        margin-left: 5%;
        margin-right: 5%;
    }

    .slider {
        height: 40vh; /* Reducir altura en pantallas más pequeñas */
    }

    .social-container {
        justify-content: center; /* Alinear al centro en pantallas pequeñas */
    }

    /* Estilos responsivos para la tabla */
    table, thead, tbody, th, td, tr {
        display: block;
    }

    th {
        background-color: transparent;
        color: #333;
        text-align: right;
    }

    td {
        text-align: right;
    }

    th, td {
        border: none;
        position: relative;
        padding-left: 50%;
    }

    th::before, td::before {
        position: absolute;
        left: 10px;
        white-space: nowrap;
    }

    th::before {
        content: attr(data-title);
    }

    td::before {
        content: attr(data-title);
    }

    tr {
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 10px;
    }

    nav ul li a {
        font-size: 14px;
    }

    button {
        font-size: 14px;
        padding: 8px;
    }

    footer {
        padding: 5px 10px;
    }

    main {
        margin-left: 2%;
        margin-right: 2%;
    }

    .slider {
        height: 30vh; /* Reducir altura en pantallas más pequeñas */
    }

    .social-container {
        justify-content: center; /* Alinear al centro en pantallas pequeñas */
    }

    /* Estilos responsivos para la tabla */
    table, thead, tbody, th, td, tr {
        display: block;
    }

    th {
        background-color: transparent;
        color: #333;
        text-align: right;
    }

    td {
        text-align: right;
    }

    th, td {
        border: none;
        position: relative;
        padding-left: 50%;
    }

    th::before, td::before {
        position: absolute;
        left: 10px;
        white-space: nowrap;
    }

    th::before {
        content: attr(data-title);
    }

    td::before {
        content: attr(data-title);
    }

    tr {
        margin-bottom: 10px;
    }
}

/* Estilos responsivos mejorados para la tabla */
@media (max-width: 768px) {
    .responsive-table {
        width: 100%;
        border-collapse: collapse;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .responsive-table thead {
        display: none; /* Ocultar el encabezado en pantallas pequeñas */
    }

    .responsive-table tbody, .responsive-table tr, .responsive-table td, .responsive-table th {
        display: block;
    }

    .responsive-table tr {
        margin-bottom: 10px;
        border: 1px solid #ddd;
    }

    .responsive-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px;
        border: none;
        text-align: left;
        position: relative;
    }

    .responsive-table td::before {
        content: attr(data-title);
        flex-basis: 50%;
        text-align: left;
        font-weight: bold;
        color: #333;
    }
}

.round-image {
    display: block;
    margin: 20px auto;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Estilos para el efecto hover en las imágenes */
.image-container img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-container img:hover {
    transform: scale(1.05); /* Agrandar un poco la imagen */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); /* Añadir sombra */
}

.center-image {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 40%; /* Ajustar el tamaño según sea necesario */
}

.center-imageVit {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 25%; /* Ajustar el tamaño según sea necesario */
}