/*==================================================
    VARIABLES
==================================================*/

:root{

    --primary:#f57c00;
    --primary-dark:#d96a00;
    --secondary:#222222;
    --light:#f7f7f7;
    --white:#ffffff;
    --gray:#6d6d6d;
    --border:#ececec;

    --shadow:0 10px 30px rgba(0,0,0,.08);

    --transition:.35s ease;

    --radius:18px;

}

/*==================================================
    RESET
==================================================*/

*{

    margin:0;

    padding:0;

    box-sizing:border-box;

}

html{

    scroll-behavior:smooth;

}

body{

    font-family:'Poppins',sans-serif;

    background:#fff;

    color:#222;

    overflow-x:hidden;

}

img{

    width:100%;

    display:block;

}

a{

    text-decoration:none;

}

ul{

    list-style:none;

}

.container{

    width:min(1180px,92%);

    margin:auto;

}

/*==================================================
    HEADER
==================================================*/

header{

    position:fixed;

    top:0;

    left:0;

    width:100%;

    z-index:1000;

    transition:.4s;

    padding:18px 0;

}

header.active{

    background:rgba(255,255,255,.92);

    backdrop-filter:blur(15px);

    box-shadow:0 10px 30px rgba(0,0,0,.08);

    padding:12px 0;

}

.nav{

    display:flex;

    justify-content:space-between;

    align-items:center;

}

.logo{

    display:flex;

    flex-direction:column;

    color:white;

    transition:.3s;

}

header.active .logo{

    color:#222;

}

.logo span{

    font-size:13px;

    letter-spacing:2px;

}

.logo strong{

    font-size:28px;

    color:var(--primary);

}

nav{

    display:flex;

    gap:35px;

}

nav a{

    color:white;

    font-weight:500;

    transition:.3s;

    position:relative;

}

header.active nav a{

    color:#222;

}

nav a::after{

    content:"";

    position:absolute;

    left:0;

    bottom:-7px;

    width:0;

    height:2px;

    background:var(--primary);

    transition:.3s;

}

nav a:hover::after{

    width:100%;

}

.menu-btn{

    display:none;

    font-size:28px;

    cursor:pointer;

}

/*==================================================
    HERO
==================================================*/

.hero{

    height:100vh;

    position:relative;

    display:flex;

    align-items:center;

    background:

    url("images/banner.jpg")

    center center/cover;

}

.hero-overlay{

    position:absolute;

    inset:0;

    background:linear-gradient(

    to right,

    rgba(0,0,0,.72),

    rgba(0,0,0,.35)

    );

}

.hero-content{

    position:relative;

    z-index:2;

}

.hero-text{

    max-width:650px;

    color:white;

    animation:fadeUp 1s ease;

}

.badge{

    display:inline-block;

    padding:10px 20px;

    background:rgba(255,255,255,.15);

    border:1px solid rgba(255,255,255,.2);

    border-radius:50px;

    margin-bottom:25px;

    backdrop-filter:blur(8px);

}

.hero h1{

    font-size:64px;

    line-height:1.15;

    margin-bottom:25px;

}

.hero p{

    font-size:19px;

    line-height:1.9;

    margin-bottom:40px;

    opacity:.95;

}

/*==================================================
    BOTONES
==================================================*/

.hero-buttons{

    display:flex;

    gap:20px;

    flex-wrap:wrap;

}

.btn-primary{

    padding:18px 36px;

    background:linear-gradient(

    45deg,

    var(--primary),

    #ff9b2a

    );

    color:white;

    border-radius:50px;

    font-weight:600;

    transition:.35s;

    box-shadow:

    0 10px 25px

    rgba(245,124,0,.35);

}

.btn-primary:hover{

    transform:translateY(-4px);

}

.btn-secondary{

    padding:18px 36px;

    border:2px solid white;

    color:white;

    border-radius:50px;

    font-weight:600;

    transition:.35s;

}

.btn-secondary:hover{

    background:white;

    color:#222;

}

/*==================================================
    ABOUT
==================================================*/

.about{

    padding:120px 0;

}

.about-grid{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:70px;

    align-items:center;

}

.about-image{

    overflow:hidden;

    border-radius:20px;

    box-shadow:var(--shadow);

}

.about-image img{

    transition:.6s;

}

