*{
    box-sizing: border-box;   
}

:root{
    --color-header: #140f07;
    --color-primary: #A78D78;
    --color-secondary: #BEB5A9;
    --color-text-nav: #b1b1b1;
    --color-text: #1b1b1b;
    --color-black: #000000;
    --color-white: #fff;
    --color-prim-sec: #E1D4C2;
    --font-primary: "Antic Didone", serif;
    --font-secondary: "Gabriela", serif;
}

body{
    margin: 0%;
    background: var(--color-header)
}

div, nav, header, main, footer{
    margin: 0;
    padding: 0;
}

html{
    scroll-behavior: smooth; 
}

/* Botón flotante de WhatsApp */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.1); /* Efecto de agrandamiento al pasar el cursor */
}

.whatsapp-btn img {
    width: 35px; 
    height: 35px;
}
/* Botón flotante de WhatsApp */

.header {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    background-color: var(--color-header);
    z-index: 1000; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 5px; 
}

/*BOTÓN MENÚ*/
#menu{
    display: none; 
}

label{
    display: none; 
    cursor: pointer; 
    filter: brightness(0) invert(0.8);
}

/*TEXTO HEADER*/

.header__nav{
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    width: 100%;
    height: 100%;
}

.header__nav ul{
    display: flex;
    list-style: none;
    text-align: center;
    gap: 40px;
}

.header__nav a{
    text-decoration: none;
    color: var(--color-text-nav);
    font-size: 1.5rem;
    font-family: "Antic Didone"; 
    transition: all 0.3s ease-in-out;
}

.header__nav a:hover{
    color: var(--color-white)
}

.header.degrade {
    background-color:rgb(20, 15, 7, 0.9);
    transition: background 0.4s;
}

/*MAIN*/
.main__inicio{
    background-color: var(--color-primary);
}

.main__inicio__container__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; 
}

.main__inicio__container__image::before {
    content: ""; /* Necesario para pseudo-elementos */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(../img/background-main.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.2;
    z-index: -1;
}

.main__logo {
    display: flex; 
    flex-direction: column; 
    align-items: center;
    position: relative; 
    z-index: 2; 
}

.main__logo img {
    max-width: 400px; 
    height: auto;
    margin-top: 8rem;
}

.main__inicio__title {
    text-align: center; 
    font-family: "Antic Didone"; 
    color: var(--color-text); 
    font-size: 2em; 
    margin-top: 1px; 
    line-height: 3.5rem;
    position: relative;  
    z-index: 2; 
}
/*INICIO DE LA PAGINA*/

/*INICIO CORTO*/	

.second__main__container{
    display:grid;
    background-color: var(--color-primary);
    grid-template-columns:220px 215px 1fr; 
    grid-template-rows: 220px 10px 220px; 
    margin-top: 5%;
    gap: 10px; 
    padding: 0.5rem;
}

.main__inicio__container__image2{
    grid-column: 1; 
    grid-row: 1 / 3; 
    display: flex; 
    padding-top: 25%;
    justify-content: end;
    animation-name: slideInFromLeft; 
    animation-duration: 1.5s; 
}

.main__inicio__container__image3{
    grid-column: 2; 
    grid-row: 1 / 3;
    display: flex; 
    padding-top: 100%;
    animation-name: slideInFromLeft; 
    animation-duration: 1.5s;
}

.main__inicio__container__image2 img, .main__inicio__container__image3 img{
    width: 225px;
    height: 225px; 
    border-radius: 5px;;
    overflow: hidden; 
    position: relative; 
    box-shadow: 0 8px 6px rgba(0, 0, 0, 0.5); /
}

.main__inicio__container__text{
    grid-column: 3;
    padding: 16% 5%;
    font-size: 1.6rem;
    line-height: 2;
    font-family: "Antic Didone";
    color: var(--color-text);
}
/*INICIO CORTO*/	
/* RESPONSIVE DESIGN PARA MAIN */
@media (max-width: 1024px) {
    /* Ajustes para tablets */
    .main__inicio__container__image::before {
        background-position: top; /* Ajusta la posición de la imagen */
    }

    .main__logo img {
        max-width: 300px; /* Reduce el tamaño del logo */
    }

    .second__main__container {
        grid-template-columns: 1fr 1fr; /* Cambia a dos columnas */
        grid-template-rows: auto;
        gap: 15px;
    }

    .main__inicio__container__text {
        padding: 10% 5%;
        font-size: 1.4rem; /* Reduce el tamaño del texto */
    }
}

/*TRABAJOS*/

.trabajos__title {
    font-family: var(--font-primary);
    color: var(--color-white);
    margin: 40px 0;
    font-size: 2rem;
    text-align: center;
    background-color: transparent;
}

.trabajos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    background: var(--color-header);
    padding: 20px; 
}

