/* Estilos generales */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Raleway', Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #fff;
    color: #454444;
    line-height: 1.6;
}

/* Estilos del encabezado */
header {
    position: relative;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: relative;
}

.logo img {
    margin-top: 20px;
    width: 180px;
    height: auto;
    transition: transform 0.3s;
}

.social-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.social-icons {
    display: flex;
    margin-bottom: 10px;
}

.social-icons a {
    margin-left: 15px;
    transition: transform 0.3s;
}

.social-icons a:hover img {
    transform: scale(1.2);
}

.social-icons img {
    width: 24px;
    height: 24px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
    font-family: 'Century Gothic', Arial, sans-serif;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links li a {
    color: #454444;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links li a:hover, .nav-links li a.active {
    color: #E5C62E;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 2;
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.menu-toggle span {
    background: #454444;
    margin: 4px 0;
    width: 25px;
    height: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

/* Estilos para el héroe */
#hero {
    background-image: url('images/hero.svg'); /* Imagen de fondo del hero */
    background-size: cover; /* 
    background-position: center; /* Centrar la imagen */
    color: #454444; /* Texto gris */
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 0 20px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    animation: fadeIn 1s;
}

#hero h1 {
    font-size: 3rem;
    margin: 0;
    animation: fadeInDown 1s;
}

#hero p {
    font-size: 1.5rem;
    animation: fadeInUp 1s;
}

.cta-button {
    background-color: #E5C62E;
    color: #454444;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
    margin-top: 20px;
    animation: fadeIn 1.2s;
}

.cta-button:hover {
    background-color: #FFD700;
    transform: scale(1.2);
}

/* Estilos de secciones generales */
section {
    padding: 50px 20px;
}

/* Estilos para la sección 'Quiénes Somos' */
#about {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #454444; /* Fondo gris oscuro */
    color: #fff; /* Texto blanco */
    padding: 50px 20px;
}

.about-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 20px;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.6;
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    transition: transform 0.3s;
}

.about-image img:hover {
    transform: scale(1.05);
}

/* Estilos para la sección de servicios */
#services {
    background-color: #fff; /* Fondo blanco */
    color: #454444; /* Texto gris */
}

.servicios-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
}

.servicio {
    background: transparent; /* Fondo transparente */
    padding: 20px;
    margin: 10px;
    flex: 1 1 300px;
    max-width: 300px;
    text-align: center;
}

.servicio img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

.servicio h3 {
    margin: 10px 0;
    color: #454444; /* Texto gris */
}

.servicio p {
    font-size: 1rem;
}

/* Estilos para la sección de proyectos */
#projects {
    background-color: #454444; /* Fondo gris oscuro */
    color: #fff; /* Texto blanco */
}

#projects h2 {
    color: #fff; /* Texto blanco */
}

#projects p {
    text-align: center;
    font-size: 1.2rem;
    margin: 20px 0;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Tres columnas para pantallas grandes */
    gap: 20px;
    margin-top: 10px;
    color: #fff;
}

.project {
    text-align: center;
}

.project h3 {
    margin: 10px 0;
    color: #fff; /* Texto blanco */
}

.project-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 10px;
    transition: transform 0.3s;
}

.project-thumbnail:hover {
    transform: scale(1.05);
}

/* Media query para tablets */
@media (max-width: 1024px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr); /* Dos columnas para tablets */
        justify-content: center; /* Centrar los elementos */
    }
}

/* Media query para pantallas pequeñas */
@media (max-width: 768px) {
    .gallery {
        grid-template-columns: 1fr; /* Una columna para pantallas pequeñas */
        justify-content: center; /* Centrar los elementos */
    }
}

/* Estilos para la sección FAQ */
#faq {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: #E5C62E;
    color: #454444;
    padding: 50px 20px;
}

.faq-container {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.faq-item {
    background: #E5C62E;
    color: #454444;
    border-radius: 5px;
    margin-bottom: 10px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    text-align: center;
}

.faq-item summary {
    background: #E5C62E;
    color: #454444;
    padding: 10px;
    font-weight: 500;
    cursor: pointer;
}

.faq-item summary:hover {
    background: #FFD700;
}

.accordion-content {
    text-align: center;
    padding: 10px;
}

/* Estilos para los encabezados de secciones */
section h2 {
    text-align: center;
    margin-bottom: 20px;
    animation: fadeIn 1s;
}

/* Contenedores de servicios, proyectos y testimonios */
.services-container,
.projects-container,
.testimonials-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
}

