:root {
    --green: #2e7d32;
    --box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .1);
    --black: #0a0a0a;
    --light-color: #666;
    --border: .2rem solid rgba(0, 0, 0, .1);
    --outline: .1rem solid rgba(0, 0, 0, .1);
    --outline-hover: .2rem solid var(--black);
}

* {
    font-family: 'Poppins', sans-serif;
    margin: 0; padding: 0;
    box-sizing: border-box;
    outline: none; border: none;
    text-decoration: none;
    text-transform: capitalize;
    transition: all .2s linear;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-padding-top: 7rem;
}

body {
    background: #eee;
}

section {
    padding: 2rem 9%;
}



/* HEADER */

.header{
    position: fixed;
    top:0;
    left:0;
    right:0;
    z-index:1500;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:1.5rem 6%;
    background:#d8d7d7;
    box-shadow:0 5px 25px rgba(0,0,0,.08);
}

/* LOGO */

.header img{
    height: 8rem;
}


.header .navbar{
    display: flex;
    align-items:center;
    gap: 1.4rem;
    margin-left: 3rem;
}

.header .navbar li{
    list-style:none;
}

.header .navbar a{
    font-size: 2rem;
    font-weight: 500;
    color:var(--black);
    padding:.3rem .6rem;
    position: relative;
}


.header .navbar a::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 2px;
    background: var(--green);
    transition:.3s;
}

.header .navbar a:hover::after{
    width: 100%;
}

.header .navbar a:hover{
    color:var(--green);
}


.navbar li .nav-cta{
    background: var(--green);
    color: var(--black);
    padding: .7rem 1.6rem;
    border-radius: 15px;
    font-weight: 600;
    transition:.3s;
}

.navbar li .nav-cta:hover{
    background: var(--green);
    color: white;
}



.dropdown{
    position: relative;
}

.dropdown-menu{
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255,255,255,0.1); /* transparente pero visible */
    backdrop-filter: blur(8px); /* efecto vidrio */
    border-radius: 8px;
    box-shadow:0 15px 40px rgba(0,0,0,.15);
    padding: 1rem 0;
    display: none;
    flex-direction: column;
    min-width:250px;
}

.dropdown-menu li{
    width:100%;
}

.dropdown-menu a{
    display: block;
    padding: .8rem 2rem;
    font-size: 1.8rem;
    color:#111; 
    font-weight:500;
}



.dropdown:hover .dropdown-menu{
    display: flex;
}

/* icono menu */

.header .icon div{
    height: 45px;
    width: 45px;
    line-height:45px;
    border-radius:8px;
    background: #c8c6c6;
    color:var(--black);
    font-size: 2.2rem;
    text-align: center;
    cursor: pointer;
    display: none;
}


#menu-btn {
    display: none;
}
#menu-btn:hover {
    background: var(--green);
    color: white;
}


.hero {
    margin-top: 8rem;
    height: 70vh;
    min-height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
    background-image: url("/img/equipo.jpeg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.45);
}

.hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, transparent, #eee);
}

.hero .content {
    position: relative;
    z-index: 2;
    max-width: 65rem;
}

.hero .content h3 {
    font-size: clamp(3.5rem,5vw,5rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: .5px;
}

.hero .content h3 span {
    color: var(--green);
}

.hero .content p {
    font-size: clamp(1.7rem,2vw,2.2rem);
    color: #f1f1f1;
    line-height: 1.7;
}


.heading-general {
    text-align: center;
    max-width: 800px;
    margin: auto;
    padding: 3rem 0 5rem;
    color: var(--black);
}

.heading-general .heading-span {
    display: block;
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: .25rem;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 1rem;
}


.heading-general::after {
    content: "";
    display: block;
    width: 100px;
    height: 4px;
    background: var(--green);
    margin: 1.5rem auto 0;
    border-radius: 2px;
}


.features .box-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 1.5rem;
}

.features .box-container .box {
    padding: 3rem 2rem;
    background: #fff;
    outline: var(--outline);
    outline-offset: -1rem;
    text-align: center;
    box-shadow: var(--box-shadow);
    border-radius: 5px;
}

.features .box-container .box:hover {
    outline: var(--outline-hover);
    outline-offset: 0rem;
}

