/* Variables de Colores */
:root {
    --primary: #f1c40f; /* Amarillo Electricidad */
    --primary-dark: #d4ac0d;
    --dark: #2c3e50;    /* Azul Oscuro Industrial */
    --darker: #1a252f;
    --light: #ecf0f1;
    --gray: #95a5a6;
    --text: #333;
    --white: #fff;
}

/* Reset Básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    color: var(--text);
    background-color: var(--white);
}

a { text-decoration: none; }
ul { list-style: none; }

/* Contenedor utilitario */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- HEADER --- */
.header {
    background-color: var(--darker);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: bold;
}

.logo span { color: var(--primary); }
.logo i { color: var(--primary); margin-right: 5px;}

.nav-menu a {
    color: var(--light);
    margin-left: 20px;
    font-weight: 500;
    transition: 0.3s;
}

.nav-menu a:hover { color: var(--primary); }

.btn-nav {
    background-color: var(--primary);
    color: var(--darker) !important;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold !important;
}

/* --- HERO SECTION --- */
.hero {
    background: url('https://images.unsplash.com/photo-1621905251189-08b45d6a269e?q=80&w=2069&auto=format&fit=crop') no-repeat center center/cover;
    height: 85vh; /* Ocupa casi toda la pantalla */
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
}

/* Oscurecer la imagen de fondo para leer el texto */
.hero .overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.65);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.badge {
    background-color: var(--primary);
    color: var(--darker);
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #ddd;
}

/* Botones Hero */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: 0.3s;
    margin: 5px;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--darker);
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--darker);
}

/* --- SERVICIOS --- */
.section { padding: 80px 0; }
.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: var(--dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--light);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s;
    border-bottom: 4px solid var(--primary);
}

.card:hover { transform: translateY(-5px); }

.icon-box {
    font-size: 3rem;
    color: var(--dark);
    margin-bottom: 20px;
}

.card h3 { margin-bottom: 15px; color: var(--dark); }

/* --- CONFIANZA --- */
.trust {
    background-color: var(--dark);
    color: var(--white);
}

.trust-text { text-align: center; max-width: 700px; margin: 0 auto; }
.trust-text h2 { margin-bottom: 30px; font-size: 2.2rem;}
.trust-text ul { text-align: left; margin-bottom: 30px; display: inline-block;}
.trust-text li { margin-bottom: 15px; font-size: 1.1rem; }
.trust-text i { color: var(--primary); margin-right: 10px; }

/* --- CONTACTO --- */
.contact-box {
    text-align: center;
    background-color: var(--white);
    border: 2px solid var(--light);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    color: var(--dark);
    font-weight: bold;
}

.contact-item i { color: var(--primary); font-size: 1.5rem; }

/* --- FOOTER --- */
.footer {
    background-color: var(--darker);
    color: #7f8c8d;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}

/* --- WHATSAPP FLOTANTE --- */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #FFF;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: 0.3s;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
}

/* --- RESPONSIVE (CELULAR) --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .nav-menu { display: none; } /* Menú simplificado para móvil */
    .hero-buttons { display: flex; flex-direction: column; }
    .btn { width: 100%; margin: 5px 0; }
    .contact-methods { flex-direction: column; }
}