@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* =========================
   RESET
========================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins', sans-serif;
    scroll-behavior:smooth;
}

html,
body{
    overflow-x:hidden;
}

body{
    background:#0f172a;
    color:white;
}

/* =========================
   HEADER
========================= */

.header{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    padding:18px 8%;
    display:flex;
    justify-content:space-between;
    align-items:center;
    background:rgba(15,23,42,.95);
    backdrop-filter:blur(10px);
    z-index:1000;
}

.logo{
    display:flex;
    align-items:center;
}

.logo img{
    width:180px;
    height:auto;
    object-fit:contain;
}

.navbar{
    display:flex;
    gap:30px;
}

.navbar a{
    text-decoration:none;
    color:white;
    transition:.3s;
    font-weight:500;
}

.navbar a:hover{
    color:#facc15;
}

.hamburguesa{
    display:none;
    font-size:1.8rem;
    cursor:pointer;
    color:white;
}

/* =========================
   HERO
========================= */

.hero{
    min-height:100dvh;
    background:url('img/circuito.png') center/cover no-repeat;
    position:relative;
    display:flex;
    align-items:flex-start;
    padding:170px 5% 60px;
}

.hero-overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.65);
}

.hero-content{
    position:relative;
    z-index:2;
    max-width:650px;
    margin-top:20px;
}

.hero-content h1{
    font-size:4rem;
    margin-bottom:20px;
    line-height:1.1;
    word-break:break-word;
}

.hero-content p{
    color:#d1d5db;
    line-height:1.8;
    margin-bottom:30px;
    max-width:600px;
}

.hero-buttons{
    display:flex;
    gap:20px;
    flex-wrap:wrap;
}

/* =========================
   BOTONES
========================= */

.btn{
    padding:14px 30px;
    background:#facc15;
    color:black;
    text-decoration:none;
    border-radius:12px;
    font-weight:600;
    transition:.3s;
    text-align:center;
}

.btn:hover{
    transform:translateY(-5px);
}

.btn-secundario{
    background:transparent;
    border:2px solid #facc15;
    color:#facc15;
}

/* =========================
   NOSOTROS
========================= */

.nosotros{
    padding:100px 8%;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:60px;
    align-items:center;
    background:#111827;
}

.nosotros-img img{
    width:100%;
    border-radius:20px;
    display:block;
}

.nosotros-texto h2{
    font-size:3rem;
    margin-bottom:20px;
    color:#facc15;
}

.nosotros-texto p{
    color:#d1d5db;
    line-height:1.8;
    margin-bottom:20px;
}

.cards-info{
    display:flex;
    gap:20px;
    flex-wrap:wrap;
    margin-top:30px;
}

.mini-card{
    background:#1e293b;
    padding:20px;
    border-radius:15px;
    width:140px;
    text-align:center;

    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:12px;

    transition:.3s;
}

.mini-card:hover{
    transform:translateY(-5px);
}

.mini-card i{
    font-size:1.8rem;
    color:#facc15;
}

.mini-card h3{
    font-size:1rem;
    font-weight:600;
}

/* =========================
   TITULOS
========================= */

.titulo-section{
    text-align:center;
    margin-bottom:60px;
}

.titulo-section h2{
    font-size:3rem;
    color:#facc15;
}

/* =========================
   SERVICIOS
========================= */

.servicios{
    padding:100px 8%;
    background:#0f172a;
}

.servicios-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:30px;
}

.card-servicio{
    position:relative;
    height:320px;
    border-radius:20px;
    overflow:hidden;
    cursor:pointer;
    transition:.4s;
    background:#1e293b;
}

.card-servicio img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:.5s;
}

.card-servicio:hover img{
    transform:scale(1.1);
}

.overlay-servicio{
    position:absolute;
    inset:0;

    background:linear-gradient(
        to top,
        rgba(0,0,0,.9),
        rgba(0,0,0,.2)
    );

    display:flex;
    flex-direction:column;
    justify-content:flex-end;

    padding:25px;

    opacity:0;
    transition:.4s;
}

.card-servicio:hover .overlay-servicio{
    opacity:1;
}

.overlay-servicio h3{
    color:#facc15;
    font-size:1.5rem;
    margin-bottom:10px;
}

.overlay-servicio p{
    color:#e5e7eb;
    font-size:.95rem;
    line-height:1.6;
}

/* =========================
   CONTACTO
========================= */

.contacto{
    padding:100px 8%;
    background:#111827;
}

.form-container{
    max-width:700px;
    margin:auto;
    background:#1e293b;
    padding:50px;
    border-radius:25px;
}

.form-container h2{
    text-align:center;
    margin-bottom:30px;
    color:#facc15;
    line-height:1.4;
}

