/* CardVerse — Página de noticias por TCG */
.page-noticias.store-marketplace .store-main {
    background: #f8fafc;
}

.noticias-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1rem 2.5rem;
}

.noticias-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.noticias-breadcrumb a {
    color: #7c3aed;
    text-decoration: none;
}

.noticias-breadcrumb a:hover {
    text-decoration: underline;
}

.noticias-breadcrumb-sep {
    color: #cbd5e1;
}

/* Hero */
.noticias-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.5rem 1.35rem;
    margin-bottom: 1.25rem;
    border-radius: 18px;
    background: linear-gradient(135deg, #ffffff 0%, #f5f3ff 100%);
    border: 1px solid #e9e5ff;
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.08);
}

.noticias-tcg-badge {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: #7c3aed;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.noticias-hero-title {
    margin: 0 0 0.4rem;
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.noticias-hero-sub {
    margin: 0 0 0.65rem;
    font-size: 0.92rem;
    color: #64748b;
    max-width: 52ch;
}

.noticias-auto-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: #ecfdf5;
    color: #059669;
    font-size: 0.72rem;
    font-weight: 600;
}

.noticias-back-btn {
    border-radius: 12px;
    white-space: nowrap;
}

/* Filters */
.noticias-filters {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}

@media (min-width: 768px) {
    .noticias-filters {
        grid-template-columns: repeat(4, 1fr);
    }
}

.noticias-filter {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin: 0;
}

.noticias-filter > span {
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.noticias-filter .form-select {
    border-radius: 10px;
    border-color: #e2e8f0;
}

/* Loader */
.noticias-status {
    padding: 2rem 1rem;
}

.noticias-loader {
    text-align: center;
    color: #64748b;
}

.noticias-loader-ring {
    width: 44px;
    height: 44px;
    margin: 0 auto 0.75rem;
    border: 3px solid #ede9fe;
    border-top-color: #7c3aed;
    border-radius: 50%;
    animation: noticias-spin 0.75s linear infinite;
}

@keyframes noticias-spin {
    to { transform: rotate(360deg); }
}

.noticias-loader p {
    margin: 0;
    font-size: 0.88rem;
}

/* Error & empty */
.noticias-error,
.noticias-empty {
    padding: 2rem 1rem;
}

.noticias-error-box,
.noticias-empty-box {
    max-width: 420px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem 1.5rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
}

.noticias-error-box i,
.noticias-empty-box i {
    font-size: 2.2rem;
    color: #7c3aed;
    margin-bottom: 0.75rem;
    display: block;
}

.noticias-error-box h3,
.noticias-empty-box h3 {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    color: #0f172a;
}

.noticias-error-box p,
.noticias-empty-box p {
    margin: 0 0 1rem;
    font-size: 0.88rem;
    color: #64748b;
}

/* Featured */
.noticias-featured {
    margin-bottom: 1.25rem;
}

.noticias-featured-inner {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.06);
    transition: box-shadow 0.2s, border-color 0.2s;
}

.noticias-featured-inner:hover {
    border-color: #c4b5fd;
    box-shadow: 0 14px 40px rgba(124, 58, 237, 0.1);
}

@media (min-width: 768px) {
    .noticias-featured-inner {
        grid-template-columns: 280px 1fr;
        align-items: center;
        padding: 1.15rem;
    }
}

.noticias-featured-media {
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #f1f5f9;
}

.noticias-featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.noticias-featured-ph {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-size: 2.5rem;
    color: #94a3b8;
}

.noticias-featured-tag {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: #f5f3ff;
    color: #7c3aed;
    font-size: 0.68rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
}

.noticias-featured-body h2 {
    margin: 0 0 0.45rem;
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
}

.noticias-featured-body p {
    margin: 0 0 0.65rem;
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.5;
}

.noticias-card-btn {
    border-radius: 12px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border: none;
}

/* Grid */
.noticias-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

@media (min-width: 576px) {
    .noticias-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
    .noticias-grid { grid-template-columns: repeat(3, 1fr); }
}

.noticias-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.noticias-card:hover {
    transform: translateY(-2px);
    border-color: #c4b5fd;
    box-shadow: 0 12px 28px rgba(124, 58, 237, 0.1);
}

.noticias-card-img {
    display: block;
    aspect-ratio: 16 / 10;
    background: #f1f5f9;
    overflow: hidden;
}

.noticias-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s;
}

.noticias-translated-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    background: #f5f3ff;
    color: #7c3aed;
    font-size: 0.68rem;
    font-weight: 700;
}

.noticias-img-fallback {
    width: 100%;
    height: 100%;
}

.noticias-card:hover .noticias-card-img img {
    transform: scale(1.03);
}

.noticias-card-ph {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #94a3b8;
    font-size: 1.75rem;
}

.noticias-card-body {
    padding: 0.9rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.35rem;
}

.noticias-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    font-size: 0.72rem;
    color: #94a3b8;
}

.noticias-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.noticias-card-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
}

.noticias-card-title a {
    color: #0f172a;
    text-decoration: none;
}

.noticias-card-title a:hover {
    color: #7c3aed;
}

.noticias-card-desc {
    margin: 0;
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.noticias-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #7c3aed;
    text-decoration: none;
}

.noticias-card-link:hover {
    color: #6d28d9;
}

/* Skeleton */
.noticias-card--skeleton {
    pointer-events: none;
}

.noticias-card-img-skel {
    aspect-ratio: 16 / 10;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: noticias-shimmer 1.2s infinite;
}

.noticias-card-body-skel {
    padding: 1rem;
}

.skel-line {
    height: 12px;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: noticias-shimmer 1.2s infinite;
}

.skel-line--lg { width: 85%; height: 16px; }
.skel-line--sm { width: 45%; }

@keyframes noticias-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
