:root{

--primary:#C12730;
--primary-hover:#D6353F;

--text:#111827;
--text-light:#6B7280;

--bg:#FFFFFF;
--bg-soft:#F8FAFC;

--dark:#0B1220;
--dark-2:#111827;

--border:#E5E7EB;

}

*{
margin:0;
padding:0;
box-sizing:border-box;
}

body{
    font-family:'Inter',sans-serif;
    background:#FFFFFF;
    color:#111827;
}

html{
    scroll-behavior:smooth;
}

.container{
width:min(1200px,90%);
margin:auto;
}

.header{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    background:#ffffff;
    border-bottom:1px solid #E5E7EB;
    z-index:1000;
}

.header .container{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 0;
}

.logo img{
    height: 55px;
    width: auto;
    display: block;
}

nav{
display:flex;
gap:30px;
}

nav a{
    color:#111827;
    text-decoration:none;
    font-weight:500;
    margin:0 15px;
}

nav a:hover{
    color:#C12730;
}


.btn-primary{
    background:#C12730;
    color:white;
    padding:10px 18px;
    border-radius:10px;
    text-decoration:none;
}

.btn-primary:hover{
    background:#D6353F;
}

.btn-outline{
border:1px solid rgba(255,255,255,.2);
padding:15px 30px;
border-radius:12px;
text-decoration:none;
color:white;
}


/********************** SWIPER ************************/
.hero{
    width:100%;
    position:relative;

}

.hero::after{
    content:"";
    position:absolute;
    bottom:0;
    left:0;
    width:100%;
    height:120px;
    z-index:3;
}

.hero,
.slide{
    height:80vh;
    min-height:550px;
    max-height:720px;
}

.slide{
    background-size:cover;
    background-position:center;
    display:flex;
    align-items:center;
    position:relative;
}

.overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(
        to right,
        rgba(0,0,0,.55),
        rgba(0,0,0,.20)
    );
}

.content{
    position:relative;
    z-index:2;
    max-width:950px;
    padding:0 10%;
    color:white;
}

.content span{
    color:#C12730;
    font-weight:600;
    letter-spacing:1px;
    text-transform:uppercase;
}

.content h1{
    font-size:clamp(2.5rem,5vw,3.2rem);
    margin:15px 0;
    line-height:1.1;
}

.content p{
    font-size:1.2rem;
    opacity:.85;
    margin-bottom:25px;
    max-width:600px;
}

.content a{
    display:inline-block;
    background:#C12730;
    color:white;
    padding:14px 22px;
    border-radius:10px;
    text-decoration:none;
    font-weight:500;
    transition:.3s;
}

.content a:hover{
    background:#E23A44;
}

/* animación suave al cambiar slide */
.swiper-slide-active .content{
    animation:fadeUp .8s ease;
}

.swiper-slide-shadow,
.swiper-slide-shadow-left,
.swiper-slide-shadow-right{
    display:none !important;
}

@keyframes fadeUp{
    from{
        opacity:0;
        transform:translateY(20px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

/********************** QUIENES SOMOS ********************/
.about{
    padding:120px 0;
    background:#fff;
    scroll-margin-top:100px;
}

.about-grid{
    display:grid;
    grid-template-columns:1.2fr 1fr;
    gap:60px;
    align-items:center;
}

.section-tag{
    color:#C12730;
    font-weight:600;
    text-transform:uppercase;
    letter-spacing:1px;
    font-size:14px;
}

.about-text h2{
    font-size:clamp(2rem,3vw,3rem);
    margin:20px 0;
    color:#111827;
    line-height:1.2;
}

.about-text p{
    color:#6B7280;
    margin-bottom:15px;
    line-height:1.6;
    font-size:1.05rem;
}

.about-stats{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:20px;
}

.stat-box{
    background:#F8FAFC;
    border:1px solid #E5E7EB;
    border-radius:16px;
    padding:25px;
    text-align:center;
    transition:.3s;
}

.stat-box:hover{
    border-color:#C12730;
    transform:translateY(-5px);
}

.stat-box h3{
    font-size:2rem;
    color:#C12730;
}

.stat-box p{
    color:#6B7280;
    font-size:14px;
}
@media (max-width: 768px){

    .about-grid{
        grid-template-columns:1fr;
    }

    .about-stats{
        grid-template-columns:1fr 1fr;
    }

}

/******************** SERVICES *********************/
.services{
    padding:120px 0;
    background:#F8FAFC; /* antes era blanco */
    scroll-margin-top:100px;
}
.services,
.about{
    position:relative;
}

.services::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:1px;
    background:#E5E7EB;
}
.section-header{
    text-align:center;
    max-width:800px;
    margin:0 auto 60px auto;
}

.section-header h2{
    font-size:clamp(2rem,3vw,2.8rem);
    color:#111827;
    margin:15px 0;
}

.section-header p{
    color:#6B7280;
    line-height:1.6;
    font-size:1.05rem;
}

.services-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:25px;
}

.service-card{
    background:#FFFFFF;
    border:1px solid #E5E7EB;
    border-radius:20px;
    padding:35px;
    transition:.3s;
    cursor:pointer;
    position:relative;
    overflow:hidden;
}

/* barra de acento */
.service-card::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:3px;
    background:transparent;
    transition:.3s;
}

/* icono */
.icon{
    width:72px;
    height:72px;
    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:18px;

    background:linear-gradient(
        135deg,
        #F8FAFC,
        #FFFFFF
    );

    border:1px solid #E5E7EB;

    color:#C12730;

    font-size:28px;

    margin-bottom:20px;
}

/* hover */
.service-card:hover{
    transform:translateY(-8px);
    border-color:#C12730;
    box-shadow:0 15px 35px rgba(0,0,0,0.08);
}

