/* Variables de color de GR Montajes */
:root {
    --gr-green: #0A5A38;
    --gr-red: #D32F2F;
    --gr-dark: #1A1A1A;
}
 
/* Configuraciones Base */
body {
    font-family: 'Inter', sans-serif;
    padding-top: 75px; /* Compensa la altura del header fijo */
}

/* Efecto suave para cuando el JS agrega la clase al scrollear */
#header {
    background-color: #ffffff; /* Fondo blanco sólido */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); /* Sombra sutil para que se despegue del fondo */
    transition: all 0.3s ease-in-out;
}

@media (max-width: 991px) {
    .navbar-collapse {
        background-color: #ffffff;
        padding: 1rem;
        border-radius: 0 0 10px 10px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
}

/* Animación sutil en los links al pasar el mouse */
.nav-link {
    transition: color 0.2s ease;
    position: relative;
}

.nav-link:hover, .nav-link.is-active {
    color: var(--gr-red) !important;
}

/* ─── Botón Flotante WhatsApp ───────────────────────────────────────── */
.btn-flotante-wsp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366; /* Color oficial de WhatsApp */
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1050; /* Lo mantiene por encima de todo */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-flotante-wsp:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    color: white;
}

/* ─── Botón Flotante Presupuesto ────────────────────────────────────── */
.btn-flotante-presupuesto {
    position: fixed;
    bottom: 105px; 
    right: 30px;
    background-color: var(--gr-red); 
    color: white;
    padding: 10px 20px;
    border-radius: 30px; 
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1050;
    text-decoration: none;
    
    /* ACÁ ESTÁ LA MAGIA PARA OCULTARLO: */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px); /* Arranca un poquito más abajo */
    
    /* Agregamos opacity, visibility y transform a la transición para que sea suave */
    transition: all 0.4s ease;
}

/* Esta es la clase que el JavaScript le va a agregar cuando bajes */
.btn-flotante-presupuesto.mostrar {
    opacity: 1;
    visibility: visible;
    transform: translateY(0); /* Sube a su posición original */
}


/* ─── Hero ───────────────────────────────────────────────────────────────------------------------*/
.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: calc(100dvh - 85px);
    padding: 4rem 0 5rem;
    color: #fff;
    overflow: hidden;
    /* Imagen de fondo: reemplazar hero-bg.jpg cuando esté disponible */
    background-color: var(--gr-dark);
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(
        120deg,
        rgba(10, 90, 56, 0.88) 0%,
        rgba(26, 26, 26, 0.72) 55%,
        rgba(26, 26, 26, 0.82) 100%
    );
}

.hero .container {
    z-index: 1;
}

.hero__slogan {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    border-left: 3px solid var(--gr-green);
    padding-left: 1rem;
    display: inline-block;
}

.hero__title {
    line-height: 1.12;
    text-wrap: balance;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.hero__subtitle {
    max-width: 38rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.65;
}

/* CTA principal: rojo corporativo exclusivo para acciones */
.btn-cta {
    background-color: var(--gr-red);
    border: 2px solid var(--gr-red);
    color: #fff;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.btn-cta:hover,
.btn-cta:focus-visible {
    background-color: #b71c1c;
    border-color: #b71c1c;
    color: #fff;
}

.btn-cta:active {
    transform: scale(0.98);
}

.hero .btn-outline-light {
    border-width: 2px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.hero .btn-outline-light:hover,
.hero .btn-outline-light:focus-visible {
    background-color: #fff;
    color: var(--gr-dark);
}

@media (max-width: 991.98px) {
    .hero {
        padding: 3rem 0 4rem;
        text-align: center;
    }

    .hero__slogan {
        border-left: none;
        padding-left: 0;
        border-bottom: 2px solid var(--gr-green);
        padding-bottom: 0.5rem;
    }

    .hero__title {
        font-size: clamp(1.85rem, 6vw, 2.5rem);
    }
}

/* Seccion Servicios: Estilo para las cards de servicios ---------------------------------------------------*/
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

/* Color corporativo para los íconos (usando tu verde) */
.text-primary {
    color: var(--gr-green) !important; 
}

/* Seccion Nosotros: Estilo para la imagen -----------------------------------------------------------------*/
.seccion-nosotros-moderna {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/services/equipo.avif');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Esto hace que la foto quede fija al hacer scroll */
}

.card-moderna {
    background: rgba(255, 255, 255, 0.1); /* Vidrio esmerilado */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    color: white;
    transition: 0.5s;
}

.card-moderna i {
    font-size: 2.5rem;
    color: var(--gr-green);
    display: block;
    margin-bottom: 10px;
}

.card-moderna:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

/* Sección Banner CTA */
.cta-whatsapp {
    background-color: var(--gr-green); /* Vincula directamente con tu color verde oscuro */
}

.cta-descripcion {
    max-width: 680px; /* Limita el ancho para que el texto sea idéntico al de tu captura */
    font-size: 1.15rem;
    line-height: 1.6;
}

/* Estilo del Botón de WhatsApp */
.btn-whatsapp {
    background-color: #25D366; /* El verde brillante exacto de WhatsApp */
    color: #ffffff !important;
    font-weight: 500;
    border: none;
    transition: all 0.3s ease;
}

/* Efectos modernos al pasar el mouse */
.btn-whatsapp:hover {
    background-color: #20ba5a; /* Un tono sutilmente más oscuro al hacer hover */
    transform: translateY(-2px); /* Pequeña elevación muy elegante */
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2) !important;
}

.btn-whatsapp:active {
    transform: translateY(0); /* Vuelve a su posición original al hacer clic */
}

/* Estilos Generales del Footer ----------------------------------------------------------------------*/
.footer-gr {
    background-color: var(--gr-green); /* Tu color verde oscuro principal */
}

/* Títulos de columnas del footer */
.small-title {
    font-size: 0.9rem;
    letter-spacing: 1px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
    display: inline-block;
}

/* Links interactivos del menú del footer */
.footer-links a {
    transition: color 0.2s ease, padding-left 0.2s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #ffffff !important;
    padding-left: 4px; /* Pequeño desplazamiento dinámico al pasar el mouse */
}

/* Iconos de contacto */
.footer-contacto-info i {
    color: #25D366 !important; /* Resalta los iconos con verde brillante */
}


/* Estilos para el Formulario de Contacto */
.form-control, .form-select {
    border: 1px solid #ced4da;
    padding: 0.6rem 0.75rem;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Efecto Focus más limpio que el azul por defecto */
.form-control:focus, .form-select:focus {
    border-color: var(--gr-green);
    box-shadow: 0 0 0 0.25rem rgba(0, 74, 42, 0.15); /* Cambia según tu verde */
}

/* Botón de envío personalizado */
.btn-gr-submit {
    background-color: var(--gr-green); /* Tu color verde */
    color: #ffffff;
    border: none;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-gr-submit:hover {
    background-color: #00361e; /* Un verde un poco más oscuro */
    color: #ffffff;
}

.btn-gr-submit:active {
    transform: scale(0.98);
}

/* Estilos de la columna de datos derecha */
.contacto-icon-box {
    width: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hover-link-contacto:hover {
    color: var(--gr-green) !important;
    text-decoration: underline !important;
}
