:root{
    --primary:#4f46e5;
    --secondary:#06b6d4;
    --dark:#0f172a;
    --dark2:#111827;
}

html{
    scroll-behavior:smooth;
}

body{
    background:var(--dark);
    color:white;
    font-family:Inter,Segoe UI,sans-serif;
}

.navbar{
    backdrop-filter: blur(20px);
    background:rgba(15,23,42,.75);
}

.hero{
    top:75px;
    min-height:100vh;
    display:flex;
    align-items:center;
    position:relative;
    overflow:hidden;
}

.hero::before{
    content:"";
    position:absolute;
    width:700px;
    height:700px;
    background:radial-gradient(circle,var(--primary),transparent 70%);
    opacity:.25;
    top:-200px;
    right:-150px;
}

.hero::after{
    content:"";
    position:absolute;
    width:600px;
    height:600px;
    background:radial-gradient(circle,var(--secondary),transparent 70%);
    opacity:.20;
    bottom:-200px;
    left:-150px;
}

.hero-content{
    position:relative;
    z-index:2;
}

.hero h1{
    font-size:4rem;
    font-weight:800;
    line-height:1.1;
}

.gradient{
    background:linear-gradient(90deg,#818cf8,#22d3ee);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

.subtitle{
    color:#cbd5e1;
    font-size:1.25rem;
    max-width:750px;
}

.glass{
    background:rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.08);
    backdrop-filter:blur(20px);
    border-radius:24px;
}

.section{
    padding:120px 0;
}

.problem-card{
    transition:.3s;
    height:100%;
}

.problem-card:hover{
    transform:translateY(-10px);
}

.problem-card i{
    font-size:2.5rem;
    margin-bottom:20px;
    color:#60a5fa;
}

.badge-tech{
    padding:12px 18px;
    margin:6px;
    border-radius:50px;
    background:rgba(255,255,255,.08);
    display:inline-block;
}

.timeline-item{
    border-left:2px solid rgba(255,255,255,.15);
    padding-left:30px;
    margin-bottom:40px;
}

.timeline-item h5{
    color:#60a5fa;
}

.quote{
    font-size:3rem;
    font-weight:800;
    text-align:center;
    max-width:1000px;
    margin:auto;
}

.counter{
    font-size:3rem;
    font-weight:800;
}

.contact-box{
    padding:50px;
}

footer{
    border-top:1px solid rgba(255,255,255,.08);
}

.btn-primary{
    background:linear-gradient(90deg,#4f46e5,#06b6d4);
    border:none;
}

.btn-primary:hover{
    opacity:.9;
}

@media(max-width:768px){

    .hero h1{
        font-size:2.6rem;
    }

    .quote{
        font-size:2rem;
    }

}

/* =========================================================
   BOTÓN FLOTANTE WHATSAPP PREMIUM
   Sitio Repuestos Automotrices
========================================================= */

.whatsapp-float{

    position: fixed;

    right: 25px;

    bottom: 80px;

    z-index: 9999;

    display: flex;

    align-items: center;

    justify-content: center;

    width: 72px;

    height: 72px;

    border-radius: 50%;

    background: linear-gradient(135deg,#25d366,#128c7e);

    color: #fff;

    text-decoration: none;

    box-shadow:
            0 10px 30px rgba(0,0,0,.25),
            0 0 0 0 rgba(37,211,102,.5);

    transition: all .3s ease;

    animation: whatsappPulse 2s infinite;

    overflow: visible;
}

/* EFECTO HOVER */
.whatsapp-float:hover{

    transform: translateY(-5px) scale(1.05);

    color: #fff;

    text-decoration: none;

    box-shadow:
            0 15px 40px rgba(0,0,0,.35),
            0 0 25px rgba(37,211,102,.5);
}

/* ICONO */
.whatsapp-float i{

    font-size: 34px;

    position: relative;

    z-index: 2;
}

/* BADGE NOTIFICACIÓN */
.whatsapp-badge{

    position: absolute;

    top: -5px;

    right: -2px;

    min-width: 28px;

    height: 28px;

    padding: 0 6px;

    border-radius: 50px;

    background: #ff3b30;

    color: #fff;

    font-size: 12px;

    font-weight: 700;

    display: flex;

    align-items: center;

    justify-content: center;

    border: 3px solid #fff;

    box-shadow: 0 4px 12px rgba(0,0,0,.25);

    animation: badgeBounce 1.5s infinite;
}

/* TOOLTIP */
.whatsapp-tooltip{

    position: absolute;

    right: 90px;

    white-space: nowrap;

    background: #111827;

    color: #fff;

    padding: 12px 18px;

    border-radius: 14px;

    font-size: 14px;

    font-weight: 500;

    opacity: 0;

    visibility: hidden;

    transform: translateX(10px);

    transition: all .25s ease;

    box-shadow: 0 10px 25px rgba(0,0,0,.25);
}

/* FLECHA TOOLTIP */
.whatsapp-tooltip::after{

    content: "";

    position: absolute;

    top: 50%;

    right: -8px;

    transform: translateY(-50%);

    border-width: 8px 0 8px 8px;

    border-style: solid;

    border-color: transparent transparent transparent #111827;
}

/* MOSTRAR TOOLTIP */
.whatsapp-float:hover .whatsapp-tooltip{

    opacity: 1;

    visibility: visible;

    transform: translateX(0);
}

/* ANILLO EXTERNO */
.whatsapp-float::before{

    content: "";

    position: absolute;

    inset: -10px;

    border-radius: 50%;

    border: 2px solid rgba(37,211,102,.35);

    animation: ringPulse 2s infinite;
}

/* ANIMACIONES */
@keyframes whatsappPulse{

    0%{
        box-shadow:
                0 0 0 0 rgba(37,211,102,.45),
                0 10px 30px rgba(0,0,0,.25);
    }

    70%{
        box-shadow:
                0 0 0 18px rgba(37,211,102,0),
                0 10px 30px rgba(0,0,0,.25);
    }

    100%{
        box-shadow:
                0 0 0 0 rgba(37,211,102,0),
                0 10px 30px rgba(0,0,0,.25);
    }
}

@keyframes badgeBounce{

    0%,100%{
        transform: translateY(0);
    }

    50%{
        transform: translateY(-4px);
    }
}

@keyframes ringPulse{

    0%{
        transform: scale(.9);
        opacity: 1;
    }

    100%{
        transform: scale(1.2);
        opacity: 0;
    }
}

/* RESPONSIVE */
@media(max-width:768px){

    .whatsapp-float{

        width: 64px;

        height: 64px;

        right: 18px;

        bottom: 80px;
    }

    .whatsapp-float i{

        font-size: 30px;
    }

    .whatsapp-tooltip{

        display: none;
    }

    .whatsapp-badge{

        min-width: 24px;

        height: 24px;

        font-size: 11px;
    }
}