/* barra roja en hover */
.service-card:hover::before{
    background:#C12730;
}

/* título */
.service-card h3{
    color:#111827;
    margin-bottom:10px;
}

/* texto */
.service-card p{
    color:#6B7280;
    line-height:1.5;
}
.service-card{
    transition:.3s;
}

.service-card:hover .icon{
    box-shadow:0 10px 25px rgba(193,39,48,0.15);
}

/*************** CASOS DE EXITO ************/
.cases{
    padding:120px 0;
    background:#fff;
    scroll-margin-top:100px;
}

.cases-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
    margin-top:50px;
}

.case{
    text-align:center;
    padding:30px;
    border:1px solid #E5E7EB;
    border-radius:18px;
    background:#F8FAFC;
    transition:.3s;
}

.case:hover{
    transform:translateY(-6px);
    border-color:#C12730;
}

.case h3{
    font-size:2.2rem;
    color:#C12730;
    margin-bottom:10px;
}

.case p{
    color:#6B7280;
}

/********************** CTA CONTACTO****************/
.cta{
    padding:120px 0;
    background:#F8FAFC;
    scroll-margin-top:100px;
}

.cta-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:60px;
    align-items:center;
}

.cta-text h2{
    font-size:clamp(2rem,3vw,3rem);
    color:#111827;
    margin:15px 0;
}

.cta-text p{
    color:#6B7280;
    line-height:1.6;
}

.cta-info{
    margin:30px 0;
    display:flex;
    flex-direction:column;
    gap:20px;
}

.cta-info strong{
    color:#111827;
}

.cta-info p{
    margin:0;
    font-size:14px;
    color:#6B7280;
}

/* FORM */
.cta-form{
    background:#FFFFFF;
    border:1px solid #E5E7EB;
    border-radius:20px;
    padding:30px;
}

.cta-form form{
    display:flex;
    flex-direction:column;
    gap:15px;
}

.cta-form input,
.cta-form textarea{
    background:#F8FAFC;
    border:1px solid #E5E7EB;
    border-radius:12px;
    padding:14px;
    color:#111827;
    font-family:inherit;
}

.cta-form input:focus,
.cta-form textarea:focus{
    border-color:#C12730;
    outline:none;
}

.cta-form button{
    background:#C12730;
    color:#fff;
    border:none;
    padding:14px;
    border-radius:12px;
    cursor:pointer;
    transition:.3s;
}

.cta-form button:hover{
    background:#D6353F;
}

@media (max-width: 768px){

    .cta-grid{
        grid-template-columns:1fr;
    }

}

.cta-note{
    margin-top:12px;
    color:#6B7280;
    font-size:13px;
    text-align:center;
}

/**************** FOOTER ******************/
.footer{
    background:#0B1220;
    color:#FFFFFF;
    padding:80px 0 30px;
}

.footer-grid{
    display:grid;
    grid-template-columns:2fr 1fr 1fr 1.5fr;
    gap:40px;
}

.footer-logo{
    height:50px;
    margin-bottom:15px;
}

.footer-brand p{
    color:#9CA3AF;
    line-height:1.6;
}

.footer-links h4,
.footer-contact h4{
    margin-bottom:15px;
    color:#fff;
}

.footer-links a{
    display:block;
    color:#9CA3AF;
    text-decoration:none;
    margin-bottom:10px;
    transition:.3s;
}

.footer-links a:hover{
    color:#C12730;
}

.footer-contact p{
    color:#9CA3AF;
    margin-bottom:10px;
}

.footer-btn{
    display:inline-block;
    margin-top:10px;
    background:#C12730;
    color:#fff;
    padding:10px 16px;
    border-radius:10px;
    text-decoration:none;
    transition:.3s;
}

.footer-btn:hover{
    background:#D6353F;
}

.footer-bottom{
    margin-top:60px;
    border-top:1px solid rgba(255,255,255,.08);
    text-align:center;
    padding-top:20px;
    color:#6B7280;
    font-size:14px;
}
@media (max-width: 900px){

    .footer-grid{
        grid-template-columns:1fr 1fr;
    }

}

@media (max-width: 600px){

    .footer-grid{
        grid-template-columns:1fr;
    }

}

.whatsapp-float{
    position:fixed;
    width:60px;
    height:60px;
    bottom:25px;
    right:25px;
    background:#25D366;
    color:#fff;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:28px;
    box-shadow:0 10px 25px rgba(0,0,0,0.2);
    z-index:9999;
    transition:.3s;
    text-decoration:none;
}

.whatsapp-float:hover{
    transform:scale(1.1);
}

.whatsapp-float::after{
    content:"";
    position:absolute;
    width:60px;
    height:60px;
    border-radius:50%;
    background:#25D366;
    z-index:-1;
    animation:pulse 1.8s infinite;
}

@keyframes pulse{
    0%{transform:scale(1);opacity:0.6;}
    100%{transform:scale(1.6);opacity:0;}
}

.footer-social h4{
    margin-bottom:15px;
}

.social-icons{
    display:flex;
    gap:12px;
}

.social-icons a{
    width:38px;
    height:38px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:10px;
    background:#111827;
    color:#fff;
    transition:.3s;
    text-decoration:none;
}

.social-icons a:hover{
    background:#C12730;
    transform:translateY(-3px);
}

.hidden{
    display:none;
}

.alert-success{
    margin-top:20px;
    padding:15px;
    border-radius:10px;
    background:#ECFDF5;
    color:#065F46;
    border:1px solid #A7F3D0;
}

.alert-error{
    margin-top:20px;
    padding:15px;
    border-radius:10px;
    background:#FEF2F2;
    color:#991B1B;
    border:1px solid #FECACA;
}