.swiper {
    margin: 0 auto; 
    max-width: 90%;
    width: 900px;
    box-sizing: border-box; 
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 500px;
    position: relative;
    background-color: var(--color-black);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    overflow: hidden; 
}

.img_swiper {
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    opacity: 0.7; 
    transition: transform 0.3s ease; 
}

.img_swiper:hover {
    transform: scale(1.05); /* Efecto de zoom al pasar el cursor */
}

.class-img {
    position: absolute; 
    top: 50%; 
    left: 50%;
    transform: translate(-50%, -50%); 
    color: var(--color-white);
    font-size: 1.8rem; 
    font-family: var(--font-secondary); 
    text-shadow: 0 0 5px rgba(0, 0, 0, 1); 
    z-index: 2; 
    background-color: transparent; 
    border: none; 
    border-radius: 0; 
    padding: 0; 
    cursor: pointer;
    transition: transform 0.3s ease;
}

.class-img button{
    background: none; 
    border: none; 
    color: var(--color-white); 
    font-size: 1.8rem; 
    font-family: var(--font-secondary); 
    text-shadow: 0 0 5px rgba(0, 0, 0, 1); 
    cursor: pointer;
}

.swiper-button-prev, 
.swiper-button-next{
    color: var(--color-white); 
    width: 30px;
    height: 50px; 
    transition: background-color 0.3s ease;
}

/* Modal styles */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000;
    left: 0;
    top: 5px;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center; 
    align-items: center;
    overflow: hidden;
}

.modal-content {
    position: relative;
    background: transparent;
    justify-content: center;
    width: 900px;
    height: 600px;
    margin: 0 auto;
    font-size: 1.8rem;
    text-align: center;
    color: var(--color-text);
    overflow-y: auto;
    display: flex;
    flex-wrap: wrap;
    border-radius: 5px;
    overflow: hidden; 
    position: relative;
    animation: fadeIn 0.3s ease-in-out;
    flex-direction: column;
}

.modal .close:hover {
    transform: scale(1.2); 
    color: var(--color-secondary); 
}

/* Animación de entrada */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/*GALERIA*/
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    grid-template-rows: repeat(2, 1fr); 
    width: 100%; 
    height: 100%; 
    padding: 50px 0 0 0 ; 
    justify-content: stretch; 
    align-items: stretch; 
    background-color: var(--color-white);
    overflow: hidden; 
    overflow-y: auto;
    padding: 10px 20px;
}

.modal-gallery {
    width: 100%; 
    height: 100%; 
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Estilo para las cards dentro del grid */
.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgb(242, 242, 243);
    border: 1px solid #ddd;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    padding: 10px;
    text-align: center;
    width: 100%; 
    height: 300px; 
}
.card img {
    width: 90%;
    height: 230px;
    border-radius: 2px;
    margin-bottom: 10px;
}

.close {
    position: absolute; 
    top: 1px; 
    right: 10px; 
    color: var(--color-text);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    background: none; 
    border: none; 
}

/* Estilo para el botón de "Ver más imágenes" */
.more-images-button {
    position: relative; 
    margin-bottom: 20px; 
    background-color: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1rem;
    font-family: "Artic Didone";
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.more-images-button:hover {
    background-color: var(--color-secondary);
}

.more-images-modal {
    position: fixed;
    top: 50%; 
    left: 50%;
    transform: translate(-50%, -50%); 
    width: 900px; 
    height: 600px; 
    background-color: #e6e4e4;
    display: grid;
    grid-template-columns: 2fr 1fr; 
    padding: 20px;
    border-radius: 5px; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
    z-index: 1000;
    overflow: hidden; 
}

/* Galería de imágenes en la primera columna */
.more-images-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    overflow-y: auto;
    height: 500px;
    width: 500px;
    padding: 10px;
    border-right: 1px solid #ddd; 
}

.more-images-gallery img {
    width: 100%; /* Ocupa todo el ancho del contenedor */
    height: 100%; /* Ocupa todo el alto del contenedor */
    object-fit: contain; /* Ajusta la imagen para llenar el contenedor, recortándola si es necesario */
    border-radius: 5px; /* Mantén los bordes redondeados */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Sombra para un diseño limpio */
}

