/* --- Estilos Generales --- */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
}

h1, h2, h3 {
    margin: 0;
}

/* --- Encabezado --- */
header {
    background: linear-gradient(to right, #2a5298, #1e3c72);
    color: white;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header h1 {
    font-size: 1.8rem;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #f39c12;
}

.btn-cta-nav {
    background: #f39c12;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    text-decoration: none;
}

.btn-cta-nav:hover {
    background: #e67e22;
}

/* --- Hero Section --- */

    /* --- Sección Hero --- */
    .hero {
        /*background: linear-gradient(135deg, #2a5298, #1e3c72);*/ /* Fondo degradado azul */
        background: url('../images/meeting.jpg') no-repeat center center; /* Imagen de fondo */
        background-size: cover; /* Ajustar la imagen para cubrir toda la sección */
        color: #fff  !important; /* Texto blanco forzado fff*/
        text-align: center;
        padding: 100px 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 400px;
        position: relative; /* Necesario si se agregan overlays */
    }

    .hero-content {
        position: relative; /* Asegura que el contenido esté sobre el overlay */
        z-index: 2;
        max-width: 600px;
        background: rgba(42, 82, 152, 0.7); /* Fondo azul semitransparente */
        padding: 20px; /* Espaciado interno */
        border-radius: 8px; /* Bordes redondeados */
        display: inline-block; /* Ajusta el tamaño al contenido */
        color: #fff; /* Texto blanco */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Sombra para mayor contraste */
    }

    .hero h2 {
        font-size: 2.5em;
        margin-bottom: 10px;
    }

    .hero p {
        font-size: 1.2em;
        margin-bottom: 20px;
    }

    .btn-cta {
        display: inline-block;
        background-color: #ff9800; /* Botón llamativo */
        color: #fff;
        padding: 10px 20px;
        border-radius: 5px;
        text-decoration: none;
        font-weight: bold;
        transition: background-color 0.3s ease;
    }

    .btn-cta:hover {
        background-color: #e68900;
    }


.service-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.service-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 280px;
    text-align: center;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    margin-bottom: 10px;
    color: #2a5298;
}

.service-card p {
    font-size: 0.9rem;
}

/* --- Sobre Nosotros --- */
.about {
    background: linear-gradient(to right, #1e3c72, #2a5298);
    color: white;
    text-align: center;
    padding: 50px 20px;
}

.about h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

/* --- Gráfica con Chart.js --- */
.chart-section {
    padding: 50px 20px;
    text-align: center;
    background: #ffffff;
}

.chart-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.chart-container {
    width: 80%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
}

/* --- Contacto --- */
.contact {
    background: #2a5298;
    color: white;
    text-align: center;
    padding: 50px 20px;
}

.contact h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.contact p {
    margin-bottom: 20px;
}

.btn-contact {
    background: #27ae60;
    color: white;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 5px;
    text-decoration: none;
}

.btn-contact:hover {
    background: #1e8449;
}

/* --- Pie de Página --- */
footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 15px 0;
    font-size: 0.9rem;
}

/* --- Responsivo --- */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .service-container {
        flex-direction: column;
    }

    .chart-container {
        width: 100%;
    }
}

/* --- Gráfica Chart.js --- */
.chart-container {
    width: 90%;
    max-width: 800px;
    margin: 20px auto;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background: #fff;
}

canvas#dataChart {
    max-height: 400px;
}

/* Modal */
/* Estilos para el Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Permite el desplazamiento */
    background-color: rgba(0,0,0,0.7); /* Fondo semi-transparente */
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 700px; /* Ancho máximo del modal */
    max-height: 80vh; /* Altura máxima */
    overflow-y: auto; /* Desplazamiento vertical */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modal-content h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.modal-content p {
    white-space: pre-line; /* Respeta los saltos de línea */
    font-size: 1em;
    line-height: 1.5;
    margin-top: 10px;
}

.close-btn {
    float: right;
    font-size: 1.5em;
    font-weight: bold;
    cursor: pointer;
    color: #333;
}
.detail-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #0078D7;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.detail-btn:hover {
    background-color: #005bb5;
}
