:root {
    --cer-primary-blue: #60d5f8;
    --cer-secondary-blue: #00aeef;
    --cer-deep-blue: #0a1929;
    --cer-dark-blue: #1e3a8a;
    --cer-light-blue: #3b82f6;
    --cer-text-primary: #ffffff;
    --cer-text-secondary: #cbd5e1;
    --cer-text-muted: #94a3b8;
    --cer-text-dark: #1e293b;
    --cer-space-1: 0.25rem;
    --cer-space-2: 0.5rem;
    --cer-space-3: 0.75rem;
    --cer-space-4: 1rem;
    --cer-space-6: 1.5rem;
    --cer-space-8: 2rem;
    --cer-space-12: 3rem;
    --cer-space-16: 4rem;
    --cer-space-20: 5rem;
    --cer-radius-md: 12px;
    --cer-radius-lg: 16px;
    --cer-radius-xl: 20px;
    --cer-radius-2xl: 24px;
    --cer-transition-base: 0.3s ease;
    --cer-gradient-primary: linear-gradient(135deg, #60d5f8 0%, #00aeef 100%);
    --cer-gradient-dark: linear-gradient(
        135deg,
        #0c1220 0%,
        #1a202c 25%,
        #2d3748 50%,
        #1a202c 75%,
        #0c1220 100%
    );
}

body {
    background: radial-gradient(
            1200px 800px at 50% 20%,
            rgba(8, 122, 200, 0.1) 0%,
            transparent 65%
        ),
        linear-gradient(
            135deg,
            #001225 0%,
            #022a53 35%,
            #074d85 65%,
            #0a6bb1 85%,
            #022a53 100%
        );
    background-size: 180% 180%, 200% 200%;
    background-attachment: fixed;
    animation: unifiedGradientShift 30s ease-in-out infinite;
    min-height: 100vh;
}

.estadisticas-hero-section {
    min-height: 35vh;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: var(--cer-space-20) 0 var(--cer-space-16);
    overflow: hidden;
}

@keyframes unifiedGradientShift {
    0% {
        background-position: center center, 0% 50%;
    }
    50% {
        background-position: center center, 100% 50%;
    }
    100% {
        background-position: center center, 0% 50%;
    }
}

.estadisticas-hero-box {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--cer-space-12) var(--cer-space-8);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.estadisticas-hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(
        135deg,
        #ffffff 0%,
        rgba(255, 255, 255, 0.85) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.estadisticas-hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.estadisticas-main-section {
    padding: var(--cer-space-12) 0;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.estadisticas-controls-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: var(--cer-space-4) var(--cer-space-6);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
}

.search-container {
    display: flex;
    flex: 1;
    max-width: 600px;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: visible;
    transition: all var(--cer-transition-base);
    align-items: center;
    padding: 0 var(--cer-space-4);
}

.search-container:focus-within {
    border-color: rgba(96, 213, 248, 0.3);
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.search-icon {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    margin-right: var(--cer-space-3);
    pointer-events: none;
    z-index: 1;
}

.estadisticas-search-input {
    flex: 1;
    padding: 14px 0;
    border: none;
    font-size: 1rem;
    background: transparent;
    color: #ffffff;
    outline: none;
}

.estadisticas-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.icono-borrar {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.5);
    z-index: 2;
    padding: 0;
    margin-left: var(--cer-space-2);
    transition: color 0.2s ease;
}

.icono-borrar:hover {
    color: rgba(255, 255, 255, 0.8);
}

.dropdown-resultados {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #ffffff;
    border: 1px solid rgba(204, 204, 204, 1);
    border-top: none;
    list-style: none;
    padding: 0;
    margin: 0;
    border-radius: 0 0 12px 12px;
    max-height: 300px;
    overflow-y: auto;
}

.dropdown-resultados li {
    padding: 12px 20px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.dropdown-resultados li:hover {
    background-color: rgba(240, 240, 240, 1);
}

.dropdown-resultados li.sin-resultados {
    color: #64748b;
    cursor: default;
}

.sort-container {
    display: flex;
    align-items: center;
    gap: var(--cer-space-3);
}

.sort-label {
    font-weight: 700;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    letter-spacing: 0.05em;
}

.estadisticas-sort-select {
    padding: 12px 40px 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    font-size: 0.95rem;
    color: #ffffff;
    cursor: pointer;
    transition: all var(--cer-transition-base);
    min-width: fit-content;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='rgba(255,255,255,0.5)' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
}

.estadisticas-sort-select:focus {
    outline: none;
    border-color: rgba(96, 213, 248, 0.3);
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.2);
    background-color: rgba(255, 255, 255, 0.08);
}

.estadisticas-sort-select option {
    background: #022a53;
    color: #ffffff;
}

.estadisticas-content {
    position: relative;
    z-index: 2;
}

.estadisticas-header {
    position: relative;
    z-index: 2;
}

.estadisticas-controls {
    position: relative;
    z-index: 2;
}

.estadisticas-no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.no-results-icon {
    font-size: 4rem;
    color: var(--cer-light-blue);
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.no-results-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
}

.no-results-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.no-results-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.no-results-actions .btn-primary,
.no-results-actions .btn-secondary {
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.2s cubic-bezier(0.33, 1, 0.68, 1);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.no-results-actions .btn-primary {
    background: linear-gradient(
        135deg,
        rgba(14, 165, 233, 1) 0%,
        rgba(59, 130, 246, 0.95) 100%
    );
    border: 1px solid rgba(96, 213, 248, 0.5);
    color: white;
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.4),
        0 4px 12px rgba(59, 130, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.no-results-actions .btn-primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.6s ease;
}

.no-results-actions .btn-primary:hover {
    background: linear-gradient(
        135deg,
        rgba(96, 213, 248, 1) 0%,
        rgba(14, 165, 233, 1) 100%
    );
    border-color: rgba(96, 213, 248, 0.8);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 45px rgba(14, 165, 233, 0.6),
        0 8px 20px rgba(96, 213, 248, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 0 30px rgba(96, 213, 248, 0.3);
}

.no-results-actions .btn-primary:hover::before {
    left: 100%;
}

.no-results-actions .btn-primary:active {
    transform: translateY(-2px) scale(1.01);
}

.no-results-actions .btn-secondary {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(255, 255, 255, 0.95) 50%,
        rgba(255, 255, 255, 0.9) 100%
    );
    backdrop-filter: blur(20px);
    border: 2px solid rgba(14, 165, 233, 0.3);
    color: var(--cer-deep-blue);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -1px 0 rgba(14, 165, 233, 0.1);
}

.no-results-actions .btn-secondary::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(14, 165, 233, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.no-results-actions .btn-secondary:hover {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 1) 50%,
        rgba(255, 255, 255, 1) 100%
    );
    border-color: rgba(14, 165, 233, 0.5);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 35px rgba(14, 165, 233, 0.3),
        0 6px 15px rgba(96, 213, 248, 0.2), inset 0 1px 0 rgba(255, 255, 255, 1),
        0 0 25px rgba(14, 165, 233, 0.15);
}

.no-results-actions .btn-secondary:hover::before {
    left: 100%;
}

.no-results-actions .btn-secondary:active {
    transform: translateY(-2px) scale(1.01);
}

.estadisticas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
    margin: 40px auto 0 auto;
    max-width: 1600px;
    padding: 0 50px;
}

.documento-card-v2 {
    background: rgba(59, 130, 246, 0.08);
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 30px 60px rgba(59, 130, 246, 0.15),
        0 15px 30px rgba(59, 130, 246, 0.1), 0 8px 20px rgba(59, 130, 246, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(59, 130, 246, 0.2);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    width: 340px;
}

.documento-card-v2::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(
        90deg,
        #3b82f6 0%,
        #1d4ed8 30%,
        #3b82f6 70%,
        #1d4ed8 100%
    );
    border-radius: 20px 20px 0 0;
    opacity: 1;
    transition: all 0.4s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.documento-card-v2:hover {
    transform: translateY(-8px) scale(1.01);
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 40px 80px rgba(59, 130, 246, 0.2),
        0 20px 40px rgba(59, 130, 246, 0.15),
        0 10px 20px rgba(59, 130, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(59, 130, 246, 0.3),
        0 0 0 1px rgba(59, 130, 246, 0.2);
}

.documento-card-v2:hover::before {
    height: 4px;
    opacity: 1;
}

.documento-icon-wrapper {
    width: calc(100% + 64px);
    height: 160px;
    background: rgba(59, 130, 246, 0.12);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    z-index: 1;
    border-radius: 0;
    transition: all 0.4s ease;
    overflow: hidden;
    margin: -32px -32px 0px -32px;
}

.documento-icon-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(59, 130, 246, 0.06) 0%,
        rgba(29, 78, 216, 0.06) 100%
    );
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.documento-card-v2:hover .documento-icon-wrapper {
    background: rgba(59, 130, 246, 0.2);
    transform: scale(1.02);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.2);
}

.documento-card-v2:hover .documento-icon-wrapper::before {
    opacity: 1;
}

.documento-pdf-icon {
    width: 40px;
    height: 40px;
    color: #dc2626;
    filter: drop-shadow(0 4px 8px rgba(220, 38, 38, 0.4));
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.documento-card-v2:hover .documento-pdf-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 6px 12px rgba(220, 38, 38, 0.5));
}

