        :root {
            --kontally: #1f3d82;
            --header-offset: 120px;
        }

        @@media (min-width: 768px) {
            :root {
                --header-offset: 132px;
            }
        }

        /* ===== Header fijo ===== */
        .header-gradient {
            background: linear-gradient(180deg, #dbeafe 0%, #ffffff 100%);
            min-height: 100px;
            transition: all 0.3s ease;
        }

        .text-kontally-blue {
            color: var(--kontally);
        }

        body.has-fixed-header {
            padding-top: var(--header-offset);
        }

        /* ===== Estilos del formulario ===== */
        .form-container {
            border-radius: 8px;
            padding: 1.75rem;
            background: white;
            box-shadow: 0 2px 12px rgba(0,0,0,0.08);
        }

        /* Inputs más compactos */
        .form-container .form-control,
        .form-container .form-select {
            padding: 0.5rem 0.75rem;
            font-size: 0.95rem;
        }

        .optional-fields {
            display: none;
            margin-top: 20px;
            padding-top: 20px;
            border-top: 1px solid #dee2e6;
        }

        .optional-fields.show {
            display: block;
        }

        .toggle-btn {
            cursor: pointer;
            color: var(--kontally);
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            margin-bottom: 15px;
            font-weight: 500;
        }

            .toggle-btn:hover {
                text-decoration: underline;
            }

        .toggle-icon {
            transition: transform 0.3s ease;
        }

            .toggle-icon.rotate {
                transform: rotate(180deg);
            }

        .title-kontally {
            color: var(--kontally);
            font-weight: 600;
            font-size: 2.5rem;
            line-height: 1.2;
            margin-bottom: 2.5rem;
        }

        .check-item {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 0.5rem;
        }

            .check-item i {
                color: var(--kontally);
                font-size: 1.3rem;
                flex-shrink: 0;
            }

            .check-item p {
                font-size: 1rem;
                color: #333;
                margin: 0;
            }

        .description-text {
            margin-top: 2.5rem;
            color: #333;
        }

            .description-text .bold-text {
                font-weight: 700;
                display: block;
                margin-bottom: 0.5rem;
            }

        .btn-kontally {
            background: var(--kontally);
            color: white;
            padding: 0.75rem 2rem;
            border: none;
            border-radius: 8px;
            font-weight: 600;
            width: 100%;
        }

            .btn-kontally:hover {
                background: #163166;
                color: white;
            }

            .btn-kontally:disabled {
                background: #6c757d;
                cursor: not-allowed;
            }

        /* Reducir espaciado entre campos */
        .form-container .mb-3 {
            margin-bottom: 0.6rem !important;
        }

        .form-container .row {
            margin-bottom: 0;
        }

        .form-container .form-label {
            margin-bottom: 0.1rem;
            font-size: 0.9rem;
            font-weight: 400;
        }

        /* Títulos de sección */
        .section-title {
            color: var(--kontally);
            font-size: 1rem;
            font-weight: 600;
            margin-bottom: 0.6rem;
            margin-top: 0;
        }

        /* Checkbox de privacidad */
        .privacy-checkbox {
            font-size: 0.85rem;
            line-height: 1.4;
        }

            .privacy-checkbox a {
                color: var(--kontally);
                text-decoration: underline;
            }

        /* Footer */
/*        .footer-kontally {
            background: #1f3d82;
            color: #fff;
            margin-top: 4rem;
        }

            .footer-kontally .icon-circle {
                width: 24px;
                height: 24px;
                display: inline-flex;
                align-items: center;
                justify-content: center;
                border: 1px solid rgba(255, 255, 255, 0.9);
                border-radius: 50%;
                color: #fff;
                text-decoration: none;
                transition: all 0.2s ease;
            }

                .footer-kontally .icon-circle i {
                    font-size: 0.8rem;
                    line-height: 1;
                }

                .footer-kontally .icon-circle:hover {
                    background: rgba(255, 255, 255, 0.12);
                    border-color: #fff;
                    transform: translateY(-2px);
                }
*/

/* Layout base */
html, body {
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Tu contenido principal debe ocupar el espacio disponible */
main {
    flex: 1 0 auto;
}
/* Cambia 'main' por tu contenedor principal si usas otro */

/* Footer */
.footer-kontally {
    background: #1f3d82;
    color: #fff;
    margin-top: auto; /* Empuja el footer al fondo */
    width: 100%; /* Asegura ancho completo */
}

    /* Resto de tus estilos */
    .footer-kontally .icon-circle {
        width: 24px;
        height: 24px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(255, 255, 255, 0.9);
        border-radius: 50%;
        color: #fff;
        text-decoration: none;
        transition: all 0.2s ease;
    }

        .footer-kontally .icon-circle i {
            font-size: 0.8rem;
            line-height: 1;
        }

        .footer-kontally .icon-circle:hover {
            background: rgba(255, 255, 255, 0.12);
            border-color: #fff;
            transform: translateY(-2px);
        }
