/* Estilos Generales */
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;
}

/* Menú Hamburguesa */
.menu-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.8em;
    cursor: pointer;
    display: none; /* Oculto por defecto en desktop */
    padding: 10px;
    order: 3; /* Posiciona el botón al final */
}

.nav-menu {
    display: flex;
    transition: all 0.3s ease;
}

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);
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 10px;
    margin-top: 20px;
}

/* 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;
}

/* Secciones de servicios individuales */
section[id^="dialux"],
section[id^="As-Built"],
section[id^="construccion"], 
section[id^="electricas"],
section[id^="cctv"],
section[id^="domotica"]
{
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.contenedor-dialux,
.contenedor-As-Built,
.contenedor-construccion,
.contenedor-electricas,
.contenedor-cctv,
.contenedor-domotica {
    text-align: center;
    margin-bottom: 40px;
}

.contenedor-dialux h1,
.contenedor-As-Built h1,
.contenedor-construccion h1,
.contenedor-electricas h1,
.contenedor-cctv h1,
.contenedor-domotica h1{
    font-size: 2em;
    color: #33bd37;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #33bd37;
    display: inline-block;
}

.contenedor-dialux h3,
.contenedor-As-Built h3,
.contenedor-construccion h3 
.contenedor-electricas h3
.contenedor-cctv h3,
.contenedor-domotica h3{
    font-size: 1.4em;
    color: #555;
    margin-bottom: 20px;
}

.contenedor-dialux p,
.contenedor-As-Built p,
.contenedor-construccion p,
.contenedor-electricas p,
.contenedor-cctv p,
.contenedor-domotica p {
    text-align: justify;
    max-width: 800px;
    margin: 0 auto 20px;
    line-height: 1.7;
}

/* Imágenes */
.imagen {
    margin: 30px auto;
    max-width: 800px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.imagen img {
    width: 100%;
    height: auto;
    display: block;
}

/* Highlight sections */
.highlight {
    background-color: #f0f8ff;
    padding: 30px;
    border-radius: 10px;
    margin: 40px auto;
    max-width: 900px;
    text-align: left;
}

.highlight h3 {
    color: #33bd37;
    margin-top: 0;
    text-align: center;
    font-size: 1.5em;
}

.highlight ul {
    padding-left: 0;
    max-width: 800px;
    margin: 0 auto;
}

.highlight li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    list-style: none;
}

.highlight li::before {
    content: "•";
    color: #33bd37;
    font-size: 24px;
    position: absolute;
    left: 0;
    top: -3px;
}

.highlight li strong {
    color: #33bd37;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 40px auto;
}

.service-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    color: #33bd37;
    margin-top: 0;
}

/* Process Steps */
.process-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1000px;
    margin: 40px auto;
}

.step {
    flex: 1;
    min-width: 150px;
    text-align: center;
    margin-bottom: 20px;
}

.step-number {
    background-color: #33bd37;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: bold;
    font-size: 1.2em;
}

/* WhatsApp Float Button */
.float-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    text-decoration: none;
    transition: all 0.3s;
}

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

/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 50px;
}

/* Media Queries para el menú hamburguesa */
@media (max-width: 768px) {
    header {
        flex-direction: row;
        align-items: center;
        padding: 0.5em 1em;
    }

    .logo img {
        height: 80px;
    }

    header h1 {
        font-size: 1.3em;
        margin: 0;
        flex-grow: 1;
        text-align: center;
        order: 2;
    }

    .menu-toggle {
        display: block;
        order: 3;
    }

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

    .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;
    }

    /* Ajustes adicionales para móviles */
    #servicios h1 {
        font-size: 1.8em;
    }
    
    .contenedor-servicios {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .process-steps {
        gap: 10px;
    }
    
    .step {
        min-width: 120px;
    }
    
    .highlight {
        padding: 20px;
    }
    
    .float-whatsapp {
        width: 50px;
        height: 50px;
        font-size: 25px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.1em;
    }
    
    .logo img {
        height: 60px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .step {
        min-width: 100px;
    }
}

@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
    
    .nav-menu {
        display: flex !important;
    }
}
/*ff*/
/* Agregar al archivo CSS existente */
.scenes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.scene-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.scene-card:hover {
    transform: translateY(-5px);
}

.scene-card h4 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.scene-card p {
    color: #7f8c8d;
    font-size: 0.9em;
}

/* Ajustes para el grid de servicios domóticos */
.services-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
