body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
}

/* Header */
header {
    background-color: #33bd37;
    color: #ffffff;
    padding: 1em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    position: relative;
}

.logo img {
    height: 125px;
}

header h1 {
    margin: 0 0 15px 0;
    font-size: 1.8em;
}

.menu-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
    display: none;
    padding: 10px;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Sección de inicio */
#inicio {
    padding: 4em 2em;
    text-align: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
}

#inicio h1 {
    font-size: 2.5em;
    margin-bottom: 1em;
    color: #000000;
    position: relative;
    display: inline-block;
}

#inicio h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #33bd37;
}

/* Carrusel - Versión mejorada */
.carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 3em 0;
    background: linear-gradient(to bottom, #f8f9fa, #e9ecef);
}

.carousel {
    display: flex;
    width: 300%;
    transition: transform 0.5s ease-in-out;
}

.slide {
    width: 100vw;
    flex-shrink: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 2em 5%;
    box-sizing: border-box;
    gap: 4em;
}

.slide .text-content {
    max-width: 45%;
    text-align: left;
}

.slide .titulo {
    font-size: 2.2em;
    color: #33bd37;
    margin-bottom: 0.5em;
    line-height: 1.2;
}

.slide .energia {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 1.5em;
    line-height: 1.6;
}

.slide .imagen {
    width: 45%;
    max-width: 500px;
}

.slide .imagen img {
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.slide .imagen img:hover {
    transform: scale(1.02);
}

/* Indicadores del carrusel */
.dots-container {
    display: flex;
    justify-content: center;
    margin-top: 1.5em;
    gap: 0.8em;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: #33bd37;
    transform: scale(1.2);
}

/* Sección de servicios */
.servicios {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2em;
    padding: 4em 2em;
    background-color: #ffffff;
}

.card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 2em;
    width: 100%;
    max-width: 350px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.card i {
    font-size: 3em;
    color: #33bd37;
    margin-bottom: 1.5em;
}

.card .info h3 {
    font-size: 1.5em;
    color: #33bd37;
    margin-bottom: 1em;
}

.card .info p {
    font-size: 1em;
    color: #333;
    margin-bottom: 1.5em;
}

.card img {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5em;
    transition: all 0.3s ease;
}

.card img:hover {
    transform: scale(1.1);
}

/* Botón de WhatsApp flotante */
.float-whatsapp {
    position: fixed;
    bottom: 2em;
    right: 2em;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 99;
    transition: all 0.3s ease;
}

.float-whatsapp:hover {
    background: #128C7E;
    transform: scale(1.1) translateY(-5px);
}

/* Footer */
footer {
    background-color: #333;
    color: #ffffff;
    text-align: center;
    padding: 2em;
    margin-top: 2em;
}

/* Media Queries */
@media (max-width: 768px) {
    /* Header */
    header {
        flex-direction: row;
        text-align: left;
        padding: 0.5em 1em;
    }

    .logo img {
        height: 80px;
    }

    header h1 {
        font-size: 1.3em;
        margin: 0;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        width: 100%;
    }

    .nav-menu.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    nav ul li {
        width: 100%;
        text-align: center;
        padding: 0.5em 0;
    }

    nav ul li a {
        display: block;
        padding: 10px 0;
    }

    /* Pie de página */
    footer {
        font-size: 14px;
    }
    
    #inicio h1 {
        font-size: 2em;
    }
    
    /* Carrusel en móviles */
    .slide {
        flex-direction: column;
        padding: 2em;
        gap: 2em;
    }
    
    .slide .text-content,
    .slide .imagen {
        max-width: 100%;
        width: 100%;
    }
    
    .slide .titulo {
        font-size: 1.8em;
        text-align: center;
    }
    
    .slide .energia {
        font-size: 1em;
        text-align: center;
    }
    
    .slide .imagen img {
        max-height: 250px;
    }
    
    .servicios {
        padding: 2em 1em;
        gap: 1.5em;
    }
    
    .card {
        padding: 1.5em;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.1em;
    }
    
    .logo img {
        height: 60px;
    }
}
/*IMAGENES*/
/* Sección de Servicios Principal */
#servicios {
    padding: 50px 20px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

#servicios h1 {
    font-size: 2.2em;
    margin-bottom: 40px;
    color: #000000;
    position: relative;
    padding-bottom: 10px;
}

#servicios h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #33bd37;
}

.contenedor-servicios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.servicio {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.servicio:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.servicio img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.servicio h3 {
    margin: 20px 0 15px;
    color: #33bd37;
    font-size: 1.4em;
    padding: 0 15px;
}

.servicio p {
    padding: 0 20px 20px;
    text-align: left;
    margin: 0;
    flex-grow: 1;
}

.contenedor-servicios a.ref {
    text-decoration: none;
    color: inherit;
}
