/* =============================================================
   QUBO.smart - CSS INTEGRAL CORREGIDO (BOTONES RESTAURADOS)
   ============================================================= */

/* --- ESTRUCTURA Y ANTI-DESPLAZAMIENTO --- */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  font-family: 'Montserrat', sans-serif;
  color: #0A0F1A;
  background: #ffffff;
  scroll-behavior: smooth;
}

/* --- HEADER --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 160px;
    background: #F3F4F6; 
    z-index: 10000;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #D1D5DB;
    box-sizing: border-box;
}

.container.nav {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.logo { height: 140px; width: auto; display: block; }

nav a {
    color: #1F2937; 
    text-decoration: none;
    margin-left: 20px;
    font-weight: 600;
}

/* --- BOTÓN ASESORAMIENTO (AZUL NAV) --- */
.btn-nav {
    background: #00C2D1 !important;
    color: white !important;
    padding: 12px 24px !important;
    border-radius: 30px !important;
    text-decoration: none !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    display: inline-block !important;
    margin-left: 20px;
}

/* --- HERO & SLIDER --- */
.hero {
    position: relative;
    width: 100%;
    height: 85vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
    background: #000;
    margin-top: 120px;
    overflow: hidden;
    box-sizing: border-box;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s;
    z-index: 1;
}

.slide.active { opacity: 1 !important; }

.hero-content {
    position: relative;
    z-index: 10;
    color: #ffffff;
}

.hero-content h1 { font-size: clamp(32px, 5vw, 56px); margin-bottom: 10px; }

.cert { 
    display: block; 
    padding-bottom: 2.5rem; 
    color: #00C2D1 !important; 
    font-weight: 600; 
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

/* BOTÓN AGENDAR ASESORAMIENTO (EN EL HERO) */
.btn-primary {
    background: #00C2D1 !important;
    color: white !important;
    padding: 18px 45px !important;
    border-radius: 40px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    display: inline-block !important;
    border: none;
    transition: 0.3s ease;
}

/* --- SECCIÓN CLIENTES --- */
#clientes {
    text-align: center !important;
    padding: 80px 10%;
    background: #0A0F1A;
    color: white;
    box-sizing: border-box;
}

.clientes-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.clientes-list span { color: #00C2D1 !important; font-weight: 600; }

/* --- SECCIÓN BLUE --- */
.section.blue { background: #0B2D4D; color: white; padding: 60px 10%; box-sizing: border-box; }
.cert-block { display: flex; align-items: center; justify-content: center; gap: 50px; margin: 0 auto; max-width: 1100px; flex-wrap: wrap; }
.cert-block img { width: 200px !important; height: auto; }

/* --- GRILLA DE FOTOS --- */
.services-visual-premium { background: #0f0f0f; padding: 80px 5%; box-sizing: border-box; }
.visual-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card { position: relative; height: 350px; border-radius: 12px; overflow: hidden; }
.service-card img { width: 100%; height: 100%; object-fit: cover; }
.service-card .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    display: flex;
    align-items: flex-end;
    padding: 25px;
}
.service-card .overlay h3 { color: #ffffff !important; margin: 0; }

/* --- BANNER OBRA (BOTÓN WHATSAPP VERDE RESTAURADO) --- */
.obra-banner {
    padding: 80px 10%;
    background: #f3f4f6;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

/* Esta es la clase que le devuelve la forma al botón verde */
.btn-whatsapp-obra {
    background: #25D366 !important;
    color: white !important;
    padding: 16px 40px !important;
    border-radius: 40px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    margin-top: 20px !important;
    display: inline-block !important;
}

/* --- PRESUPUESTO (BOTÓN ENVIAR RESTAURADO) --- */
#presupuesto { padding: 80px 10%; background: #f9f9f9; box-sizing: border-box; }
.qubo-form {
    background: #fff;
    padding: 45px;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
}
.form-group { text-align: left; margin-bottom: 20px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 6px; box-sizing: border-box;
}

/* Estilo para el botón Enviar del formulario */
.btn-submit {
    background: #25D366 !important;
    color: white !important;
    padding: 16px 40px !important;
    border-radius: 40px !important;
    border: none !important;
    font-weight: 700 !important;
    font-family: 'Montserrat', sans-serif !important;
    cursor: pointer !important;
    display: inline-block !important;
    width: 100% !important; /* Para que sea cómodo en móviles */
    text-transform: uppercase !important;
}

/* --- MÓVIL --- */
@media (max-width: 768px) {
    header { height: 110px !important; }
    .logo { height: 90px !important; }
    .container.nav { padding: 0 20px; }

    .menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 35px;
        height: 35px;
        cursor: pointer;
    }

    .menu-toggle span { width: 100%; height: 3px; background: #1F2937; border-radius: 2px; }

    #nav-menu {
        position: fixed;
        top: 0;
        right: -100%; 
        width: 85%;
        height: 100vh;
        background: #0A0F1A;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: 0.4s ease;
        z-index: 10500;
    }

    #nav-menu.active { right: 0; }
    #nav-menu a { color: white !important; font-size: 1.3rem; margin: 0; }

    .hero { height: 80vh; padding: 0 5%; margin-top: 110px; text-align: center; justify-content: center; }
    .hero-content h1 { font-size: 28px; }
    
    .visual-inner { grid-template-columns: 1fr; }
    .clientes-list { flex-direction: column; }
}