.about-image:hover img{

    transform:scale(1.08);

}

.section-subtitle{

    color:var(--primary);

    font-weight:700;

    text-transform:uppercase;

    letter-spacing:2px;

}

.about h2{

    font-size:42px;

    margin:15px 0 25px;

}

.about p{

    color:var(--gray);

    line-height:1.9;

    margin-bottom:20px;

}

.features{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:18px;

    margin-top:30px;

}

.features div{

    display:flex;

    align-items:center;

    gap:10px;

    font-weight:500;

}

.features i{

    color:var(--primary);

}

/*==================================================
    ESTADISTICAS
==================================================*/

.stats{

    background:var(--light);

    padding:90px 0;

}

.stats-grid{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:25px;

}

.stat{

    background:white;

    border-radius:20px;

    text-align:center;

    padding:45px 25px;

    box-shadow:var(--shadow);

    transition:.35s;

}

.stat:hover{

    transform:translateY(-8px);

}

.stat h2{

    color:var(--primary);

    font-size:52px;

    margin-bottom:10px;

}

.stat span{

    color:var(--gray);

    font-weight:500;

}

/*==================================================
    TITULOS GENERALES
==================================================*/

.section-title{

    font-size:42px;

    margin-top:10px;

    margin-bottom:60px;

}

/*==================================================
    ANIMACION
==================================================*/

@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(50px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

/*==================================================
    SERVICIOS
==================================================*/

.services{

    padding:120px 0;

    background:#ffffff;

}

.services-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));

    gap:30px;

}

.service-card{

    background:#fff;

    border:1px solid var(--border);

    border-radius:20px;

    padding:40px 30px;

    text-align:center;

    transition:var(--transition);

    box-shadow:0 5px 20px rgba(0,0,0,.04);

}

.service-card:hover{

    transform:translateY(-12px);

    box-shadow:0 20px 40px rgba(0,0,0,.12);

    border-color:var(--primary);

}

.service-card i{

    width:85px;

    height:85px;

    line-height:85px;

    border-radius:50%;

    background:#fff4e9;

    color:var(--primary);

    font-size:36px;

    margin-bottom:25px;

    transition:.35s;

}

.service-card:hover i{

    transform:rotate(10deg) scale(1.1);

}

.service-card h3{

    margin-bottom:15px;

    font-size:24px;

}

.service-card p{

    color:var(--gray);

    line-height:1.8;

}

/*==================================================
    GALERÍA
==================================================*/

.projects{

    padding:120px 0;

    background:var(--light);

}

.gallery{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));

    gap:25px;

}

.gallery-item{

    overflow:hidden;

    border-radius:20px;

    position:relative;

    cursor:pointer;

}

.gallery-item img{

    height:280px;

    object-fit:cover;

    transition:.6s;

}

.gallery-item::before{

    content:"Ver Proyecto";

    position:absolute;

    inset:0;

    display:flex;

    justify-content:center;

    align-items:center;

    background:rgba(0,0,0,.55);

    color:white;

    font-size:24px;

    font-weight:600;

    opacity:0;

    transition:.4s;

    z-index:2;

}

.gallery-item:hover::before{

    opacity:1;

}

.gallery-item:hover img{

    transform:scale(1.12);

}

/*==================================================
    CONTACTO
==================================================*/

.contact{

    padding:120px 0;

    text-align:center;

}

.contact h2{

    font-size:42px;

    margin:15px 0;

}

.contact p{

    color:var(--gray);

}

.contact-box{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));

    gap:30px;

    margin-top:60px;

}

.contact-box div{

    background:white;

    padding:45px;

    border-radius:20px;

    box-shadow:var(--shadow);

    transition:.35s;

}

.contact-box div:hover{

    transform:translateY(-10px);

}

.contact-box i{

    font-size:45px;

    color:var(--primary);

    margin-bottom:20px;

}

.contact-box h3{

    margin-bottom:10px;

}

/*==================================================
    FOOTER
==================================================*/

footer{

    background:#1d1d1d;

    color:white;

    padding:60px 0;

}

.footer-content{

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:30px;

    flex-wrap:wrap;

}

.footer-content h2{

    color:var(--primary);

    margin-bottom:10px;

}

/*==================================================
    BOTÓN WHATSAPP
==================================================*/

