/* ═══════════════════════════════════════════════════════════════
   SAMS LOADER — Venado SVG Animado · UTyPSG
   Compartido entre todos los módulos del sistema de Vinculación.
   ═══════════════════════════════════════════════════════════════ */

/* ── Overlay de pantalla completa ───────────────────────────── */
.sams-loader-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
}
.sams-loader-overlay.active {
    display: flex !important;
}

/* ── Tarjeta central ─────────────────────────────────────────── */
.sams-loader-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

/* ── Contenedor del venado y anillos ─────────────────────────── */
.sams-deer-container {
    position: relative;
    width: 100px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Anillos de expansión ────────────────────────────────────── */
.sams-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(42, 157, 110, 0.25);
    width: 85px;
    height: 85px;
    opacity: 0;
    animation: sams-ring-expand 3s ease-out infinite;
}
.sams-ring:nth-child(2) { animation-delay: 1s; }
.sams-ring:nth-child(3) { animation-delay: 2s; }

@keyframes sams-ring-expand {
    0%   { transform: scale(0.5); opacity: 0.8; }
    100% { transform: scale(2.4); opacity: 0; }
}

/* ── SVG del venado ──────────────────────────────────────────── */
.sams-deer-svg {
    position: relative;
    z-index: 10;
    overflow: visible;
    animation: sams-breathe 3s ease-in-out infinite;
    filter: drop-shadow(0 3px 14px rgba(42, 157, 110, 0.13));
}

@keyframes sams-breathe {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 3px 14px rgba(42, 157, 110, 0.13));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 5px 24px rgba(42, 157, 110, 0.32));
    }
}

/* ── Path animado del venado ─────────────────────────────────── */
.sams-venado-path {
    fill: #2a9d6e;
    fill-opacity: 0;
    stroke: #2a9d6e;
    stroke-width: 2.5;
    stroke-linejoin: round;
    stroke-linecap: round;
    stroke-dasharray: 1600;
    stroke-dashoffset: 1600;
    animation: sams-trazar 3.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes sams-trazar {
    0%   { stroke-dashoffset: 1600; fill-opacity: 0; }
    58%  { stroke-dashoffset: 0;    fill-opacity: 0; }
    78%  { stroke-dashoffset: 0;    fill-opacity: 1; }
    93%  { stroke-dashoffset: 0;    fill-opacity: 1; }
    100% { stroke-dashoffset: 1600; fill-opacity: 0; }
}

/* ── Texto con puntos parpadeantes ───────────────────────────── */
.sams-loader-text {
    opacity: 0;
    animation: sams-fade-up 0.8s ease forwards 0.5s;
    display: flex;
    align-items: baseline;
    gap: 2px;
}
.sams-palabra {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1a2e24;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}
.sams-dots span {
    color: #2a9d6e;
    font-weight: 700;
    animation: sams-parpadeo 1.4s ease-in-out infinite;
}
.sams-dots span:nth-child(2) { animation-delay: 0.2s; }
.sams-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes sams-parpadeo {
    0%, 100% { opacity: 0; }
    40%      { opacity: 1; }
}
@keyframes sams-fade-up {
    from { opacity: 0; transform: translateY(5px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Barra de progreso ───────────────────────────────────────── */
.sams-progress-bar {
    width: 90px;
    height: 2px;
    background: rgba(42, 157, 110, 0.12);
    border-radius: 2px;
    overflow: hidden;
    opacity: 0;
    animation: sams-fade-up 0.8s ease forwards 0.9s;
}
.sams-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #2a9d6e, #3dbf88);
    box-shadow: 0 0 5px #3dbf88;
    animation: sams-fill-bar 3.2s ease-in-out infinite 0.9s;
}
@keyframes sams-fill-bar {
    0%       { width: 0%;   opacity: 1; }
    75%      { width: 100%; opacity: 1; }
    95%, 100%{ width: 100%; opacity: 0; }
}

/* ── Loader inline dentro de tabla ──────────────────────────── */
.sams-table-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
}

/* ── Variante compacta (para tabla inline, sin overlay) ──────── */
.sams-table-loader .sams-deer-container {
    width: 60px;
    height: 86px;
}
.sams-table-loader .sams-ring {
    width: 58px;
    height: 58px;
}
.sams-table-loader .sams-deer-svg {
    width: 42px;
    height: 60px;
}
.sams-table-loader .sams-palabra {
    font-size: 0.80rem;
    letter-spacing: 0.12em;
}
