:root {
    --primary-color: #007BFF;
    --secondary-color: #333;
    --background-color: #f8f9fa;
    --text-color: #555;
    --light-gray: #e9ecef;
    --magic-blue: #337ab7;
    --magic-purple: #8b5cf6;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--background-color);
}

.container {
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
    padding: 0 2rem;
}

.header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
}

.logo img {
    height: 50px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--magic-blue);
}

.hero {
    background-image: url('https://i.ibb.co/YyY78N4/hero-image.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.hero-content {
    z-index: 1;
    animation: fadeIn 2s ease-in-out;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: slideInFromTop 1s ease-out;
}

.hero p {
    font-size: 1.5rem;
    animation: slideInFromBottom 1s ease-out;
}

.cta-button {
    background-color: var(--magic-blue);
    color: #fff;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: transform 0.3s ease, background-color 0.3s ease;
    margin-top: 2rem;
    display: inline-block;
}

.cta-button:hover {
    background-color: var(--magic-purple);
    transform: scale(1.05);
}

.section {
    padding: 5rem 5%;
    background-color: #fff;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--magic-purple);
}

.content-box {
    max-width: 800px;
    margin: auto;
    text-align: center;
    padding: 2rem;
    background: var(--light-gray);
    border-radius: 10px;
}

.content-box p {
    font-size: 1.1rem;
    color: var(--secondary-color);
}

.service-category {
    margin-bottom: 4rem;
    text-align: center;
}

.service-category h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--magic-blue);
}

.service-gallery img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.5s ease;
}

.service-gallery img:hover {
    transform: scale(1.02);
}

.service-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.service-item {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    width: 200px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
}

.service-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.service-item span {
    font-weight: bold;
    color: var(--secondary-color);
}

.contact-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 900px;
    margin: auto;
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-info {
    text-align: center;
}

.contact-info h3 {
    color: var(--magic-blue);
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-info i {
    color: var(--magic-purple);
    margin-right: 10px;
}

.social-links {
    margin-top: 1.5rem;
}

.social-links a {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--magic-purple);
}

.footer {
    background: var(--secondary-color);
    color: #fff;
    text-align: center;
    padding: 1rem;
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInFromTop {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideInFromBottom {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@media (min-width: 768px) {
    .contact-container {
        flex-direction: row;
        text-align: left;
    }
}
/* --- Estilos para el menú móvil --- */

.menu-toggle {
    display: none; /* Oculto por defecto en escritorio */
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--secondary-color);
    cursor: pointer;
    z-index: 1001; /* Asegura que esté por encima de otros elementos */
}

/* Media query para pantallas más pequeñas (móviles y tabletas) */
@media (max-width: 768px) {
    .nav-bar {
        padding: 1rem 5%;
        position: relative; /* Para posicionar el botón de toggle */
    }

    .nav-links {
        position: fixed; /* Fija el menú móvil */
        top: 0;
        left: -100%; /* Oculta el menú fuera de la pantalla */
        width: 70%; /* Ancho del menú desplegado */
        height: 100vh; /* Altura completa de la ventana */
        background-color: #fff;
        flex-direction: column; /* Apila los enlaces verticalmente */
        padding-top: 5rem; /* Espacio para el logo/header */
        box-shadow: 2px 0 10px rgba(0,0,0,0.2);
        transition: left 0.3s ease-in-out; /* Animación de deslizamiento */
        z-index: 999; /* Debajo del botón de toggle si es necesario */
        align-items: flex-start; /* Alinea los ítems a la izquierda */
    }

    .nav-links.active {
        left: 0; /* Muestra el menú al activar */
    }

    .nav-links li {
        width: 100%;
        text-align: left;
        margin: 0; /* Elimina márgenes extra */
    }

    .nav-links a {
        display: block; /* Para que el enlace ocupe todo el ancho */
        padding: 1rem 1.5rem;
        border-bottom: 1px solid var(--light-gray); /* Separador entre enlaces */
        color: var(--secondary-color);
    }

    .nav-links a:hover {
        background-color: var(--light-gray);
        color: var(--magic-blue);
    }

    .menu-toggle {
        display: block; /* Muestra el botón de hamburguesa */
    }
}

/* Estilos para los mensajes del formulario */
.form-message {
    text-align: center;
    margin-top: 1rem;
    padding: 0.8rem;
    border-radius: 5px;
    font-weight: bold;
    opacity: 0; /* Oculto por defecto */
    transition: opacity 0.3s ease-in-out;
}

.form-message.sending {
    background-color: #f0ad4e; /* Amarillo para 'enviando' */
    color: #333;
    opacity: 1;
}

.form-message.success {
    background-color: #28a745; /* Verde para éxito */
    color: #fff;
    opacity: 1;
}

.form-message.error {
    background-color: #dc3545; /* Rojo para error */
    color: #fff;
    opacity: 1;
}