.whatsapp{

    position:fixed;

    right:25px;

    bottom:25px;

    width:70px;

    height:70px;

    background:#25D366;

    color:white;

    border-radius:50%;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:34px;

    z-index:999;

    box-shadow:0 10px 30px rgba(37,211,102,.45);

    animation:pulse 2s infinite;

    transition:.3s;

}

.whatsapp:hover{

    transform:scale(1.1);

}

@keyframes pulse{

    0%{

        box-shadow:0 0 0 0 rgba(37,211,102,.7);

    }

    70%{

        box-shadow:0 0 0 18px rgba(37,211,102,0);

    }

    100%{

        box-shadow:0 0 0 0 rgba(37,211,102,0);

    }

}

/*==================================================
    BOTÓN SUBIR
==================================================*/

#topBtn{

    position:fixed;

    bottom:110px;

    right:28px;

    width:55px;

    height:55px;

    border:none;

    border-radius:50%;

    background:var(--primary);

    color:white;

    cursor:pointer;

    display:none;

    font-size:20px;

    box-shadow:var(--shadow);

    transition:.3s;

    z-index:998;

}

#topBtn:hover{

    transform:translateY(-5px);

    background:var(--primary-dark);

}

/*==================================================
    SCROLL ANIMATIONS
==================================================*/

.reveal{

    opacity:0;

    transform:translateY(50px);

    transition:all .8s ease;

}

.reveal.active{

    opacity:1;

    transform:translateY(0);

}

/*==================================================
    RESPONSIVE
==================================================*/

@media(max-width:992px){

.hero h1{

font-size:48px;

}

.about-grid{

grid-template-columns:1fr;

}

.stats-grid{

grid-template-columns:repeat(2,1fr);

}

}

@media(max-width:768px){

header{

padding:15px 0;

}

.menu-btn{

display:block;

color:white;

}

header.active .menu-btn{

color:#222;

}

nav{

position:absolute;

top:100%;

left:0;

width:100%;

background:white;

flex-direction:column;

display:none;

padding:25px;

box-shadow:0 10px 20px rgba(0,0,0,.08);

}

nav.active{

display:flex;

}

nav a{

color:#222 !important;

}

.hero{

text-align:center;

}

.hero h1{

font-size:38px;

}

.hero p{

font-size:17px;

}

.hero-buttons{

justify-content:center;

}

.section-title{

font-size:34px;

}

.about h2{

font-size:34px;

}

.contact h2{

font-size:34px;

}

.stats-grid{

grid-template-columns:1fr;

}

.footer-content{

flex-direction:column;

text-align:center;

}

}

@media(max-width:500px){

.hero h1{

font-size:30px;

}

.btn-primary,

.btn-secondary{

width:100%;

text-align:center;

}

.features{

grid-template-columns:1fr;

}

.gallery{

grid-template-columns:1fr;

}

.contact-box{

grid-template-columns:1fr;

}

.whatsapp{

width:65px;

height:65px;

font-size:30px;

}

}

.modal{

position:fixed;

inset:0;

background:rgba(0,0,0,.85);

display:none;

justify-content:center;

align-items:center;

z-index:99999;

backdrop-filter:blur(8px);

}

.modal-content{

width:90%;

max-width:1100px;

background:white;

border-radius:20px;

padding:30px;

position:relative;

animation:zoom .4s;

}

@keyframes zoom{

from{

transform:scale(.8);

opacity:0;

}

to{

transform:scale(1);

opacity:1;

}

}

.close{

position:absolute;

top:15px;

right:25px;

font-size:40px;

cursor:pointer;

}

.slider{

    display:grid;

    grid-template-columns:70px 1fr 70px;

    align-items:center;

    gap:30px;

    width:100%;

    margin:25px 0;

}

.slider img{

    width:100%;

    max-width:950px;

    height:70vh;

    object-fit:contain;

    margin:auto;

    display:block;

    border-radius:15px;

    background:#f5f5f5;

}

.arrow{

    width:55px;

    height:55px;

    border:none;

    border-radius:50%;

    background:#f57c00;

    color:#fff;

    font-size:26px;

    cursor:pointer;

    transition:.3s;

}

.arrow:hover{

    transform:scale(1.08);

    background:#d96a00;

}

.arrow.left{

    left:15px;

}

.arrow.right{

    right:15px;

}