.documento-pdf-label {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 0 12px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 2;
}

.documento-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding: 10px 10px 0px 10px;
}

.documento-title {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 0 12px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.02em;
}

.documento-date {
    font-size: 13px;
    color: #a5b4fc;
    font-weight: 500;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: all 0.3s ease;
}

.documento-card-v2:hover .documento-date {
    color: #c7d2fe;
    transform: translateY(-2px);
}

.documento-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 28px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 50%, #3b82f6 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: none;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3),
        0 4px 10px rgba(59, 130, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
    overflow: hidden;
    width: 100%;
    cursor: pointer;
}

.documento-download-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.documento-download-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.4),
        0 8px 20px rgba(59, 130, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.documento-download-btn:hover::before {
    left: 100%;
}

.documento-download-btn:active {
    transform: translateY(-2px) scale(1.01);
}

.download-icon {
    width: 18px;
    height: 18px;
    stroke-width: 2.5;
}

.sin-estadistica {
    text-align: center;
    margin: 60px;
    color: var(--cer-text-secondary);
    font-size: 16px;
}

.estadisticas-preview-section {
    padding: 80px 0;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.preview-section-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.preview-section-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

.preview-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
    z-index: 2;
}

.preview-feature-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    text-align: center;
}

.preview-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
    border-color: rgba(96, 213, 248, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.preview-feature-icon {
    font-size: 2.5rem;
    color: var(--cer-light-blue);
    margin-bottom: 1.5rem;
}

.preview-feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
}

