* {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: sans-serif;
    background-color: #f1f1f1;
    color: #fff;
    --color-header:#fff;
    --color-header_nav: #fff;
    --color-header-list: #111111;
    --color-border-bottom: 1px solid rgba(25, 217, 66, 0.1);
    --color-header-button: #111111;
    --color-section-color: #fff;
    --color-major-wrapper: #fff;
    --color-major-data-container-h2: #111111;
    --color-major-data-container-p: #555;
    /*--color-major-options: #B68C3D;*/
    --color-major-options-primary-background: #B68C3D;
    --color-major-options-primary-color: #fff;
    --color-major-options-outline-border: #ccc;
    --color-major-options-outline-color: #B68C3D;
    --color-major-options-outline-background: #fff;
    --color-major-options-outline-background-hover: #f1f1f1;
    --color-services-h2: #111111;
    --color-services-description: #555;
    --color-services-bloq-background: #fff;
    --color-services-bloq-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    --color-services-bloq-shadow-hover: 0 2px 5px rgb(0, 0, 0.8);
    --color-services-icon: #0c2340;
    --color-services-icon_material-icons-outline: #fff;
    --color-services-bloq-h3: #555;
    --color-services-bloq-p: #111111;
    --color-gallery-title: #111;
    --color-gallery-description: #555;
    --color-gallery-cover-h3: rgba(255,255,255,0.65);
    --color-gallery-cover-p: rgba(255,255,255,0.9);
    --color-contact-title: #111;
    --color-contact-description: #555;
    --color-contact-info-h3: #111;
    --color-contact-item-span-icon: #0c2340;
    --color-contact-item-span: #f1f1f1;
    --color-contact-item-strong: #111111d6;
    --color-contact-item-p: #555;
    --color-background-contact-hours: #f1f1f1;
    --color-contact-hours-h4: #111;
    --color-contact-hours-p: #555;
    --color-background-footer: linear-gradient(180deg, #1a1a1a, #0f0f0f);
    --color-footer: #ccc;
    --color-footer-h4: #fff;
    --color-footer-ul-li-a: rgba(255,255,255,0.65);
    --color-footer-ul-li-a-hover: #fff;
    --color-background-logo-circle: #B68C3D;
    --color-logo-text: #B68C3D;
    --color-footer-social-a: #fff;
    --color-background-footer-social-a: #222;
    --color-footer-social-a-hover: #444;
    --color-footer-bottom-border-top: #222;
    --color-footer-bottom: #777;
}

body, div, ul, nav, header, footer, a, li, label {
    margin: 0;
    padding: 0;
}

/*-------------------------HEADER SECTION------------------ */
.header {
    background-color: var(--color-header);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
    text-align: center;
    font-size: 18px;
    color: var(--color-header-list);
    padding: 1px 10px;
    border-bottom: var(--color-border-bottom);
}

.header__open-nav-button {
    color: var(--color-header-button);
    font-size: 2.2rem;
    font-weight: 600;
    position: absolute;
    right: 10px;
}

.header__checkbox {
    display: none;
}

.header__nav{
    display: none;
    background-color: var(--color-header_nav);
    position: absolute;
    height: 50vh;
    width: 100vw;
    top: 0;
    z-index: -1;
}


.header__nav-list  {
    display: flex;
    flex-direction: column;
    height: 40vh;
    margin: auto;
    justify-content: space-evenly;
}

.header__checkbox:checked ~ .header__nav {
    display: flex;
}


.header__logo {
    width: 90px;
    margin: 1px 5px;

}

.header__nav-list {
    list-style: none;

}

.header__nav-item a{
    list-style: none;
    text-decoration: none;
    text-decoration: none;
    color: var(--color-header-list);
}



.header__nav-item a:is(:hover, :active) {
    text-decoration: underline;
}




/*----------------------HEADER QUERIES----------------*/

@media screen and (min-width: 600px){
    .header {
        justify-content: space-evenly;
        padding: 3px 0;
        animation: header-movement both;
        animation-timeline: scroll();
        position: sticky;
        top: 0;
        animation-range: 10px 100px;
    }

    .header__nav {
        display: block;
        position: static;
        height: auto;
        width: auto;
        justify-content: space-between;
        background-color: initial;
    }

    .header__nav-list {
        flex-direction: row;
        height: auto;
        width: auto;
        gap: 20px;
        margin-right: 40px;
    }

    .header__open-nav-button{
        display: none;
    }

    .contact-border a {
        padding: 8px 18px;
        background: var(--color-major-options-primary-background);
        color: var(--color-major-options-primary-color);
        border-radius: 30px;
        font-weight: 500;
        transition: all 0.3s ease;
    }


    .contact-border a:hover {
        text-decoration: none;
        opacity: 0.8;
    }


}

/*-------------------HAEADER END----------------*/

/*------------------SECTION MAJOR -----------------*/


.major {
    max-width: 1800px;
    margin: auto;
    padding: 80px 40px;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    align-items: center;
    gap: 40px;
    border-radius: 30px;
    background: var(--color-section-color);
}

.major__data-container h1{
    font-size: 26px;
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--color-major-data-container-h2);
}