@media (max-width:768px){

    .arrow{

        width:42px;

        height:42px;

        font-size:20px;

    }

    .arrow.left{

        left:10px;

    }

    .arrow.right{

        right:10px;

    }

}

.thumbs{

display:flex;

gap:15px;

justify-content:center;

margin-top:25px;

flex-wrap:wrap;

}

.thumbs img{

width:100px;

height:70px;

object-fit:cover;

border-radius:10px;

cursor:pointer;

transition:.3s;

border:3px solid transparent;

}

.thumbs img:hover{

transform:scale(1.08);

border-color:#f57c00;

}

.project-name{

position:absolute;

bottom:15px;

left:15px;

background:rgba(0,0,0,.6);

padding:10px 18px;

color:white;

border-radius:25px;

font-weight:600;

}

.gallery-item{

position:relative;

}

.image-counter{

    margin-top:20px;

    text-align:center;

    font-size:18px;

    font-weight:600;

    color:#666;

}

.thumb{

    width:90px;

    height:70px;

    object-fit:cover;

    border-radius:10px;

    cursor:pointer;

    border:3px solid transparent;

    transition:.3s;

}

.thumb:hover{

    transform:scale(1.05);

}

.selected{

    border-color:#f57c00;

}

/*==========================
TABLETS
===========================*/

@media (max-width:900px){

.slider{

    flex-direction:column;

}

.slider img{

    width:100%;

    height:50vh;

}

.arrow{

    width:50px;

    height:50px;

}

}


/*==========================
CELULARES
===========================*/

@media (max-width:768px){

.modal{

    padding:8px;

}

.modal-content{

    width:95%;

    max-width:1300px;

    height:92vh;

    background:#fff;

    border-radius:20px;

    padding:30px;

    overflow:hidden;

    display:flex;

    flex-direction:column;

}

.modal-body{

    flex:1;

    overflow-y:auto;

}

.modal-content h2{

    font-size:22px;

    padding-right:35px;

}

.modal-header{

    position:sticky;

    top:0;

    background:#fff;

    z-index:100;

    padding:15px 20px;

    margin:-35px -35px 20px -35px;

    border-bottom:1px solid #e9e9e9;

    display:flex;

    justify-content:space-between;

    align-items:center;

}

    .slider{

        display:flex;

        justify-content:center;

        align-items:center;

        position:relative;

    }

    .slider img{

        width:100%;

        height:68vh;

        object-fit:contain;

    }

.arrow{

    width:45px;

    height:45px;

    font-size:22px;

}

.thumbs{

    gap:8px;

}

.thumbs img{

    width:70px;

    height:60px;

}

.image-counter{

    font-size:15px;

}

}


/*==========================
CELULARES PEQUEÑOS
===========================*/

@media (max-width:480px){

.modal-content{

    padding:12px;

}

.modal-content h2{

    font-size:19px;

}

.slider img{

    height:35vh;

}

.arrow{

    width:40px;

    height:40px;

    font-size:18px;

}

.thumbs img{

    width:60px;

    height:50px;

}

.close{

    font-size:30px;

}

}

/*=========================================
    MODAL RESPONSIVE - CELULAR
=========================================*/

@media (max-width: 768px){

    .modal-content{

        width:100%;

        height:100vh;

        max-height:100vh;

        border-radius:0;

        padding:15px;

    }

    .slider{

        display:flex;

        flex-direction:column;

        justify-content:center;

        align-items:center;

        gap:15px;

    }

    .slider img{

        width:100%;

        height:60vh;

        max-height:60vh;

        object-fit:contain;

    }

    .thumbs{

        display:flex;

        flex-wrap:wrap;

        justify-content:center;

        gap:8px;

    }

    .thumbs img{

        width:70px;

        height:55px;

    }

}

@media (max-width:768px){

    .slider{

        display:flex;

        justify-content:center;

        align-items:center;

        position:relative;

    }

    .slider img{

        width:100%;

        height:68vh;

        object-fit:contain;

    }

    .arrow{

        position:absolute;

        top:50%;

        transform:translateY(-50%);

        width:42px;

        height:42px;

        font-size:20px;

        background:rgba(0,0,0,.55);

        color:#fff;

        z-index:10;

    }

    .arrow.left{

        left:10px;

    }

    .arrow.right{

        right:10px;

    }

}