.preview-feature-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.estadisticas-cta-section {
    padding: 40px 0;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.estadisticas-cta-content {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    padding: 32px 48px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28), 0 10px 28px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.estadisticas-cta-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(96, 213, 248, 0.5), 0 4px 15px rgba(0, 0, 0, 0.4);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.estadisticas-cta-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.5rem;
    line-height: 1.5;
    font-weight: 400;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.estadisticas-cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.estadisticas-cta-buttons .btn-primary {
    background: linear-gradient(135deg, #60d5f8 0%, #0ea5e9 50%, #3b82f6 100%);
    border: 1px solid rgba(96, 213, 248, 0.3);
    padding: 18px 36px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1.1rem;
    color: #ffffff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    box-shadow: 0 8px 32px rgba(96, 213, 248, 0.3),
        0 4px 16px rgba(14, 165, 233, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.estadisticas-cta-buttons .btn-primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s ease;
}

.estadisticas-cta-buttons .btn-primary:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 50px rgba(96, 213, 248, 0.4),
        0 8px 25px rgba(14, 165, 233, 0.3), 0 0 30px rgba(96, 213, 248, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(96, 213, 248, 0.5);
}

.estadisticas-cta-buttons .btn-primary:hover::before {
    left: 100%;
}

.estadisticas-cta-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 18px 36px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 1.1rem;
    color: #ffffff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.estadisticas-cta-buttons .btn-secondary::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: left 0.5s ease;
}

.estadisticas-cta-buttons .btn-secondary:hover {
    transform: translateY(-4px) scale(1.05);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3),
        0 8px 25px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.estadisticas-cta-buttons .btn-secondary:hover::before {
    left: 100%;
}

.pag-recurso-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 60px;
    margin-bottom: 40px;
}

.pag-recurso {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    padding-left: 0;
    list-style: none;
    position: relative;
    max-width: 1200px;
}

.pag-recurso .numeros-recurso {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding-left: 0 !important;
}

.pag-item-recurso {
    display: inline;
}

.pag-link-recurso {
    color: var(--cer-text-primary);
    padding: 12px 16px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.pag-link-recurso:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--cer-primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.2);
}