.major__data-container p {
    color: var(--color-major-data-container-p);
    line-height: 1.6;
    font-size: 17px;
    margin-bottom: 30px;
}

.major__options {
    display: flex;
    gap: 20px;
}

.major__options {
    list-style: none;
}

.major__options-item a {
    list-style: none;
    text-decoration: none;
    color: var(--color-major-options); /*corregido name*/
}


/*---BUTTONS---*/

.major__options-item {
    padding: 12px 26px;
    border-radius: 40px;
    font-size: 16px;
    text-decoration: none;
    transition: 0.3s ease;
}

.option-primary {
    background: var(--color-major-options-primary-background);
    color: var(--color-major-options-primary-color);
}

.option-primary:hover {
    opacity: 0.8;
}

/*black bord*/
.option-outline{
    border: 1px solid var(--color-major-options-outline-border);
    color: var(--color-major-options-outline-color);
    background: var(--color-major-options-outline-background);
}

.option-outline:hover {
    background: var(--color-major-options-outline-background-hover);
}

/*imgagen*/
.major__img-container img{
    width: 100%;
    border-radius: 20px;
    object-fit: cover;
}

/*---------RESPONSIVE MAJOR--------*/

@media (max-width: 600px) {
    .major {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 40px 20px;
    }

    .major__img-container {
        order:-1;
    }

    .major__options {
        justify-content: center;
        flex-wrap: wrap;
    }
    
}


/*---------------END MAJOR-----------------------*/


/*---------------SERVICES -----------------------*/

/*--parte de los servicios */

.services {
    text-align: center;
    max-width: 1800px;
    margin: 40px auto;
    padding: 80px 40px;
    border-radius: 30px;
    background-color: var(--color-section-color);
}

.services h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--color-services-h2);
}

.services__description {
    max-width: 600px;
    margin: 0 auto 40px auto;
    color: var(--color-services-description);
    font-size: 16px;
}


/*GRID*/
.services__container {
    display: grid;
    gap: 25px;
    grid-template-columns: 1fr;
    max-width: 1100px;
    margin: auto;
}

/*APARTADOS*/
.services-bloq {
    background: var(--color-services-bloq-background);
    border-radius: 30px;
    padding: 25px;
    box-shadow: var(--color-services-bloq-shadow);
    text-align: left;
    transition: 0.3s ease;
}

.services-bloq:hover {
    transform: translateY(-5px);
    box-shadow: var(--color-services-bloq-shadow-hover);
}

.services-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--color-services-icon);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.services-icon .material-icons-outlined {
    font-size: 20px;
    color: var(--color-services-icon_material-icons-outline);
}

.services-bloq h3{
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 600;
    color: var(--color-services-bloq-h3);

}

.services-bloq p {
    color: var(--color-services-bloq-h3);
    font-size: 15px;
    line-height: 1.5;
}


/*-------------MEDIA QUERIS SERVICES RESPONSIVE-------------------*/
@media (min-width: 700px) {
    .services__container {
        grid-template-columns: repeat(2, 1fr);

    }
}

@media (min-width: 1100px) {
    .services___container {
        grid-template-columns: repeat(4, 1fr);
    }
}


/*-----------------GALLERY SECTION-----------------*/

/* ===== GALERÍA ===== */

.gallery {
    padding: 80px 20px;
    text-align: center;
    background: var(--color-section-color);
    max-width: 1800px;
    margin: 40px auto;
    border-radius: 30px;
}