.grupo-input{
    margin-bottom:20px;
}

.grupo-input input,
.grupo-input textarea{
    width:100%;
    padding:15px;
    border:none;
    border-radius:12px;
    background:#0f172a;
    color:white;
    outline:none;
    transition:.3s;
}

.grupo-input input:focus,
.grupo-input textarea:focus{
    border:2px solid #facc15;
}

.checkbox{
    display:flex;
    gap:10px;
    margin-bottom:20px;
    align-items:center;
}

button{
    width:100%;
    padding:15px;
    border:none;
    border-radius:12px;
    background:#facc15;
    font-weight:700;
    cursor:pointer;
    transition:.3s;
}

button:hover{
    transform:translateY(-3px);
}

button:disabled{
    background:#555;
    cursor:not-allowed;
}

.mensaje-exito{
    margin-top:20px;
    color:#4ade80;
    text-align:center;
    display:none;
    font-weight:600;
}

/* =========================
   FOOTER
========================= */

.footer{
    background:#020617;
    padding-top:60px;
}

.footer-container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:40px;
    padding:0 8% 50px;
}

.footer-box h3{
    color:#facc15;
    margin-bottom:20px;
}

.footer-box p{
    line-height:1.8;
    color:#d1d5db;
}

.sociales{
    display:flex;
    gap:15px;
    flex-wrap:wrap;
}

.sociales a{
    width:45px;
    height:45px;
    background:#1e293b;
    border-radius:50%;

    display:flex;
    justify-content:center;
    align-items:center;

    color:#facc15;
    text-decoration:none;

    transition:.3s;
}

.sociales a:hover{
    transform:translateY(-5px);
}

.copy{
    border-top:1px solid rgba(255,255,255,.1);
    text-align:center;
    padding:20px;
    color:#9ca3af;
}

/* =========================
   BOTON LOGIN FLOTANTE
========================= */

.btn-login-flotante{

    position:fixed;

    right:18px;
    bottom:18px;

    width:52px;
    height:52px;

    background:#facc15;
    color:#000;

    border-radius:14px;

    display:flex;
    justify-content:center;
    align-items:center;

    text-decoration:none;

    font-size:1rem;
    font-weight:700;

    z-index:99999;

    box-shadow:0 10px 25px rgba(0,0,0,.35);

    transition:all .3s ease;

    user-select:none;

    cursor:grab;
}

.btn-login-flotante:hover{
    transform:scale(1.08);
    background:#fde047;
}

.btn-login-flotante:active{
    cursor:grabbing;
    transform:scale(.96);
}

/* =========================
   CORRECCION SCROLL SECCIONES
========================= */

#inicio,
#nosotros,
#servicios,
#contactanos{
    scroll-margin-top:120px;
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:900px){

    .hamburguesa{
        display:block;
    }

    .navbar{
        position:absolute;
        top:80px;
        right:-100%;
        width:280px;
        height:100vh;
        background:#111827;

        flex-direction:column;

        padding:40px;

        transition:.4s;
    }

    .navbar.active{
        right:0;
    }

    .hero-content h1{
        font-size:2.8rem;
    }

}

@media(max-width:768px){

    .header{
        padding:15px 5%;
    }

    .logo img{
        width:150px;
    }

    .hero{
        min-height:100dvh;
        padding:140px 5% 60px;
    }

    .hero-content{
        max-width:100%;
    }

    .hero-content h1{
        font-size:2.4rem;
        line-height:1.1;
    }

    .hero-content p{
        font-size:1rem;
        line-height:1.7;
    }

    .hero-buttons{
        width:100%;
        flex-direction:column;
    }

    .btn{
        width:100%;
    }

    .navbar{
        top:75px;
        width:100%;
        right:-100%;
        padding:30px;
    }

    .nosotros,
    .servicios,
    .contacto{
        padding:80px 5%;
    }

    .titulo-section h2,
    .nosotros-texto h2{
        font-size:2.2rem;
    }

    .form-container{
        width:100%;
        padding:35px 20px;
        border-radius:20px;
        overflow:hidden;
    }

    .form-container h2{
        font-size:2rem;
    }

    .grupo-input input,
    .grupo-input textarea{
        font-size:.95rem;
        padding:14px;
    }

    button{
        font-size:1rem;
    }

    .btn-login-flotante{

        width:48px;
        height:48px;

        font-size:.95rem;

        right:12px;
        bottom:12px;

        border-radius:12px;
    }

}

@media(max-width:480px){

    .hero-content h1{
        font-size:2rem;
    }

    .titulo-section h2,
    .nosotros-texto h2{
        font-size:1.8rem;
    }

    .form-container h2{
        font-size:1.6rem;
    }

}