body{
    font-family: Arial;
    margin:0;
    background:#f4f4f4;
}

/* HEADER */
header{
    background:#0a2a43;
    color:white;
    padding:20px;
    text-align:center;
    position:sticky;
    top:0;
    z-index:1000;
}

.header-container{
    display:flex;
    align-items:center;
    gap:20px;
    justify-content:center;
    position:relative;
}

.logo{
    height:60px;
    position:absolute;
    left:20px;
}

.nombre-empresa{
    font-size:100%;
    font-weight:bold;
    color:white;
    white-space:nowrap;
}

nav{
    margin-top:10px;
}

nav a{
    color:white;
    margin:10px;
    text-decoration:none;
    font-weight:bold;
}

/* SECCIONES */
section{
    padding:40px;
}

/* HERO */
.hero{
    position:relative;
    height:45vh;
    background:url('../img/hero-electric.jpg') center/cover no-repeat;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    color:white;
}

.hero-overlay{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.55);
}

.hero-content{
    position:relative;
    max-width:800px;
    padding:20px;
}

.hero h1{
    font-size:36px;
    margin-bottom:15px;
}

.hero p{
    font-size:20px;
    margin-bottom:30px;
}

.hero-buttons{
    display:flex;
    gap:20px;
    justify-content:center;
}

@media (min-width:900px){
    .hero{
        background-attachment:fixed;
    }
}

/* BOTONES */
.btn{
    background:#1e73be;
    color:white;
    padding:14px 28px;
    text-decoration:none;
    border-radius:6px;
    font-weight:bold;
    transition:0.3s;
}

.btn-sec{
    background:transparent;
    border:2px solid white;
}

.btn-sec:hover{
    background:white;
    color:black;
}

button{
    background:#1e73be;
    color:white;
    border:none;
    padding:12px 20px;
    border-radius:5px;
    cursor:pointer;
}

/* FORMULARIOS */
input, textarea{
    width:100%;
    padding:10px;
    border:1px solid #ccc;
    border-radius:5px;
}

/* SERVICIOS */
.servicios{
    display:flex;
    flex-wrap:wrap;
    gap:25px;
    justify-content:center;
    align-items:stretch;
}

.card{
    width:250px;
    background:#f4f4f4;
    border-radius:8px;
    text-decoration:none;
    color:black;
    box-shadow:0 4px 8px rgba(0,0,0,0.1);
    transition:transform 0.2s;
    overflow:hidden;
}

.card img{
    width:100%;
    height:160px;
    object-fit:cover;
    border-radius:8px 8px 0 0;
}

.card h3{
    padding:15px;
    text-align:center;
    margin:0;
}

.card:hover{
    transform:scale(1.05);
}

/* DETALLE SERVICIOS */
.detalle-servicio{
    scroll-margin-top:140px;
    padding-top:20px;
}

.detalle-servicio h2{
    margin-top:40px;
}

/* PROYECTOS */
.proyectos{
    display:flex;
    gap:30px;
    flex-wrap:wrap;
    justify-content:center;
}

.proyecto{
    width:300px;
    background:white;
    border-radius:10px;
    overflow:hidden;
    box-shadow:0px 0px 10px rgba(0,0,0,0.1);
}

.proyecto img{
    width:100%;
    height:200px;
    object-fit:cover;
}

.proyecto h3{
    padding:10px;
}

.proyecto p{
    padding:10px;
}

/* SLIDER PROYECTOS */
.slider-proyecto{
    position:relative;
    overflow:hidden;
    width:100%;
    max-width:500px;
}

.slides-proyecto{
    display:flex;
    transition:transform 0.5s ease;
}

.slides-proyecto img{
    width:100%;
    flex-shrink:0;
}

.prev-proy,.next-proy{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    background:rgba(0,0,0,0.5);
    color:white;
    border:none;
    font-size:22px;
    padding:6px 10px;
    cursor:pointer;
}

.prev-proy{ left:10px; }
.next-proy{ right:10px; }

/* MAPA */
.mapa{
    margin-top:20px;
    border-radius:10px;
    overflow:hidden;
    box-shadow:0px 0px 10px rgba(0,0,0,0.1);
}

/* WHATSAPP */
.whatsapp-float{
    position:fixed;
    bottom:25px;
    right:25px;
    width:65px;
    height:65px;
    border-radius:50%;
    background:#25D366;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 4px 10px rgba(0,0,0,0.3);
    z-index:1000;
    animation:whatsapp-pulse 2s infinite;
    transition:transform 0.3s;
}

.whatsapp-float img{
    width:35px;
    height:35px;
}

.whatsapp-float:hover{
    transform:scale(1.1);
}

@keyframes whatsapp-pulse{
    0%{ box-shadow:0 0 0 0 rgba(37,211,102,0.6); }
    70%{ box-shadow:0 0 0 18px rgba(37,211,102,0); }
    100%{ box-shadow:0 0 0 0 rgba(37,211,102,0); }
}

/* FOOTER */
footer{
    background:#0a2a43;
    color:white;
    text-align:center;
    padding:20px;
}

/* ===== CARRUSEL CORREGIDO ===== */

.carousel{
    position:relative;
    width:100%;
    height:80vh;
    overflow:hidden;
    background:rgba(0,0,0,0.5);
}

.carousel-track{
    display:flex;
    flex-direction:row;
    height:100%;
    transition:transform 0.5s ease;
}

.slide{
    min-width:100%;
    height:100%;
    flex-shrink:0;
    position:relative;
    display:flex;
    align-items:center;
    justify-content:center;
}

.slide img{
    height:100%;
    width:auto;
    object-fit:contain;
}

/* TEXTO */
.slide h3{
    position:absolute;
    bottom:30px;
    left:50%;
    transform:translateX(-50%);
    background:rgba(0,0,0,0.6);
    color:white;
    padding:10px 20px;
    border-radius:8px;
}

/* FLECHAS */
.prev, .next{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    background:rgba(0,0,0,0.6);
    color:white;
    border:none;
    font-size:30px;
    padding:10px 15px;
    cursor:pointer;
    z-index:999;
}

.prev{ left:20px; }
.next{ right:20px; }

.prev:hover, .next:hover{
    background:rgba(0,0,0,0.9);
}