/* Estilos para los servicios, proyectos y testimonios */
.service,
.project,
.testimonial {
    background: transparent; /* Fondo transparente */
    padding: 20px;
    margin: 10px;
    flex: 1 1 300px;
    max-width: 300px;
    text-align: center;
}

/* Estilos para la sección de contacto */
#contact {
    background-color: #454444;
}

#contact h2 {
    color: #fff;
}

form {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

form label {
    margin-bottom: 5px;
}

form input,
form textarea,
form button {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

form input:focus,
form textarea:focus {
    border-color: #454444;
    outline: none;
    box-shadow: 0 0 5px rgba(69, 68, 68, 0.2);
    transition: box-shadow 0.3s;
}

form button {
    background-color: #E5C62E;
    color: #454444;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

form button:hover {
    background-color: #FFD700;
    transform: scale(1.1);
}

/* Estilos para el pie de página */
footer {
    display: flex;
    background-color: #454444;
    color: #fff;
    justify-content: center;
}

footer .social-links {
    display: flex;
    margin-bottom: 10px;
    justify-content: center;
}

footer .social-links a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
    font-size: 1.2rem;
    transition: color 0.3s, transform 0.3s;
}

footer .social-links path {
    stroke: #fff;
    fill: #fff;
}

footer .social-links a img {
    width: 24px;
    height: 24px;
    margin-left: 10px;
    transition: transform 0.3s;
}

footer .social-links a:hover img {
    filter: invert(83%) sepia(18%) saturate(1323%) hue-rotate(1deg) brightness(98%) contrast(103%);
}

footer .social-links a:hover {
    transform: translateY(-3px);
}

/* Estilos responsive para pantallas pequeñas */
@media (max-width: 768px) {
    .social-icons {
        display: none;
    }

    nav ul {
        display: none;
        flex-direction: column;
        justify-content: flex-start;
        position: fixed;
        top: 60px;
        right: 0;
        height: 250px;
        width: 200px;
        background-color: #fff;
        padding-top: 60px;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
        transition: transform 0.3s ease-in-out;
        transform: translateX(100%);
        padding-top: 80px;
    }

    nav ul.active {
        transform: translateX(0);
        display: flex;
        align-content: center;
    }

    .menu-toggle {
        display: flex;
    }

    .header-container {
        flex-direction: row;
        align-items: center;
    }

    .social-nav {
        align-items: center;
    }

    header {
        flex-direction: column;
    }

    #hero h1 {
        font-size: 2.5rem;
    }

    #hero p {
        font-size: 1.2rem;
    }

    .about-container {
        flex-direction: column;
        align-items: center;
    }

    .about-text,
    .about-image {
        width: 100%;
        text-align: center;
    }

    .about-image img {
        max-width: 100%;
    }

    .servicio img {
        max-width: 100%;
        height: auto;
    }

    .gallery {
        flex-direction: column;
        align-items: center;
    }

    .project {
        width: 90%;
        margin-bottom: 20px;
    }

    .project-thumbnail {
        max-width: 100%;
        height: auto;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Intersection Observer para animaciones */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-no-move {
    opacity: 0;
    transition: opacity 0.6s ease-out;
}

.reveal-no-move.active {
    opacity: 1;
}

/* Estilos para el modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(69, 68, 68, 0.95); /* Fondo gris oscuro */
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s;
    opacity: 0;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    position: relative;
    background-color: #454444; /* Fondo gris oscuro */
    margin: auto;
    padding: 20px;
    width: 80%;
    max-width: 700px;
    border-radius: 10px;
    animation: slide-in 0.5s forwards;
    color: #fff; /* Texto blanco */
}

.close {
    position: absolute;
    top: 10px;
    right: 25px;
    color: #fff; /* Texto blanco */
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #E5C62E; /* Color de hover */
    text-decoration: none;
    cursor: pointer;
}

#modal-img {
    width: 100%;
    max-width: 500px;
    height: 300px;
    object-fit: cover; /* Ajusta la imagen para cubrir sin deformar */
    border-radius: 10px;
    display: block;
    margin: 0 auto;
}

.modal-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.modal-nav .prev,
.modal-nav .next {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 50%;
    transition: background 0.3s;
}

.modal-nav .prev:hover,
.modal-nav .next:hover {
    background: rgba(0, 0, 0, 0.7);
}

#additional-images {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

#additional-images img {
    width: 100px;
    height: 75px;
    margin: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    object-fit: cover; /* Ajusta las miniaturas para cubrir sin deformar */
}

#additional-images img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}
