/* Estilos generales */
:root {
    --primary-color: #2563eb;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
}

body {
    font-family: "Lato", sans-serif;
    font-weight: 500;
    font-style: normal;
    margin: 0;
    padding: 0;
    color: var(--dark-color);
    line-height: 1.6;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: var(--light-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo h1 {
    margin: 0;
    font-size: 1.8rem;
}

.logo span {
    color: var(--primary-color);
}

.navbar ul {
    display: flex;
    list-style: none;
}

.navbar li {
    margin-left: 1rem;
}

.navbar a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
}

/* ini Section */
.ini {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('/imgs/Logoo.png') center/cover;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 2rem;
    color: white;
}

.nueva {
    margin: 2rem;
}

.h2 {
    margin-left: 1rem;
}

/*Galeria Rotante*/
.galeria-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 40px 0;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.galeria {
    display: flex;
    overflow-x: scroll;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
}

.galeria::-webkit-scrollbar {
    display: none;
}

.galeria img {
    width: 300px;
    height: 200px;
    margin: 0 20px;
    border-radius: 10px;
    object-fit: cover;
    scroll-snap-align: center;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* Flechas De Galeria */
.flecha {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 24px;
    z-index: 2;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.izquierda {
    left: 10px;
}

.derecha {
    right: 10px;
}

/* Estilo del modal */
.fondo-negro {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 998;
    display: flex;
    justify-content: center;
    align-items: center;
}

.zoom-img {
    max-width: 80vw;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s ease;
}

@media (max-width: 600px) {
    .zoom-img {
        max-width: 95vw;
        max-height: 70vh;
    }
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 3rem 5%;
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-section a {
    color: white;
    margin-right: 1rem;
    font-size: 1.5rem;
}

.copyright {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #64748b;
}

/*Flecha Hacia Arriva*/
.flecha-arriba {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 22px;
    background-color: rgba(3, 45, 182, 0.4);
    color: white;
    font-size: 24px;
    padding: 10px 15px;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s;
    z-index: 1000;
    text-align: center;
}

.flecha-arriba:hover {
    background-color: rgb(1, 104, 163);
    transition: translateY(0, 3s);
}

/*  Media Queries para Responsive */
/* Tablets (768px) */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
    }

    .navbar ul {
        margin-top: 1rem;
    }

    .navbar li {
        margin: 0 0.5rem;
    }

    .contenido_ini h2 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

/* Móviles (480px) */
@media (max-width: 480px) {
    .ini {
        min-height: 50vh;
        padding: 1rem;
    }

    .contenido_ini h2 {
        font-size: 1.8rem;
    }

    .contenido_ini p {
        font-size: 1rem;
    }

    .footer-section {
        margin-bottom: 1.5rem;
    }
}

/* Pequeños móviles (360px) */
@media (max-width: 360px) {
    .navbar li {
        margin: 0 0.3rem;
    }

    .contenido_ini h2 {
        font-size: 1.5rem;
    }
}