:root {
    --secondary-color: #4a5568;
    --accent-color: #64061d;
    --light-bg-color: #f9f4f4;
    --font-family: 'Poppins', sans-serif;
    --title-font-family: "Raleway", sans-serif
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--secondary-color);
    background-color: #ffffff;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    background-color: #ffffff;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-color);
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: var(--accent-color);
}

section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 50px;
    font-family: var(--title-font-family);
}

.about {
    background-color: var(--accent-color);
}

.about-content {
    padding-top: 80px;
    display: flex;
    gap: 50px;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 1rem;
    font-family: var(--title-font-family);
}

.about-text p {
    margin-bottom: 1rem;
    color: rgb(209, 209, 209);
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    max-width: 100%;
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-mission-vision {
    background: var(--light-bg-color);
}

.about-mission-vision .container {
    display: flex;
    gap: 60px;
}

.about-mission-vision img {
    width: 300px;
    object-fit: cover;
}

.about-mission-vision .content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.about-mission-vision h4 {
    color: var(--accent-color);
    font-family: var(--title-font-family);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.about-mission-vision p+p {
    margin-top: 20px;
}

.services {
    background-color: #fff;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--accent-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 2px solid #e5e5e5;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card h4 {
    color: var(--accent-color);
    margin-bottom: 10px;
    font-family: var(--title-font-family);
    font-size: 1.25rem;
    color: #fff;
}

.service-card p {
    color: #d1d1d1;
}

.gallery {
    background-color: var(--light-bg-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-grid img {
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-grid img,
.gallery-grid video {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    background: #fff;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

/* Sección de Contacto */
.contact {
    text-align: center;
}

.contact .section-title {
    margin-bottom: 10px;
}

.contact p {
    margin-bottom: 20px;
}

.contact-info {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
}

.footer {
    background-color: #151516;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}

@media (max-width: 1100px) {
    .about-mission-vision img {
        display: none;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 15px;
    }

    .nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .about-content {
        flex-direction: column;
    }

    .about-image {
        order: -1;
    }

    .about-image img {
        border-radius: 999px;
        height: 280px;
        width: 280px;
    }

    .about-mission-vision .container {
        flex-direction: column;
    }

    .about-mission-vision img {
        display: block;
        width: 100%;
        max-height: 300px;
    }
}

@media (max-width: 450px) {
    .nav ul {
        gap: 12px;
    }
}

/* Estilos del Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease-in-out;
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 100%;
    max-width: 800px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease-in-out;
}

.close-button {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    transition: color 0.3s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.close-button:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

.gallery-image {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-image:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .modal-content {
        padding: 10px;
    }

    .close-button {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }

    .modal-content img {
        max-height: 85vh;
    }

    .gallery-grid video {
        height: 320px;
    }

}