:root {
    --bg-dark: #2D323E;
    --bg-card: #363d4a;
    --accent-orange: #E69530;
    --text-white: #FFFFFF;
    --text-gray: #B0B3B8;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* --- BARRA DE NAVEGACIÓN (Desktop) --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px; 
    padding: 0 5%; 
    background-color: rgba(45, 50, 62, 0.98);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo-container {
    height: 100%;
    display: flex;
    align-items: center;
}

.logo-container img {
    height: 90%; 
    width: auto; 
    object-fit: contain; 
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 1rem; 
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover { color: var(--accent-orange); }

/* Estilo del botón de Contacto en Desktop (Borde, fondo transparente) */
.btn-contact {
    padding: 0.7rem 1.5rem;
    border: 2px solid var(--accent-orange);
    color: var(--accent-orange);
    border-radius: 5px;
    font-weight: 600;
    font-size: 1rem; 
    background-color: transparent; /* Asegurar que sea transparente en desktop */
}

.btn-contact:hover { background-color: var(--accent-orange); color: var(--text-white); }

/* --- HERO SECTION & CTA BUTTONS --- */
.hero {
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* PROPIEDAD CLAVE: Asegura que el texto y los elementos inline/inline-block estén centrados */
    text-align: center; 
    padding: 0 20px;
    background: radial-gradient(circle at center, #3a4150 0%, var(--bg-dark) 70%);
}

.hero h1 { font-size: 3.5rem; margin-bottom: 1rem; font-weight: 700; }
.hero span { color: var(--accent-orange); }
.hero p { font-size: 1.2rem; color: var(--text-gray); max-width: 700px; margin-bottom: 2.5rem; }

.cta-button {
    background-color: var(--accent-orange); color: white; padding: 1rem 2.5rem;
    border-radius: 50px; font-size: 1.1rem; font-weight: 600;
    box-shadow: 0 4px 15px rgba(230, 149, 48, 0.3);
    border: none; 
    cursor: pointer;
    transition: 0.3s ease;
}
.cta-button:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(230, 149, 48, 0.5); }

/* --- SECCIÓN NOSOTROS (ABOUT US) --- */
.about-us {
    padding: 5rem 10%;
    background-color: #262a34; 
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.about-content p {
    margin-bottom: 1.5rem;
    color: var(--text-gray);
    font-size: 1.05rem;
}

.about-content h3 {
    color: var(--accent-orange);
    font-size: 1.8rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    font-weight: 600;
    /*border-bottom: 2px solid rgba(230, 149, 48, 0.3);*/
    padding-bottom: 0.5rem;
}

.brochure-button {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.cta-button {
    /* Mueve el botón 15 píxeles hacia abajo */
    
    padding: 10px 20px;

}
/* --- SERVICES SECTION & TITLES --- */
.services { padding: 5rem 10%; }
.section-title { text-align: center; margin-bottom: 4rem; }
.section-title h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.section-title .line { width: 80px; height: 4px; background-color: var(--accent-orange); margin: 0 auto; }
.services-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 2rem; 
}

.service-card {
    background-color: var(--bg-card); padding: 2.5rem; border-radius: 10px; transition: 0.3s;
    border-left: 3px solid transparent;
    text-align: center; 
}
.service-card:hover { transform: translateY(-10px); border-left: 3px solid var(--accent-orange); box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.icon { font-size: 2.5rem; color: var(--accent-orange); margin-bottom: 1.5rem; display: block; }
.service-card h3 { margin-bottom: 1rem; font-size: 1.5rem; }
.service-card p { color: var(--text-gray); font-size: 0.95rem; }

/* --- ESTILOS PARA LA SECCIÓN DE CONTACTO --- */
.contact-us {
    padding: 5rem 10%;
    background-color: var(--bg-card); 
}

.contact-us .section-title {
    margin-bottom: 2rem;
}

.contact-us .subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-top: 10px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    padding: 1rem;
    border: 1px solid #444b58;
    border-radius: 5px;
    background-color: #2D323E; 
    color: var(--text-white);
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent-orange);
    outline: none;
}

.contact-form textarea {
    resize: vertical;
}

/* --- FOOTER --- */
footer { 
    background-color: #232730; 
    padding: 3rem 10%; 
    text-align: center; 
    border-top: 1px solid rgba(255,255,255,0.05); 
}
footer p { color: var(--text-gray); font-size: 0.9rem; }


/* ==================================== */
/* === ESTILOS PARA EL MENÚ HAMBURGUESA === */
/* ==================================== */

.menu-toggle {
    display: none; 
}

.menu-icon {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-white);
    display: none; 
}

/* ==================================== */
/* === MEDIA QUERIES PARA RESPONSIVIDAD === */
/* ==================================== */

/* Tabletas (Ancho máximo: 992px) */
@media (max-width: 992px) {
    .navbar, .services, .about-us, .contact-us, footer {
        padding-left: 5%;
        padding-right: 5%;
    }
    
    .hero h1 { font-size: 3rem; }
    .hero p { font-size: 1.1rem; }
    .section-title h2 { font-size: 2rem; }
    .about-content h3 { font-size: 1.6rem; }
    .service-card h3 { font-size: 1.3rem; }
}


/* Móviles (Ancho máximo: 768px y menos) */
@media (max-width: 768px) {
    /* Navbar: pasa a ser más compacta */
    .navbar { 
        height: 70px; 
        flex-wrap: wrap; 
        justify-content: space-between; 
        align-items: center;
        padding: 0 5%;
    }
    
    .logo-container img { 
        height: 70%; 
    } 

    /* Mostrar el icono de menú hamburguesa */
    .menu-icon {
        display: block; 
    }

    /* Ocultar elementos de navegación por defecto */
    .nav-links { 
        display: none; 
        flex-direction: column; 
        width: 100%; 
        text-align: center;
        padding: 0; 
        gap: 0;
        
        /* FONDO SÓLIDO PARA EL MENÚ */
        background-color: var(--bg-dark); 
        padding-bottom: 10px; 
    } 

    .nav-links li {
        padding: 10px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    /* Estilo por defecto del botón de contacto en móvil (oculto en la fila superior) */
    .btn-contact {
        display: none; 
        width: 90%; 
        margin: 10px auto 20px;
        text-align: center;
    }
    
    /* Mostrar el menú completo cuando el checkbox está marcado */
    .menu-toggle:checked ~ .nav-links {
        display: flex; 
        order: 1; 
    }
    
    /* Mostrar el botón de contacto debajo de los enlaces cuando el menú está abierto */
    .menu-toggle:checked ~ .btn-contact {
        display: block; 
        order: 2; 
        
        /* === CAMBIO CLAVE: FONDO SÓLIDO PARA EL BOTÓN EN EL MENÚ === */
        background-color: var(--accent-orange); 
        color: var(--text-white); 
        border: none; /* Eliminar el borde ya que tiene fondo sólido */
        padding: 1rem 1.5rem; /* Ajustar padding para que sea más grande */
    }
    
    /* Asegurar que el hover siga funcionando en móvil */
    .menu-toggle:checked ~ .btn-contact:hover {
         background-color: #d1882b; /* Tono más oscuro de naranja al hacer hover */
         transform: none; /* Quitamos la animación de subir */
    }
    
    
    
    
    /* HERO y otras secciones */
    .hero {
        height: 80vh; 
    }

    .hero h1 { 
        font-size: 2.2rem; 
    }
    .hero p { 
        font-size: 1rem; 
        max-width: 90%;
    }

    /* Ajustes de padding en secciones */
    .services, .about-us, .contact-us {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .section-title h2 { 
        font-size: 1.8rem; 
    }
    
    .about-content p, .service-card p {
        font-size: 0.9rem;
    }
    
    .about-content h3 {
        font-size: 1.4rem;
        margin-top: 2rem;
    }
}