.features .box-container .box img {
    width: 100%;
    margin: 1rem 0;
    height: 15rem;
    object-fit: contain;
    display: block;
}

.features .box-container .box h3 {
    font-size: 2rem;
    line-height: 1.8;
    color: var(--black);
}

.features .box-container .box p {
    font-size: 1.5rem;
    line-height: 1.8;
    color: var(--black);
    padding: 1rem 0;
}


.work {
    padding: 5rem 9%;
    background: #eee;
}

.work .heading {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
}

.work .heading span {
    color: var(--green);
}

.work .box-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.work .box {
    position: relative;
    overflow: hidden;
    border-radius: .5rem;
    cursor: pointer;
    height: 30rem;
}

.work .box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: 0.5s;
}

.work .box:hover img {
    transform: scale(1.1);
}

.work .box .text-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    text-align: center;
    color: #fff;
    transform: translateY(100%);
    transition: transform .4s ease;
}

.work .box:hover .text-overlay {
    transform: translateY(0);
}

.work .box .text-overlay h3 {
    font-size: 2rem;
    margin-bottom: .5rem;
}

.work .box .text-overlay p {
    font-size: 1.6rem;
}

.work .box {
    opacity: 0;
    transform: translateY(40px);
    transition: 0.6s ease;
}

.work .box.show {
    opacity: 1;
    transform: translateY(0);
}


.btn {
    margin-top: 1rem;
    display: inline-block;
    padding: .5rem 1rem;
    font-size: 1.7rem;
    border-radius: .5rem;
    border: 2px solid var(--black);
    color: var(--black);
    cursor: pointer;
    background: none;
}

.btn:hover {
    background: var(--green);
    color: #ffffff;
}


.container-form {
    padding: 4rem 9%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container-form form {
    background: #fff;
    padding: 3rem;
    width: 60rem;
    border-radius: 1rem;
    box-shadow: var(--box-shadow);
}

.container-form form input,
.container-form form select,
.container-form form textarea {
    width: 100%;
    height: 50px;
    padding: 1.2rem;
    margin: 1rem 0;
    border-radius: .5rem;
    border: .1rem solid #ddd;
    font-size: 1.6rem;
    padding-bottom: 22px;
}

.container-form form input:focus,
.container-form form select:focus,
.container-form form textarea:focus {
    border-color: var(--green);
}

.container-form form textarea {
    height: 12rem;
    resize: none;
}

.container-form form .btn {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.7rem;
    border-radius: .5rem;
    background: var(--green);
    color: #fff;
    cursor: pointer;
}

.container-form form .btn:hover {
    background: #00cc1b;
}

.container-form form label {
    font-size: 1.5rem;
}




.modal{
    display:none;
    position:fixed;
    z-index:9999;
    left:0;
    top:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.6);
    justify-content:center;
    align-items:center;
}

.modal-content{
    background:#fff;
    padding:3rem;
    border-radius:10px;
    text-align:center;
    max-width:400px;
    width:90%;
    position:relative;
    animation:fadeIn .3s ease;
}

.modal-content h2{
    margin-bottom:1rem;
}

.modal-content p{
    margin-bottom:1rem;
}

.close-modal{
    position:absolute;
    right:15px;
    top:10px;
    font-size:25px;
    cursor:pointer;
}

.modal-btn{
    margin-top:1rem;
}

@keyframes fadeIn{
    from{opacity:0; transform:scale(.9);}
    to{opacity:1; transform:scale(1);}
}



.footer {
    background: #fff;
    text-align: center;
}

.footer .box-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: 1.5rem;
}

.footer .box-container .box h3 {
    font-size: 2.5rem;
    color: var(--black);
    padding: 1rem 0;
}

.footer .box-container .box h3 i {
    color: var(--green);
}

.footer .box-container .box .links {
    display: block;
    font-size: 1.5rem;
    color: var(--light-color);
    padding: 1rem 0;
}

.footer .box-container .box .links i {
    color: var(--green);
    padding-right: .5rem;
}

.footer .box-container .box .links:hover i {
    padding-right: 2rem;
}