.pag-link-recurso i {
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pag-item-recurso.active .pag-link-recurso {
    background: linear-gradient(
        135deg,
        rgba(14, 165, 233, 0.3) 0%,
        rgba(59, 130, 246, 0.25) 100%
    );
    color: #ffffff;
    border-color: rgba(96, 213, 248, 0.4);
    display: flex;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.pag-item-recurso.disabled .pag-link-recurso {
    color: rgba(255, 255, 255, 0.3);
    pointer-events: none;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
}

.pag-item-recurso.puntos .pag-link-recurso {
    background: transparent;
    border: none;
}

.nav-btn-recurso .pag-link-recurso {
    padding: 12px 20px;
    background: rgba(14, 165, 233, 0.15);
    border-color: rgba(14, 165, 233, 0.3);
    font-weight: 700;
    justify-content: center;
    transition: all 0.3s ease;
}

.nav-btn-recurso .pag-link-recurso:hover {
    background: rgba(14, 165, 233, 0.25);
    border-color: rgba(14, 165, 233, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.3);
}

.title-reveal {
    animation: fadeInUp 0.6s ease-out;
}

.card-reveal {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .estadisticas-hero-title {
        font-size: 2.5rem;
    }

    .estadisticas-hero-description {
        font-size: 1rem;
    }

    .estadisticas-hero-section {
        padding: var(--cer-space-16) 0 var(--cer-space-12);
    }

    .estadisticas-hero-box {
        padding: var(--cer-space-8) var(--cer-space-6);
        border-radius: 16px;
    }

    .estadisticas-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .documento-card-v2 {
        padding: 1.75rem 1.5rem;
    }

    .documento-pdf-icon {
        width: 60px;
        height: 60px;
    }

    .documento-title {
        font-size: 1.125rem;
        min-height: 48px;
    }

    .documento-date {
        font-size: 0.8125rem;
    }

    .documento-download-btn {
        padding: 0.75rem 1.75rem;
        font-size: 0.8125rem;
    }

    .pag-recurso-wrapper {
        margin-top: 40px;
        padding: 0 1rem;
    }

    .pag-link-recurso {
        padding: 10px 14px;
        font-size: 0.875rem;
    }

    .nav-btn-recurso .pag-link-recurso {
        padding: 10px 16px;
    }

    .estadisticas-controls-wrapper {
        flex-direction: column;
        align-items: stretch;
        padding: var(--cer-space-4);
    }

    .search-container {
        max-width: 100%;
    }

    .estadisticas-sort-select {
        min-width: fit-content;
    }

    .sort-container {
        overflow: hidden;
        width: 100%;
    }

    .estadisticas-grid {
        flex-direction: column;
        align-items: center;
    }

    .documento-card-v2 {
        width: 328px;
    }

    .documento-icono {
        width: 280px;
    }

    .documento-descarga {
        width: 280px;
    }

    .preview-features-grid {
        grid-template-columns: 1fr;
    }

    .estadisticas-cta-title {
        font-size: 1.5rem;
    }

    .estadisticas-cta-buttons {
        flex-direction: column;
    }

    .estadisticas-cta-buttons .btn-primary,
    .estadisticas-cta-buttons .btn-secondary {
        width: 100%;
    }

    .pag-link-recurso .text-nav-recurso {
        display: none;
    }
}

@media (max-width: 480px) {
    .estadisticas-hero-title {
        font-size: 2rem;
    }

    .estadisticas-cta-content {
        padding: 24px;
    }

    .preview-section-title {
        font-size: 1.75rem;
    }

    .documento-card-v2 {
        padding: 1.5rem 1.25rem;
        width: 280px;
    }

    .documento-pdf-icon {
        width: 56px;
        height: 56px;
    }

    .documento-pdf-label {
        font-size: 1rem;
    }

    .documento-title {
        font-size: 1.0625rem;
        min-height: 44px;
    }

    .documento-date {
        font-size: 0.75rem;
    }

    .documento-download-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.8125rem;
        gap: 0.5rem;
    }

    .download-icon {
        width: 16px;
        height: 16px;
    }

    .pag-recurso {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .pag-link-recurso {
        padding: 10px 12px;
        font-size: 0.8125rem;
    }

    .nav-btn-recurso .pag-link-recurso {
        padding: 10px 14px;
    }

    .pag-link-recurso .text-nav-recurso {
        font-size: 0.75rem;
    }
}

input:disabled,
select:disabled {
    background-color: rgba(245, 245, 245, 1);
    cursor: default !important;
    opacity: 0.6;
}

button:disabled {
    cursor: default !important;
    opacity: 0.6;
}