/* Estilo para la descripción */
.more-images-description {
    background-color: var(--color-white);
    border-radius: 5px;
    border: #b1b1b1 solid 2px;
    color: var(--color-text);
    font-size: 1.2rem;
    font-family: "Artic Didone"; 
    justify-content: flex-start;
    text-align: left;
    padding: 10px;
    overflow-y: auto; 
    max-height: 100%; 
    line-height: 2; 
    grid-column: 2; 
}

/* Botón de cerrar */
.close-more-images {
    position: absolute;
    top: 5px;
    right: 10px;
    background-color: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 0px 10px 5px 10px;
    cursor: pointer;
    font-size: 1.8rem;
    z-index: 10;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.close-more-images:hover {
    background-color: var(--color-secondary);
}


/*SOBRE NOSOTROS*/
.nosotros-container {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 30px; 
    align-items: start; 
    padding: 50px 20px; 
    position: relative; 
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.8)), url('../img/nosotrosfondo.webp'); 
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat; 
    padding: 50px 20px; 
    z-index: 1; 
}

.nosotros-texto {
    background-color:rgb(124, 106, 90, 0.9);
    grid-column: 1; 
    text-align: center; 
    font-family: "Artic Didone";
    font-size: 1rem; 
    letter-spacing: 1px;
    line-height: 1.5rem;
    padding: 10px 50px 1px 50px;
    border-radius: 5px;
}

.nosotros_redes {
    display: flex;
    flex-direction: column; ;
    justify-content: center;
    align-items: center; 
}
.nosotros_redes img {
    width: 30px;
    height: 30px;
    margin: 0 10px; 
}

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

.ubicacion-imagen{
    background-color: #000000;
    grid-column: 2;
    grid-row: 1;
    width: 500px;
    height: 408px; 
}

.ubicacion-container {
    background-color:rgb(124, 106, 90, 0.9);
    grid-column: 2; 
    text-align: center;
    padding: 16px 50px;
    font-family: "Artic Didone"; 
    border-radius: 5px;
    gap: 50px;
}

.ubicacion-container h3 {
    font-family: "Artic Didone"; 
    font-size: 1.7rem; 
    color: var(--color-text); 
    margin-bottom: 20px; 
}

.ubicacion-container iframe {
    width: 500px;
    height: 378px; 
    border-radius: 10px;
    box-shadow: 3px 3px 3px 3px rgba(32,32,32,0.3);
}

.ubicacion-texto {
    display: flex;
    justify-content: center;
    font-size: 20px;
    padding: 29px;
}

.ubicacion-texto p {
    margin: 0 10px; 
    font-family: "Artic Didone"; 
    color: var(--color-text); 
}
.ubicacion img {
    width: 30px; 
    height: 30px;  
}

.nosotros__title {
    grid-column: 1 / -1;
    text-align: center; 
    font-family: "Artic Didone"; 
    font-size: 2rem; 
    color: var(--color-prim-sec); 
    margin: 0; 
    padding: 10px 0; 
    background-color: transparent; 
    border-top: 2px solid var(--color-black); 
}

.footer {
    display: flex; 
    justify-content: space-between;
    align-items: center; 
    background-color: var(--color-header); 
    padding: 20px 40px;
    position: relative;
    z-index: 2; 
}

.footer__container {
    display: flex;
    justify-content: space-evenly; 
    align-items: center; 
    width: 100%; 
}

.footer__container__text {
    font-family: "Artic Didone"; 
    color: var(--color-primary); 
    font-size: 0.8rem; 
    margin: 0 0 0 -200px;
    text-align: left; 
}

.footer__container__logo {
    margin: 0 -180px 0 0; 
}

    .footer__container__developer {
        margin: 0;
        justify-content: center;
        padding: 5px 0;
    }
    .footer_milogo img {
        width: 40px;
        height: 40px;
    }

/*Mi información de dev*/

.footer__container__developer {
    display: flex; 
    align-items: center; 
    justify-content: center;
    margin: 0px 230px 0px 0px;
}
.footer_milogo img{
    width: 55px; 
    height: 55px; 
}
.redes img{
    width: 20px; 
    height: 20px; 
    margin: 20px 10px 0 0; 
    filter: brightness(0) invert(0.5); 
}

.footer__container__logo img {
    width: 60px; 
    height: 45px;
    filter: brightness(0) invert(0.5); 
}


/*RESPONSIVE DESIGN*/

/* Estilos para el header responsive */
@media (max-width: 991px) {
    #menu {
        display: none;
    }

    label {
        display: block;
        cursor: pointer;
        font-size: 2rem;;
        padding: 10px;
    }

    .header__nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80%;
        left: 0;
        width: 300px;
        height: 200px;
        background-color: var(--color-header);
        z-index: 999;
    }

    .header__nav ul {
        flex-direction: column;
        padding: 0;
        margin: 0;
        gap: 20px;
    }

    #menu:checked ~ .header__nav {
        display: flex;
    }
    
}

