/* Estilos base y reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body, html {
    width: 100%;
    height: 100%;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Estilos generales */
section {
    width: 100%;
    min-height: 30vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Estilos del encabezado */
header {
    background-color: rgba(0, 0, 0, 0.493);
    padding: 1px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

#nav {
    display: flex;
    justify-content: space-between;
    height: 80px;
    align-items: center;
    border-bottom: 1.5px solid white;
    width: 100%;
    max-width: 1200px;
    padding: 0 2rem;
}

nav ul {
    list-style-type: none;
    display: flex;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 1.2rem;
    font-weight: bold;
    white-space: nowrap;
}

.logo {
    width: 200px;
    height: 75px;
    object-fit: cover;
}

/* Sección Hero */
#hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
}

#hero h1 {
    position: relative;
    z-index: 1;
    font-size: 3.5rem;
    font-family: "Baskerville", serif;
    color: white;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
    text-align: center;
    max-width: 90%;
}

/* Sección Nosotros */
#nosotros {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#bienvenida {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
    text-align: center;
}

#bienvenida h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

#bienvenida h3 {
    font-size: 1.8rem;
    margin-bottom: 4rem;
    text-align: center;
}

.columnas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin: 0 auto;
    max-width: 1200px;
}

.columnas h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.columnas p {
    font-size: 1.2rem;
    line-height: 1.6;
    text-align: center;
    margin: 0;
    padding: 0 1rem;
    max-width: 600px;
}

/* Sección Estadísticas */
#estadisticas {
    width: 100%;
    background-color: #f5f5f5;
    padding: 6rem 2rem 12rem;
    margin-top: 2rem;
}

.stats-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.stat h4 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #333;
    width: 100%;
}

.stat .numero {
    font-size: 4.5rem;
    font-weight: bold;
    line-height: 1.2;
    margin: 1rem 0;
    color: #1974be;
    transition: color 0.3s ease;
    width: 100%;
}

.stat p {
    font-size: 1.5rem;
    margin-top: 1rem;
    color: #333;
    width: 100%;
}

/* Sección Servicios */
#servicios {
    padding: 6rem 2rem;
    text-align: center;
    background-color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#servicios h2 {
    font-size: 2.5rem;
    margin-bottom: 4rem;
    text-align: center;
    color: #333;
    font-weight: bold;
    width: 100%;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 1rem;
    width: 100%;
}

.servicio {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.servicio img {
    max-width: 70%;
    height: auto;
    object-fit: cover;
}

.servicio p {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0.5rem 0;
    color: #333;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2.5rem;
    background-color: #800080;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
}

.btn:hover {
    background-color: #600060;
}

/* Sección Premios */
#RRHH {
    background-color: #f0f0f0;
    padding: 10rem 2rem;
}

.premio {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 3rem;
}

.premio img {
    max-width: 40%;
    height: auto;
}

.premio-info {
    flex: 1;
}

.premio-info h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.premio-info p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #666;
}

/* Footer */
footer {
    background-color: rgb(229,231,234);
    color: black;
    padding: 9rem 2rem 2rem;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-footer {
    display: flex;
    justify-content: center;
    align-items: center;
}

.sub-logos {
    height: 300px;
    width: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sub-logos img {
    max-width: 50%;
}

.contacto-footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contacto-footer p {
    margin: 0.5rem 0;
}

.footer-links {
    text-align: center;
    margin-top: 2rem;
}

.footer-links a {
    color: black;
    text-decoration: none;
    margin: 0 1rem;
}

.social-icons {
    display: flex;
    justify-content: left;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icons img {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.social-icons img:hover {
    transform: scale(1.2);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover,
.close:focus {
    color: #800080;
}

#joinForm {
    display: flex;
    flex-direction: column;
}

#joinForm label {
    margin-top: 15px;
    font-weight: bold;
    color: #333;
}

#joinForm label[for="info"] {
    font-weight: normal;
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    margin-bottom: 15px;
}

#joinForm input[type="text"],
#joinForm input[type="email"],
#joinForm input[type="tel"],
#joinForm textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

#joinForm input[type="submit"] {
    margin-top: 20px;
    padding: 12px;
    background-color: #800080;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

#joinForm input[type="submit"]:hover {
    background-color: #600060;
}

.modal h2 {
    color: #800080;
    margin-bottom: 20px;
    text-align: center;
}

/* Media Queries */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    header {
        padding: 0.5rem;
    }

    #nav {
        height: 60px;
        padding: 0 1rem;
    }

    nav ul {
        gap: 1rem;
    }

    nav ul li a {
        font-size: 0.9rem;
    }

    .logo {
        width: 120px;
        height: auto;
    }

    .columnas {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .stats-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .stat .numero {
        font-size: 3.5rem;
    }

    #servicios {
        padding: 4rem 1rem;
    }

    #servicios h2 {
        font-size: 2rem;
        margin-bottom: 3rem;
    }

    .servicios-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .premio {
        flex-direction: column;
        text-align: center;
    }

    .premio img {
        max-width: 80%;
        margin: 0 auto;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .sub-logos {
        height: auto;
        width: 100%;
    }

    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 12px;
    }

    #nav {
        padding: 0 0.5rem;
    }

    nav ul li a {
        font-size: 0.8rem;
    }

    .logo {
        width: 100px;
    }

    #servicios h2 {
        font-size: 1.8rem;
        margin-bottom: 2.5rem;
    }

    .servicios-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 0.5rem;
    }

    .servicio img {
        width: 100%;
    }

    .servicio p {
        font-size: 1.2rem;
    }

    .btn {
        padding: 0.7rem 2rem;
        font-size: 1rem;
    }

    .stat .numero {
        font-size: 3rem;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }

    .footer-links a {
        display: block;
        margin: 0.5rem 0;
    }
}
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1000;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 30%;
    height: 100vh;
    background-color: white;
    z-index: 999;
    transition: left 0.3s ease;
    padding: 20px;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.mobile-menu-header h2 {
    margin: 0;
    color: #333;
    font-size: 24px;
}

.close-menu {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.mobile-menu ul li {
    border-bottom: 1px solid #eee;
}

.mobile-menu ul li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    color: #333;
    text-decoration: none;
    font-size: 16px;
}

.mobile-menu ul li a::after {
    content: '›';
    font-size: 20px;
}

/* Media queries */
@media (max-width: 849px) {
    .mobile-menu-btn {
        display: flex;
    }

    .desktop-menu {
        display: none !important;
    }

    #nav {
        justify-content: space-between;
        padding: 0 20px;
    }

    .logo {
        width: 150px;
        height: 60px;
    }
}

