/* Estados compartidos: paleta, bordes y botones de las cards y listados. */
.estado-datos {
    --estado-azul: #0b3c5d;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: min(560px, calc(100% - 2rem));
    margin: clamp(2rem, 6vw, 4rem) auto;
    padding: clamp(1.5rem, 5vw, 2.5rem);
    background: var(--bg-white, #fff);
    border: 1px solid #dce7ed;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    color: var(--estado-azul);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    text-align: center;
    overflow-wrap: anywhere;
}

.estado-datos[hidden] {
    display: none !important;
}

.estado-datos--carga {
    min-height: 220px;
    justify-content: center;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.estado-datos__icono {
    font-size: 2.5rem;
    line-height: 1;
}

.estado-datos__pez {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
}

.estado-datos__pez-svg {
    display: block;
    width: 110px;
    max-width: 100%;
    height: auto;
    transform-origin: center;
    animation: estado-datos-nadar 2.8s ease-in-out infinite;
}

.estado-datos__pez-cuerpo { fill: #1f7a8c; }
.estado-datos__pez-aleta { fill: #155e75; }
.estado-datos__pez-ojo { fill: #0f172a; }

.estado-datos__pez-cola {
    fill: #155e75;
    transform-box: view-box;
    transform-origin: 30px 45px;
    animation: estado-datos-cola 0.9s ease-in-out infinite;
}

.estado-datos__pez-boca {
    fill: none;
    stroke: #0f172a;
    stroke-width: 2.2;
    stroke-linecap: round;
}

.estado-datos__spinner {
    width: 28px;
    height: 28px;
    border: 3px solid #dce7ed;
    border-top-color: var(--estado-azul);
    border-radius: 50%;
    animation: estado-datos-girar 0.9s linear infinite;
}

.estado-datos__titulo {
    margin: 0;
    color: var(--estado-azul);
    font-size: clamp(1.2rem, 3vw, 1.4rem);
    line-height: 1.35;
    font-weight: 600;
}

.estado-datos__texto {
    margin: 0;
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
}

.estado-datos__accion {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    min-height: 44px;
    padding: 0.8rem 2rem;
    border: 1px solid var(--estado-azul);
    border-radius: 8px;
    background: transparent;
    color: var(--estado-azul);
    font: inherit;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.estado-datos__accion:hover {
    background: var(--estado-azul);
    color: white;
}

.estado-datos__accion:focus-visible {
    outline: 3px solid #16739a;
    outline-offset: 4px;
}


@keyframes estado-datos-girar {
    to { transform: rotate(360deg); }
}

@keyframes estado-datos-nadar {
    0%, 50%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(4px, -2px) rotate(1deg); }
    75% { transform: translate(-4px, 2px) rotate(-1deg); }
}

@keyframes estado-datos-cola {
    0%, 50%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(6deg); }
    75% { transform: rotate(-6deg); }
}

@media (max-width: 480px) {
    .estado-datos__accion {
        width: 100%;
        padding-inline: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .estado-datos__spinner,
    .estado-datos__pez-svg,
    .estado-datos__pez-cola { animation: none; }
    .estado-datos__accion { transition: none; }
}

[hidden] {
    display: none !important;
}