/* Responsive Design para main__inicio */
@media (max-width: 1024px) {
    .main__inicio {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 20px;
        background-color: var(--color-primary);
    }

    .main__inicio__container__image {
        height: 55%; 
    }

    .main__logo img {
        max-width: 300px; /* Reduce el tamaño del logo */
        margin-top: 5rem;
    }

    .main__inicio__title {
        font-size: 1.8rem; /* Reduce el tamaño del título */
        margin-top: 10px;
    }
}

@media (max-width: 768px) {
    .main__inicio {
        padding: 15px;
    }

    .main__logo img {
        max-width: 200px; /* Reduce aún más el tamaño del logo */
        margin-top: 3rem;
    }

    .main__inicio__title {
        font-size: 1.5rem; /* Ajusta el tamaño del título */
        margin-top: 5px;
    }
}

@media (max-width: 480px) {
    .main__inicio {
        padding-top: 10%;
    }

    .main__logo img {
        max-width: 250px; /* Tamaño más pequeño para pantallas pequeñas */
        margin-top: 3rem;
    }

    .main__inicio__title {
        font-size: 1.2rem; /* Reduce el tamaño del título */
        margin-top: 5px;
    }
}

/* Responsive Design para second__main__container */

@media (max-width: 991px) {
    .second__main__container {
        grid-template-columns: 1fr 1fr; 
    }

    .main__inicio__container__image2 {
        grid-column: 1; 
        grid-row: 1; 
        height: 120px;

    }
    .main__inicio__container__image3 {
        grid-column: 1; 
        grid-row: 1; 
        padding: 0;
        height: 120px;
    }

    .main__inicio__container__image2 img,
    .main__inicio__container__image3 img {
        width: 85%; 
        height: 180px; 
    }

    .main__inicio__container__text {
        grid-column: 2;
        font-size: 0.8rem; 

    }
}

@media (max-width: 991px) {
    .modal-content {
        width: 90%;
        height: 95%;
        margin-top: 10px;
    }

    .gallery{
        grid-template-columns: 1fr 1fr;
        gap: 5px;
        padding: 5px; 
    }

    .gallery img{
        width: 100%;
        height: 150px;
    }
}

@media (max-width: 991px) {
    .more-images-modal {
        width: 90%; 
        height: 98%;
        padding: 10px; 
    }

    .more-images-modal{
        display: flex;
        flex-direction: column;
    
    }

    .more-images-gallery {
        width: 100%;
        height: 100%;
    
    }

    .more-images-gallery img {
        width: 300px; 
        height: 280px;
        object-fit:cover;
    }

    .more-images-description {
        position: relative;
        margin-top: 8%;
        height: 50%;
        width: 100%;
        background: var(--color-white);
        color: var(--color-text);
        padding: 5px;
        font-size: 1rem; 
    }
}

@media (max-width: 991px) {
    .nosotros-container {
        display: grid;
        grid-template-columns: 1fr; 
        grid-template-rows: auto auto auto;
        padding: 20px 10px;
    }

    .nosotros__title{
        grid-row:1;
        font-size: 1.8rem; 
        justify-content: center;
    }

    .nosotros-texto {
        width: 100%;
        grid-row: 3;
        font-size: 0.8rem;
        padding: 10px 15px; 
        border-radius: 5px;
    }

    .ubicacion-container {
        grid-column: 1;
        grid-row: 2;
        padding: 10px; 
        margin: 0; 
        right: 0;
    }

    .ubicacion-container iframe {
        width: 100%; 
        height: 200px; 
        border-radius: 5px;
        box-shadow: 3px 3px 3px 3px rgba(32, 32, 32, 0.3);
    }
}



    /* Footer responsive para max-width: 991px */
@media (max-width: 991px) {
    .footer {
        flex-direction: column;
        align-items: center;
        padding: 15px 10px;
        gap: 10px;
    }
    .footer__container {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        gap: 10px;
    }
    .footer__container__text {
        margin: 0;
        text-align: center;
        font-size: 0.9rem;
        padding: 5px 0;
    }
    .footer__container__logo {
        margin: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 5px 0;
    }
    .footer__container__developer {
        margin: 0;
        justify-content: center;
        padding: 5px 0;
    }
    .footer_milogo img {
        width: 40px;
        height: 40px;
    }
    .footer__container__logo img {
        width: 45px;
        height: 35px;
    }
    .redes img {
        width: 22px;
        height: 22px;
        margin: 10px 5px 0 0;
    }
}