:root {
    --ink: #0f1b33;
    --brand: #0b4c86;
    --brand-2: #0f63ac;
    --gold: #1783c7;
    --gold-light: #e5f1fa;
    --emerald: #0f8f63;
    --emerald-light: #e4f5ee;
    --red: #c6402e;
    --red-light: #fbeae7;
    --paper: #f7fafc;
    --line: #e2e8f0;
    --muted: #5b6675;
}
html {
    scroll-behavior: smooth;
}
body {
    background: var(--paper);
    font-family: "Inter", sans-serif;
    color: var(--ink);
}
.font-display {
    font-family: "Fraunces", serif;
}
.font-mono {
    font-family: "IBM Plex Mono", monospace;
}
.seal {
    background:
        radial-gradient(
            circle at 30% 30%,
            rgba(255, 255, 255, 0.5),
            transparent 40%
        ),
        conic-gradient(from 180deg, var(--brand), #4fa3d9, var(--brand));
}
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-thumb {
    background: #d3d9e1;
    border-radius: 99px;
}
[x-cloak] {
    display: none !important;
}
.fade-enter {
    transition:
        opacity 0.35s ease,
        transform 0.35s ease;
}
.card-hover {
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}
.card-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px -12px rgba(15, 27, 51, 0.18);
}
.input-focus:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(22, 50, 92, 0.1);
}

.select-container {
    position: relative;
    width: 100%;
    min-height: 46px; /* Ajusta según el alto real de tus selects */
}

.skeleton {
    background: linear-gradient(90deg, #eef1f5 25%, #f7f9fb 37%, #eef1f5 63%);
    background-size: 400% 100%;
    animation: shimmer 1.4s ease infinite;
}

.skeleton-box {
    position: absolute;
    inset: 0;
    z-index: 10;
    background-color: #f3f4f6; /* Color gris de carga */
    border-radius: 0.75rem;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.loading-pulse {
    animation: pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    cursor: wait;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes shimmer {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: 0 0;
    }
}
@keyframes pop {
    0% {
        transform: scale(0.6);
        opacity: 0;
    }
    60% {
        transform: scale(1.08);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}
.pop {
    animation: pop 0.45s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
@keyframes ripple {
    to {
        transform: scale(3.2);
        opacity: 0;
    }
}
.ripple-el {
    position: absolute;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.55);
    transform: scale(0);
    animation: ripple 0.6s ease-out;
}
@keyframes dash {
    from {
        stroke-dashoffset: 120;
    }
    to {
        stroke-dashoffset: 0;
    }
}
.check-draw {
    stroke-dasharray: 120;
    stroke-dashoffset: 120;
    animation: dash 0.7s 0.15s ease forwards;
}
@keyframes confetti-fall {
    to {
        transform: translateY(110vh) rotate(540deg);
        opacity: 0;
    }
}
.confetti-piece {
    position: fixed;
    top: -10px;
    animation: confetti-fall linear forwards;
}
.btn-primary {
    background: var(--brand);
    color: #fff;
    transition:
        background 0.2s ease,
        transform 0.15s ease;
}
.btn-primary:hover:not(:disabled) {
    background: var(--brand-2);
}
.btn-primary:active:not(:disabled) {
    transform: scale(0.98);
}
.btn-primary:disabled {
    background: #c7cdd6;
    cursor: not-allowed;
}
.glow-cta {
    box-shadow: 0 0 0 0 rgba(22, 50, 92, 0.35);
    animation: glowpulse 2.2s ease-in-out infinite;
}
@keyframes glowpulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(22, 50, 92, 0.28);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(22, 50, 92, 0);
    }
}
.attn-btn {
    position: relative;
    animation: attnPulse 2s ease-in-out infinite;
}
@keyframes attnPulse {
    0%,
    100% {
        box-shadow:
            0 0 0 0 rgba(184, 147, 95, 0.45),
            0 1px 2px rgba(0, 0, 0, 0.04);
    }
    50% {
        box-shadow:
            0 0 0 8px rgba(184, 147, 95, 0),
            0 1px 2px rgba(0, 0, 0, 0.04);
    }
}
.attn-icon {
    animation: attnWiggle 1.8s ease-in-out infinite;
}
@keyframes attnWiggle {
    0%,
    100% {
        transform: rotate(0deg) scale(1);
    }
    10% {
        transform: rotate(-12deg) scale(1.05);
    }
    20% {
        transform: rotate(10deg) scale(1.05);
    }
    30% {
        transform: rotate(-8deg);
    }
    40% {
        transform: rotate(0deg) scale(1);
    }
}
.attn-badge {
    animation: attnBadgeBounce 1.6s ease-in-out infinite;
}
@keyframes attnBadgeBounce {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}