.footer .box-container .box p {
    line-height: 1.8;
    font-size: 1.5rem;
    color: var(--light-color);
    padding: 1rem 0;
}

.footer .box-container .box .share a {
    height: 4rem;
    width: 4rem;
    line-height: 4rem;
    border-radius: .5rem;
    font-size: 2rem;
    color: var(--black);
    margin-left: .2rem;
    background: #eee;
    text-align: center;
}

.footer .box-container .box .share a:hover {
    background: var(--green);
    color: #fff;
}



.footer .credit {
    margin-top: 20px;
    font-size: 1.6rem;
    background: #222;
    color: #fff;
    padding: 2rem;
}



.btn-volver {
    display: none; /* oculto por defecto */
    position: fixed;
    bottom: 85px;
    right: 30px;
    padding: 1.2rem 2rem;
    font-size: 1.5rem;
    font-weight: 600;
    background: var(--green);
    color: white;
    border-radius: 40px;
    box-shadow: 0 10px 25px rgba(0,0,0,.2);
    transition: 0.3s;
    z-index: 2000;
}

.btn-volver:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0,0,0,.3);
    background: var(--green);
}

.btn-volver i {
    color: white;
    margin-right: 0.5rem;
    font-size: 1.5rem; /* igual que el texto */
    vertical-align: middle;
}





/* MEDIA QUERY PARA TABLETS Y MÓVILES */
@media (max-width:991px){
    html { font-size: 55%; }
    .header { padding: 2rem; }
    section { padding: 2rem; }

    /* Dropdown semi-transparente en tablets */
    .dropdown-menu {
        background: transparent; /* igual que navbar */
        color: var(--black);
        backdrop-filter: none; /* opcional, uniforme */
        box-shadow: 0 15px 40px rgba(0,0,0,.1);
    }

    .dropdown-menu a {
        color: var(--black);
    }

    .dropdown-menu a:hover {
        color: var(--green);
    }
}

@media (max-width:768px){
    /* Botón de menú hamburguesa */
    #menu-btn {
        display: inline-block;
    }

    /* Navbar en móvil */
    .header .navbar {
        text-align: left;
        position: absolute;
        top: 110%;
        right: -100%;
        width: 25rem;
        flex-direction: column;
        align-items: flex-start;
        background: #e1e0e0; /* mismo color que dropdown */
        padding: 2rem;
        border-radius: 0.5rem;
        box-shadow: var(--box-shadow);
        transition: right 0.4s linear;
    }

    .header .navbar.active {
        right: 12px;
    }

    .header .navbar li {
        width: 100%;
        margin: 0.5rem 0;
    }

    .header .navbar a{
        font-size: 1.8rem;
        display: inline-block;
        width: auto;
    }

    .dropdown{
        width:100%;
    }

    .dropdown-menu {
        position: relative;
        top: 10px;
        width: 100%;
        display: none;
        padding: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        max-height: 0;
        line-height: 2.8rem;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
        margin-bottom: 20px;
    }

    .dropdown.active .dropdown-menu {
        display: block;
        max-height: 500px;  /* ajusta según número de links */
    }

    .dropdown.active {
        right: 12px;
    }

    /* Botón "Get Free Quote" alineado */
    .navbar li .nav-cta{
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: var(--green);
        color: var(--black);
        padding: .7rem 1.6rem;
        border-radius: 15px;
        font-weight: 600;
        transition:.3s;
        width: 100%;
        text-align: center;
    }

    /* Links dentro del dropdown */
    .dropdown-menu a {
        padding: .8rem 1rem;
        display: block;
        text-align: left;
        color: var(--black);
    }

    .dropdown-menu a:hover {
        color: var(--green);
    }

    /* Hero en móvil */
    .hero {
        height: 60vh;
        min-height: 420px;
        background-position: center top;
    }

    /* Formulario más estrecho */
    .container-form form {
        width: 45rem;
    }

    /* Footer links quick centrados */
    .footer .box .links-quick {
        text-align: center;
    }

    .about-us {
    padding: 5rem 2rem;
    }

    .about-us .container {
        grid-template-columns: 1fr;
        justify-items: center;
    }
}

@media (max-width:450px){
    html { font-size: 50%; }
    .footer { text-align: center; }
}