/* =========================================
   1. CONFIGURACIÓN BASE Y VARIABLES
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
    /* Marca */
    --cad-blue: #1F2B4D; /* Azul Marino Corporativo */
    --cad-green: #70BC45; /* Verde Acción/Éxito */
    /* Variaciones */
    --cad-blue-dark: #151e36;
    --cad-green-dark: #5da137;
    /* Neutros */
    --bg-light: #F4F6F9;
    --text-dark: #2C3E50;
    --text-muted: #6c757d;
}

html {
    font-size: 16px;
    /* MEJORA: Desplazamiento suave al hacer clic en anclas (#formulario) */
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0;
}

/* =========================================
   2. LAYOUT Y ESTRUCTURA (Sticky Footer)
   ========================================= */
/* Empuja el footer hacia abajo si hay poco contenido */
main[role="main"] {
    flex: 1 0 auto;
}

/* Wrapper fluido: Ocupa todo el ancho pero mantiene margen de seguridad */
.layout-fluid-wrapper {
    width: 100%;
    padding-left: 2rem;
    padding-right: 2rem;
    margin-right: auto;
    margin-left: auto;
}

@media (max-width: 768px) {
    .layout-fluid-wrapper {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* =========================================
   3. TIPOGRAFÍA Y COLORES DE MARCA
   ========================================= */
h1, h2, h3, h4, h5, h6 {
    color: var(--cad-blue);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.text-highlight {
    color: var(--cad-green) !important;
}

.text-brand {
    color: var(--cad-blue) !important;
}

/* =========================================
   4. COMPONENTES: BOTONES Y TARJETAS
   ========================================= */
/* Botón Principal (Verde) */
.btn-cta {
    background-color: var(--cad-green);
    border-color: var(--cad-green);
    color: white;
    font-weight: 600;
    padding: 10px 25px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

    .btn-cta:hover {
        background-color: var(--cad-green-dark);
        border-color: var(--cad-green-dark);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(112, 188, 69, 0.3);
    }

/* Botón Bloque (Para el formulario) */
.btn-cta-block {
    display: block;
    width: 100%;
    font-weight: 700;
    padding: 0.8rem 1rem;
    font-size: 1.1rem;
}

/* Tarjetas de Características */
.card-custom {
    border: none;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    background: white;
}

    .card-custom:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    }

.card-icon {
    font-size: 2rem;
    color: var(--cad-green);
    margin-bottom: 1rem;
}

/* MEJORA: Estilo de Logos en escala de grises (Sección Confianza) */
.grayscale-logos {
    opacity: 0.6;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

    .grayscale-logos:hover {
        opacity: 1;
        filter: grayscale(0%); /* Color al pasar el ratón */
    }

/* =========================================
   5. FORMULARIOS (Global)
   ========================================= */
/* Pone el borde verde a CUALQUIER input al escribir */
.form-control:focus, .form-select:focus {
    border-color: var(--cad-green);
    box-shadow: 0 0 0 0.25rem rgba(112, 188, 69, 0.25);
}

/* Tarjeta del Formulario Final (Fijo y Compacto) */
.form-card-fixed {
    background: white;
    color: var(--text-dark);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    max-width: 480px; /* Ancho máximo para elegancia */
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.form-check-input:checked {
    background-color: var(--cad-green);
    border-color: var(--cad-green);
}

.legal-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
    border-top: 1px solid #e9ecef;
    padding-top: 0.75rem;
    margin-top: 1rem;
    text-align: justify;
}

/* =========================================
   6. SECCIONES ESPECÍFICAS
   ========================================= */
/* Cabecera Hero Expandida */
.hero-expanded {
    background-color: var(--cad-blue);
    background: linear-gradient(135deg, var(--cad-blue) 0%, #151e36 100%);
    min-height: 60vh; /* Altura visualmente atractiva */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    border-radius: 0 0 20px 20px;
    padding: 4rem 0;
}

.bg-light-section {
    background-color: var(--bg-light);
    padding: 60px 0;
}

/* Sección final que contiene el formulario */
.shared-form-section {
    background-color: var(--cad-blue);
    color: white;
    border-radius: 20px 20px 0 0;
    padding: 4rem 0;
    margin-top: 4rem;
}

/* =========================================
   7. FOOTER Y NAV (Ajustes finales)
   ========================================= */
footer {
    flex-shrink: 0;
    position: relative !important;
    width: 100%;
    padding: 1.5rem 0;
    background-color: white;
    color: var(--text-dark);
    border-top: 1px solid #dee2e6;
}

    footer a {
        color: var(--cad-blue);
        text-decoration: none;
        font-weight: 500;
        transition: color 0.2s;
    }

        footer a:hover {
            color: var(--cad-green);
            text-decoration: underline;
        }

/* MEJORA: Links del Navbar */
.navbar-nav .nav-link {
    transition: color 0.2s;
}

    .navbar-nav .nav-link:hover {
        color: var(--cad-green) !important;
    }