.gallery-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--color-gallery-title);
}

.gallery-description {
    max-width: 620px;
    margin: 0 auto 50px;
    color:var(--color-gallery-description);
    font-size: 16px;
}

.gallery__grid {
    max-width: 1300px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease ;
}

.gallery-item:hover img {
    transform: scale(1.08);
}


.gallery-cover {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top, 
        rgba(0, 0, 0, 0.65),
        rgba(0, 0, 0, 0.35),
        rgba(0, 0, 0, 0.1)
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    text-align: left;
    padding: 22px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-cover {
    opacity: 1;
}

.gallery-cover h3{
    color: var(--color-gallery-cover-h3);
    font-size: 16px;
    letter-spacing: 0.5px;
    margin-bottom: 0.1px;
}


.gallery-cover p {
    color: var(--color-gallery-cover-p);
    font-size: 18px;
    font-weight: 900;
    max-width: 90%;
}

@media (max-width: 900px) {
    .gallery__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
}

@media (max-width: 600px) {
    .gallery__grid{
    grid-template-columns: 1fr;
    gap: 20px;
    }
}

/*----------------- CONTACT SECTION --------*/

.contact {
    max-width: 1800px;
    margin: 80px auto;
    padding: 60px 200px;
    text-align: center;
    background: var(--color-section-color);
    border-radius: 30px;
}

.contact-title {
    font-size: 28px;
    color: var(--color-contact-title);
    margin-bottom: 10px;
}

.contact-description {
    max-width: 600px;
    margin: 0 auto 50px;
    color: var(--color-contact-description);
}

.contact-info {
    text-align: left;
    max-width: 500px;
}

.contact-info h3 {
    margin-bottom: 25px;
    color: var(--color-contact-info-h3);
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.contact-item span {
    background: var(--color-contact-item-span-icon);
    color: var(--color-contact-item-span);
    border-radius: 50%;
    padding: 10px;
    font-size: 20px;
}

.contact-item strong {
    display: block;
    color: var(--color-contact-item-strong);
}

.contact-item p {
    margin: 0;
    color: var(--color-contact-item-p);
}

.contact-hours {
    margin-top: 30px;
    padding: 20px;
    background: var(--color-background-contact-hours);
    border-radius: 20px;
}

.contact-hours h4 {
    margin-bottom: 10px;
    color: var(--color-contact-hours-h4);
}

.contact-hours p {
    margin: 4px;
    color: var(--color-contact-hours-p);
}

/*-----------------------chat flotante----------------*/

.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 56px;
    height: 56px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    z-index: 100;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1,1);
}

.whatsapp-float span {
    font-size: 28px;
}

/*------------------responsive contact---------------*/

@media (max-width: 600px) {
    .contact {
        padding: 40px 20px;
    }

    .contact__container {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-info {
        max-width: 100%;
    }
}

/*---------------FOOTER SECTION-----------------*/

.footer {
    background: var(--color-background-footer);
    color: var(--color-footer);
    padding: 70px 40px 30px;
}

.footer__container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer h4 {
    color: var(--color-footer-h4);
    margin-bottom: 15px;
    font-size: 16px;
}

.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a {
    color: var(--color-footer-ul-li-a);
    text-decoration: none;
    transition: color 0.3s;
}

.footer ul li a:hover {
    color: var(--color-footer-ul-li-a-hover);
}

/*------brand-----*/

.footer-brand p{
    max-width: 280px;
    line-height: 1,6;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.logo-circle {
    width: 38px;
    height: 38px;
    background: var(--color-background-logo-circle);
    border-radius: 50%;
}

.logo-text {
    color: var(--color-logo-text);
    font-weight: 600;
    letter-spacing: 1px;
}

/*--------Social */

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--color-background-footer-social-a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-footer-social-a);
    text-decoration: none;
    font-size: 16px;
    transition: background 0.3s, transform 0.3s;

}

.footer-social a:hover {
    background: var(--color-footer-social-a-hover);
    transform: translateY(-3px);
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid var(--color-footer-bottom-border-top);
    text-align: center;
    color: var(--color-footer-bottom);
    font-size: 14px;
}

@media (max-width: 900px) {
    .footer__container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .footer__container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .logo {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-brand {
        margin: auto;
    }
}