/* General */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body { color: #333; line-height: 1.6; scroll-behavior: smooth; }

/* Navegación */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.logo { font-size: 1.5rem; font-weight: bold; color: #2c3e50; }
.logo span { color: #e67e22; } /* Color naranja corporativo similar a Reforcam */

.nav-links { list-style: none; display: flex; align-items: center; }
.nav-links li { margin-left: 20px; }
.nav-links a { text-decoration: none; color: #333; font-weight: 400; }

.btn-cta {
    background: #e67e22;
    color: white !important;
    padding: 8px 15px;
    border-radius: 5px;
}

/* Hero Section */
.hero {
    height: 80vh;
    /* Hemos unido el degradado y la imagen en una sola instrucción */
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                url('Gemini_Generated 1.png'); 
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: 60px;
}

.hero h1 { font-size: 3rem; margin-bottom: 10px; }

.btn-primary {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background: #e67e22;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

/* Servicios */
.services { padding: 80px 5%; text-align: center; background: #f9f9f9; }
.services h2 { margin-bottom: 40px; font-size: 2rem; }

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.card:hover { transform: translateY(-10px); }

/* Contacto */
.contact { padding: 80px 5%; text-align: center; }
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.contact-form input, .contact-form textarea {
    margin-bottom: 15px;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.btn-submit {
    background: #2c3e50;
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 5px;
}

footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 20px;
}

/* --- RESPONSIVE / MENU HAMBURGUESA --- */

@media screen and (max-width: 768px) {
    .nav-links {
        display: none; /* Escondemos el menú normal */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px;
        left: 0;
        background-color: #fff;
        text-align: center;
    }

    .nav-links.active {
        display: flex; /* Se muestra al hacer click */
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    /* Estilo de las 3 rayitas (Hamburguesa) */
    .menu-toggle {
        display: block;
        cursor: pointer;
    }

    .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        background-color: #333;
        transition: all 0.3s ease-in-out;
    }

    /* Animación a "X" cuando está activo */
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* Ajuste del Hero para móviles */
    .hero h1 { font-size: 2rem; }
}

/* Ocultar el botón en pantallas grandes */
@media screen and (min-width: 769px) {
    .menu-toggle { display: none; }
}

/* Estilos para el botón de WhatsApp */
.whatsapp-btn {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366; /* Verde oficial de WhatsApp */
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-btn img {
    width: 35px; /* Tamaño del icono */
}

.whatsapp-btn:hover {
    transform: scale(1.1); /* Se hace un poco más grande al pasar el ratón */
    background-color: #128c7e; /* Verde un poco más oscuro */
}

/* Ajuste para móviles (para que no tape contenido importante) */
@media screen and (max-width: 768px) {
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-btn img {
        width: 30px;
    }
}