:root {
    /* ═══════════════════════════════════════════════════════════
     COLOR DE FONDO Y BURBUJAS PERSONALIZABLE
     ═══════════════════════════════════════════════════════════ */
    --bg-primary: #ffffff; /* Fondo blanco */
    --bubble-color-1: rgba(21, 101, 192, 0.08); /* Burbuja azul */
    --bubble-color-2: rgba(66, 165, 245, 0.06); /* Burbuja azul claro */
    --bubble-color-3: rgba(16, 185, 129, 0.05); /* Burbuja verde */
    --bubble-color-4: rgba(139, 92, 246, 0.04); /* Burbuja morado */

    --brand: #0476D9;
    --brand-mid: #0563b5;
    --brand-lt: #42A5F5;
    --brand-xlt: #E3F2FD;
    --brand-glow: rgba(21,101,192,.18);
    --ink: #0D1B2A;
    --ink-2: #334155;
    --muted: #64748B;
    --border: #DDE3EE;
    --border-h: #B2BFDA;
    --surface: #FFFFFF;
    --surface-2: #F5F8FF;
    --success: #10B981;
    --danger: #EF4444;
    --danger-lt: #FEF2F2;
    --warn: #F59E0B;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md: 0 0 0 1px rgba(0,0,0,.04), 0 8px 32px rgba(21,101,192,.12);
    --shadow-lg: 0 0 0 1px rgba(0,0,0,.04), 0 20px 60px rgba(21,101,192,.18);
    --shadow-foc: 0 0 0 3px rgba(21,101,192,.20);
    --r-xs: 4px;
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 18px;
    --r-xl: 24px;
    --r-full: 999px;
    --font: "Outfit", sans-serif;
    --t: .18s cubic-bezier(.4,0,.2,1);
    /*dt aspirante*/


    --bg: #EDF0F7;
    --surface: #FFFFFF;
    --surface-2: #F5F7FC;
    --border: #DDE3EE;
    --border-h: #B2BFDA;
    --border-f: #3B6EF8;
    --text: #0F172A;
    --muted: #64748B;
    --label: #334155;
    --accent: #6d5a16;
    --accent-d: #2452D4;
    --accent-lt: #fffdeb;
    --accent-glow: rgba(59,110,248,.16);
    --red: #EF4444;
    --red-lt: #FEF2F2;
    --green: #10B981;
    --green-d: #059669;
    --sky: #0EA5E9;
    --sky-d: #0284C7;
    --section-c: #b49154;
    --r-xs: 5px;
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 20px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.06),0 1px 2px rgba(0,0,0,.04);
    --shadow-md: 0 0 0 1px rgba(0,0,0,.04),0 8px 28px rgba(59,110,248,.10);
    --shadow-foc: 0 0 0 3px var(--accent-glow);
    --in-shadow: inset 0 1px 2px rgba(0,0,0,.05);
    --t: .17s cubic-bezier(.4,0,.2,1);
    --font: "Outfit", sans-serif;
    /* chevron SVG — gris, azul, azul fuerte */
    --chev-gray: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    --chev-blue: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%233B6EF8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    /* Superficies */
    --pv-bg: #ffffff;
    --pv-surface: #f7f7f7;
    /* Texto */
    --pv-text: #1a1a1a;
    --pv-text-muted: #666666;
    --pv-text-hint: #aaaaaa;
    /* Bordes */
    --pv-border: #c6c6c6ba;
    --pv-border-md: #d0d0d0;
    /* Acento */
    --pv-accent: #0476D9;
    --pv-accent-text: #ffffff;
    /* Semántico */
    --pv-req: #c0392b;
    --pv-danger-bg: #fff5f5;
    --pv-danger-text: #a02020;
    --pv-danger-border: #f5c0c0;
    /* Dimensiones */
    --pv-radius: 6px;
    --pv-radius-lg: 10px;
    --pv-input-h: 36px;
    --pv-gap: 12px;
    /* Transición */
    --pv-ease: 0.15s ease;
}

.ef-btn-primary {
    background: linear-gradient(135deg, var(--brand) 0%, #0f4a8a 100%);
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(21, 101, 192, 0.4);
}

    .ef-btn-primary:hover {
        background: linear-gradient(135deg, var(--brand-mid) 0%, var(--brand) 100%);
    }

.pv-label {
    font-size: 13px;
    font-weight: bold;
    color: var(--pv-text-muted);
    letter-spacing: 0.04em;
    text-align: left;
}


.form-control {
    color: #403d3d !important;
    border-radius: 2rem !important;
}

.header {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 20% 30%, #0476D9, #0563b5);
    /* Fallback sólido */
}

    /* Capa principal del fondo: gradiente dinámico */
    .header::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(125deg, #0563b5 0%, #045194 30%, #033e70 60%, #032f54 100%);
        background-size: 200% 200%;
        animation: gradientShift 6s ease infinite;
        z-index: 0;
    }


.hv-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0476D9 0%, #0476D9 100%);
    border-radius: 20px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
}

    .hv-progress-fill::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        animation: hv-shimmer 2s infinite;
    }



#alert-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.app-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    background: #ffffff;
    border-radius: 12px;
    min-width: 300px;
    max-width: 380px;
    pointer-events: all;
    animation: alertSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.04);
    border: none;
    position: relative;
    overflow: hidden;
}

    /* Barra lateral de color */
    .app-alert::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        background: currentColor;
    }

    .app-alert.success {
        color: #10b981;
    }

        .app-alert.success::before {
            background: #10b981;
        }

    .app-alert.error {
        color: #ef4444;
    }

        .app-alert.error::before {
            background: #ef4444;
        }

    .app-alert.warning {
        color: #f59e0b;
    }

        .app-alert.warning::before {
            background: #f59e0b;
        }

    .app-alert.info {
        color: #3b82f6;
    }

        .app-alert.info::before {
            background: #3b82f6;
        }

@keyframes alertSlideIn {
    from {
        opacity: 0;
        transform: translateX(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.app-alert-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: currentColor;
}

    .app-alert-icon svg {
        width: 14px;
        height: 14px;
        stroke: white;
        stroke-width: 2;
        fill: none;
    }

.app-alert-body {
    flex: 1;
}

.app-alert-title {
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 3px;
    color: #1e293b;
}

.app-alert-msg {
    font-size: 12px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

.app-alert-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #94a3b8;
    font-size: 16px;
    line-height: 1;
    transition: color 0.15s;
    border-radius: 6px;
    flex-shrink: 0;
}

    .app-alert-close:hover {
        color: #475569;
        background: #f1f5f9;
    }


.btn-volver {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--brand-mid);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, background-color 0.2s ease;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .btn-volver:hover {
        background-color: var(--brand-lt);
        transform: scale(1.1);
    }


.hero-header {
    background: linear-gradient(135deg, var(--brand-mid) 0%, var(--brand-lt) 100%);
    padding: 32px 60px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
}

.btn-filter {
    background: linear-gradient(135deg, var(--brand-mid) 0%, var(--brand-lt) 100%);
    color: white;
    border: none;
    border-radius: 40px;
    padding: 10px 24px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}