:root {
    --primary-aqua: #00BCD4;
    --primary-aqua-dark: #0097A7;
    --primary-aqua-light: #B2EBF2;
    --primary-aqua-ultra-light: #E0F7FA;
    --secondary-navy: #1B365D;
    --accent-teal: #00695C;
    --accent-gold: #FFB300;
    --text-dark: #1A1A1A;
    --text-gray: #6B7280;
    --text-light: #9CA3AF;
    --bg-light: #FAFBFC;
    --bg-gradient: linear-gradient(135deg, #E0F7FA 0%, #ffffff 50%, #E8F5E8 100%);
    --card-shadow: 0 10px 25px rgba(0, 188, 212, 0.08), 0 4px 12px rgba(0, 188, 212, 0.06);
    --card-shadow-hover: 0 25px 50px rgba(0, 188, 212, 0.15), 0 15px 30px rgba(0, 188, 212, 0.08);
    --gradient-aqua: linear-gradient(135deg, var(--primary-aqua) 0%, var(--accent-teal) 100%);
    --gradient-gold: linear-gradient(135deg, var(--accent-gold) 0%, #FFA000 100%);
    --gradient-light: linear-gradient(135deg, var(--primary-aqua-ultra-light) 0%, #ffffff 100%);
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.18);
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 85% !important;
}

* {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--bg-gradient);
    overflow-x: hidden;
}

/* Enhanced Top Header with animated elements */
.top-header {
    background: var(--primary-aqua-dark);
    color: white;
    padding: 1rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.top-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><pattern id="waves" x="0" y="0" width="100" height="20" patternUnits="userSpaceOnUse"><path d="M0 10 Q25 0 50 10 T100 10 V20 H0 Z" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="20" fill="url(%23waves)"/></svg>') repeat-x;
}

.top-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 30%, rgba(0, 188, 212, 0.1) 100%);
}

@keyframes wave {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100px);
    }
}

.top-header h1 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

/* Enhanced Glassmorphism Navbar */
.navbar-custom {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 188, 212, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand img {
    height: 55px;
    width: 55px;
    border-radius: 50%;
    border: 3px solid var(--primary-aqua);
    transition: all 0.4s;
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.3);
}

.navbar-brand:hover img {
    transform: rotate(360deg) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 188, 212, 0.5);
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 600;
    padding: 0.75rem 1.2rem !important;
    margin: 0 0.25rem;
    border-radius: 8px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-aqua-dark) !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

.btn-primary-custom {
    background: var(--primary-aqua);
    color: white !important;
    font-weight: 700;
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary-custom:hover {
    background: #00bcd4;
    color: white !important;
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.4);
}


/* Enhanced Hero Carousel */
.hero-carousel {
    border-radius: 25px;
    overflow: hidden;
    box-shadow: var(--card-shadow-hover);
    position: relative;
    margin: 2rem 0;
}

.carousel-item img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 25px;
    transition: transform 1.5s ease;
}

.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.2s ease;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: var(--primary-aqua);
    transform: translateY(-50%) scale(1.1);
}

/* Enhanced Section Headers with Logo */
.section-header {
    position: relative;
    margin-bottom: 5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.section-header-content {
    flex: 1;
    text-align: left;
}

.section-header-logo {
    width: 250px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}



.section-header-logo img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.section-header-logo:hover img {
    transform: scale(1.1);
}

.section-header-logo .logo-icon {
    font-size: 3rem;
    color: white;
    transition: transform 0.3s ease;
}

.section-header-logo:hover .logo-icon {
    transform: scale(1.1) rotate(-5deg);
}

.section-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    position: relative;
    background: linear-gradient(135deg, var(--primary-aqua) 0%, var(--accent-teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    line-height: 1.1;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100px;
    height: 6px;
    background: var(--gradient-aqua);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.section-header:hover .section-title::after {
    width: 150px;
}

.section-subtitle {
    font-size: 1.3rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0;
    line-height: 1.8;
    font-weight: 400;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 992px) {
    .section-header {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .section-header-content {
        text-align: center;
    }

    .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .section-header:hover .section-title::after {
        width: 100px;
        left: 50%;
        transform: translateX(-50%);
    }

    .section-header-logo {
        width: 100px;
        height: 100px;
    }

    .section-title {
        font-size: 2.8rem;
    }

    .section-subtitle {
        max-width: 100%;
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .section-header {
        gap: 1.5rem;
    }

    .section-header-logo {
        width: 200px;
        height: 200px;
    }

    .section-header-logo .logo-icon {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .section-subtitle {
        font-size: 1.1rem;
    }
}

/* Enhanced Modern Cards with Glassmorphism */
.card-modern {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 3rem;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--glass-border);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--gradient-aqua);
    border-radius: 25px 25px 0 0;
}

.card-modern::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 188, 212, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.card-modern:hover::after {
    opacity: 1;
}

.card-modern:hover {
    transform: translateY(-12px);
    box-shadow: var(--card-shadow-hover);
    background: rgba(255, 255, 255, 0.95);
}

/* Enhanced Card Headers and Icons */
.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.card-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-aqua);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 8px 20px rgba(0, 188, 212, 0.3);
    transition: all 0.3s ease;
}

.card-modern:hover .card-icon {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 12px 30px rgba(0, 188, 212, 0.4);
}

.card-title {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: -0.5px;
}

.card-text {
    color: var(--text-gray);
    line-height: 1.8;
    font-size: 1rem;
    font-weight: 400;
    text-align: justify;
}

/* Enhanced Stats Section */
.stats-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
    padding: 4rem 2rem;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
            var(--primary-aqua) 0%,
            var(--primary-aqua-dark) 50%,
            var(--primary-aqua) 100%);
}

.stat-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: #ffffff;
    border-radius: 20px;
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(0, 188, 212, 0.05) 0%,
            rgba(0, 188, 212, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-aqua);
    box-shadow: 0 15px 40px rgba(0, 188, 212, 0.25);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-aqua) 0%, var(--primary-aqua-dark) 100%);
    border-radius: 50%;
    position: relative;
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px rgba(0, 188, 212, 0.3);
}

.stat-icon::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 2px solid var(--primary-aqua);
    opacity: 0;
    transition: all 0.4s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(360deg);
}

.stat-card:hover .stat-icon::after {
    opacity: 1;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
}

.stat-icon i {
    font-size: 2.5rem;
    color: #ffffff;
    position: relative;
    z-index: 1;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-aqua-dark);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-aqua) 0%, var(--primary-aqua-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.stat-label {
    color: #6c757d;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    z-index: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .stats-section {
        padding: 3rem 1rem;
    }

    .stat-card {
        padding: 2rem 1rem;
    }

    .stat-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }

    .stat-icon i {
        font-size: 1.8rem;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .stat-label {
        font-size: 0.85rem;
        letter-spacing: 1px;
    }
}

/* Enhanced Feature Cards */
.feature-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 3rem;
    text-align: center;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--glass-border);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.03) 0%, rgba(224, 247, 250, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--card-shadow-hover);
    background: rgba(255, 255, 255, 0.95);
}

.feature-icon {
    width: 90px;
    height: 90px;
    background: var(--gradient-aqua);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: white;
    font-size: 2.2rem;
    box-shadow: 0 10px 25px rgba(0, 188, 212, 0.3);
    position: relative;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 15px 35px rgba(0, 188, 212, 0.4);
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    letter-spacing: -0.5px;
}

.feature-text {
    color: var(--text-gray);
    line-height: 1.8;
    position: relative;
    text-align: justify;
    z-index: 1;
    font-size: 1.1rem;
}

/* Enhanced Gallery Cards */
.gallery-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--glass-border);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
}

.gallery-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--card-shadow-hover);
}

.gallery-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}


.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-card:hover .gallery-overlay::before {
    opacity: 1;
    transform: scale(1);
}

.gallery-content {
    padding: 2.5rem;
}

.gallery-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.2rem;
    letter-spacing: -0.5px;
}

.gallery-text {
    color: var(--text-gray);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Enhanced News Cards notices */

/* ===================================
   SECCIÓN DE NOTICIAS - ESTILOS BASE
   =================================== */

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 30px;
}

.news-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e7eb;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border-color: #d1d5db;
}

.news-card .card-header {
    padding: 24px;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-card .card-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.news-card .card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
    line-height: 1.5;
    letter-spacing: -0.2px;
}

.news-card .card-description {
    font-size: 0.93rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
    font-weight: 500;
}

/* ===================================
   TABS DE NAVEGACIÓN
   =================================== */

.tabs-container {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.tabs-nav {
    display: flex;
    padding: 0 20px;
    overflow-x: auto;
}

.tab-button {
    background: none;
    border: none;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-button.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background: white;
}

.tab-button:hover:not(.active) {
    color: #495057;
    background: rgba(102, 126, 234, 0.05);
}

.tab-content {
    padding: 16px;
    min-height: 200px;
    max-height: 300px;
    overflow-y: auto;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   GRID DE MULTIMEDIA
   =================================== */

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.media-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
    aspect-ratio: 16/10;
}

.media-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.media-item img,
.media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-type-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    backdrop-filter: blur(5px);
    z-index: 2;
}

.media-type-badge.video {
    background: rgba(220, 38, 38, 0.9);
}

.media-type-badge.audio {
    background: rgba(37, 99, 235, 0.9);
}

/* Icono de play para videos */
.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #1a1a1a;
    z-index: 2;
    pointer-events: none;
    transition: all 0.3s ease;
    padding-left: 4px;
}

.media-item:hover .play-icon {
    background: white;
    transform: translate(-50%, -50%) scale(1.1);
}

/* ===================================
   GRID DE DOCUMENTOS
   =================================== */

.documents-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.document-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.document-item:hover {
    border-color: #667eea;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.document-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
}

.document-icon.pdf {
    background: #e74c3c;
}

.document-icon.doc {
    background: #2980b9;
}

.document-icon.xls {
    background: #27ae60;
}

.document-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 2px;
}

.document-info p {
    font-size: 12px;
    color: #718096;
    margin: 0;
}

/* ===================================
   MODAL DE MULTIMEDIA
   =================================== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    backdrop-filter: blur(10px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    position: relative;
    max-width: 85vw;
    max-height: 85vh;
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
    animation: modalZoomIn 0.3s ease;
}

@keyframes modalZoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-media {
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 8px;
}

.modal-media.modal-media {
    background: #000;
}

/* Botón de cerrar modal */
.modal-close {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    font-size: 24px;
    z-index: 10002;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: rotate(90deg) scale(1.1);
}

/* Botones de navegación del modal */
.modal-prev,
.modal-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    z-index: 10002;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.modal-prev:hover,
.modal-next:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

/* Contador de imágenes */
.modal-counter {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10002;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Reproductor de audio en modal */
/* ===================================
   MODAL DE DOCUMENTOS
   =================================== */

.document-viewer {
    width: 85vw;
    height: 85vh;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.document-viewer-header {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.document-viewer-title {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
    flex: 1;
}

.document-viewer-content {
    flex: 1;
    overflow: hidden;
}

.document-viewer iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.document-unsupported {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.document-unsupported .icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.document-unsupported h3 {
    font-size: 20px;
    color: #2d3748;
    margin-bottom: 10px;
}

.document-unsupported p {
    margin: 5px 0;
}

.download-btn {
    margin-top: 20px;
    padding: 12px 24px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: #5a67d8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* ===================================
   SCROLLBAR PERSONALIZADO
   =================================== */

.tab-content::-webkit-scrollbar {
    width: 6px;
}

.tab-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.tab-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.tab-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .news-card {
        border-radius: 12px;
    }

    .news-card .card-header {
        padding: 18px;
        gap: 12px;
    }

    .news-card .card-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .news-card .card-title {
        font-size: 1.1rem;
    }

    .news-card .card-description {
        font-size: 0.9rem;
    }

    .tab-content {
        padding: 12px;
        max-height: 250px;
    }

    .media-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
    }

    .media-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .media-nav.prev {
        left: 10px;
    }

    .media-nav.next {
        right: 10px;
    }

    .media-modal-close {
        width: 40px;
        height: 40px;
        font-size: 20px;
        top: 10px;
        right: 10px;
    }

    .media-counter {
        font-size: 12px;
        padding: 8px 14px;
        top: 10px;
    }

    .document-viewer {
        width: 95vw;
        height: 90vh;
    }
}

/* Enhanced Attachments */
.attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-top: 2.5rem;
}

.attachment-link {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.5rem;
    background: var(--primary-aqua-ultra-light);
    color: var(--primary-aqua-dark);
    text-decoration: none;
    border-radius: 15px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.attachment-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-aqua);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.attachment-link:hover::before {
    left: 0;
}

.attachment-link:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 188, 212, 0.3);
    border-color: var(--primary-aqua);
}

.attachment-link i {
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
}

.attachment-link span {
    position: relative;
    z-index: 1;
}


/* Enhanced Contact Card */
.contact-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 3rem;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--glass-border);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(0, 188, 212, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    width: 55px;
    height: 55px;
    background: var(--gradient-aqua);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    margin-right: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(0, 188, 212, 0.3);
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(0, 188, 212, 0.4);
}

.contact-text {
    flex: 1;
}

.contact-label {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    letter-spacing: -0.3px;
}

.contact-value {
    color: var(--text-gray);
    line-height: 1.7;
    font-size: 1.05rem;
}

.contact-value a {
    color: var(--primary-aqua);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-value a:hover {
    color: var(--primary-aqua-dark);
}

/* Enhanced Footer */
.footer {
    background: #37474f;
    border-top: 1px solid var(--primary-aqua-ultra-light);
    padding: 3rem 0 1.5rem;
    margin-top: auto;
}

.footer-main {
    border-bottom: 1px solid var(--primary-aqua-ultra-light);
    padding-bottom: 2.5rem;
    margin-bottom: 2rem;
}

.footer h5 {
    color: var(--primary-aqua-ultra-light);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.footer-brand h5 {
    color: var(--primary-aqua-ultra-light);
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-brand .brand-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent-blue), #3b82f6);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.footer-description {
    color: #ffffff;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 320px;
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--secondary-gray);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
}

.footer-badge i {
    color: #ffffff;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    transition: all 0.2s ease;
    display: block;
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateX(4px);
}

.contact-info {
    list-style: none;
    padding: 0;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #ffffff;
    font-size: 0.95rem;
}

.contact-info i {
    color: var(--accent-blue);
    width: 16px;
    text-align: center;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.social-section p {
    color: #ffffff;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 44px;
    height: 44px;
    background: var(--secondary-gray);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--accent-blue);
    color: white;
    transform: translateY(-2px);
}

.social-links a.facebook:hover {
    background: #1877f2;
}

.social-links a.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-links a.youtube:hover {
    background: #ff0000;
}

.social-links a.whatsapp:hover {
    background: #25d366;
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    color: var(--text-gray);
}

.footer-bottom p {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.footer-bottom .copyright {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.8rem;
}

.footer-bottom .made-with {
    font-size: 0.85rem;
    opacity: 0.8;
}

.footer-bottom .heart {
    color: #ef4444;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Enhanced Utility Classes */
.text-primary-custom {
    color: var(--primary-aqua) !important;
}

.bg-gradient-primary {
    background: var(--gradient-aqua) !important;
}

.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
}

/* Enhanced Responsive Design */
@media (max-width: 1200px) {
    .section-title {
        font-size: 3rem;
    }

    .carousel-overlay h2 {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .navbar-custom {
        padding: 0.5rem 0;
    }

    .hero-carousel {
        margin: 1rem 0;
    }

    .carousel-item img {
        height: 400px;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .carousel-overlay h2 {
        font-size: 2.5rem;
    }

    .stats-section {
        padding: 3rem 0;
    }
}

@media (max-width: 768px) {
    .top-header h1 {
        font-size: 1.3rem;
        padding: 0 1rem;
    }

    .carousel-overlay h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .carousel-overlay p {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .section-subtitle {
        font-size: 1.1rem;
        margin-bottom: 3rem;
    }

    .stat-number {
        font-size: 3rem;
    }

    .stat-label {
        font-size: 1rem;
    }

    .card-modern,
    .feature-card,
    .contact-card {
        padding: 2rem;
    }

    .news-title {
        font-size: 1.4rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .attachments {
        flex-direction: column;
    }

    .image-gallery {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 45px;
        height: 45px;
    }

    .carousel-control-prev {
        left: 10px;
    }

    .carousel-control-next {
        right: 10px;
    }

    .feature-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }

    .card-icon {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
    }

    .footer {
        padding: 3rem 0 2rem;
    }

    .social-links {
        gap: 1rem;
    }

    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .carousel-item img {
        height: 300px;
    }

    .carousel-overlay h2 {
        font-size: 1.6rem;
    }

    .carousel-overlay p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .btn-primary-custom {
        padding: 0.75rem 1.5rem;
        font-size: 0.85rem;
    }

    .card-modern,
    .feature-card,
    .contact-card,
    .news-card {
        padding: 1.5rem;
    }

    .modal-header {
        padding: 1.5rem;
    }

    .image-controls,
    .pdf-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .image-controls button,
    .pdf-controls button {
        justify-content: center;
    }
}

/* Animations and Effects */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Scroll animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Loading states */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ===== MODAL STYLES FOR MULTIMEDIA AND DOCUMENTS ===== */

.media-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.media-modal.active {
    display: flex;
}

.media-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 85vw;
    height: 85vh;
}

.media-modal img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 0;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}

.media-modal video {
    max-width: 100%;
    max-height: 100%;
    border-radius: 0;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}

.media-modal audio {
    max-width: 100%;
    width: 100%;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.media-modal-close {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
    line-height: 1;
}

.media-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.8);
    transform: rotate(90deg);
}

.media-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.media-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.media-nav.prev {
    left: 20px;
}

.media-nav.next {
    right: 20px;
}

.media-counter {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    z-index: 10001;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
}

/* MODAL DE DOCUMENTOS */
.document-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.document-modal.active {
    display: flex;
}

.document-viewer {
    background: white;
    border-radius: 16px;
    width: 90vw;
    height: 90vh;
    display: flex;
    flex-direction: column;
}

.document-viewer-header {
    background: #f8f9fa;
    padding: 18px 24px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 16px 16px 0 0;
    gap: 15px;
}

.document-viewer-header h3 {
    font-size: 1.15rem;
    color: #2d3748;
    margin: 0;
    flex: 1;
}

.document-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.document-viewer-content {
    flex: 1;
    overflow: hidden;
}

.document-viewer iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.download-btn {
    background: var(--primary-aqua);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.download-btn:hover {
    background: var(--primary-aqua-dark);
    transform: translateY(-2px);
}

.document-unsupported {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 40px 20px;
    text-align: center;
}

.document-unsupported .icon {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.document-unsupported h3 {
    color: #2d3748;
    margin-bottom: 10px;
}

.document-unsupported p {
    color: #718096;
    margin-bottom: 8px;
}

.document-unsupported .download-btn {
    margin-top: 20px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .media-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .media-nav.prev {
        left: 10px;
    }

    .media-nav.next {
        right: 10px;
    }

    .media-modal-close {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .document-viewer {
        width: 95vw;
        height: 95vh;
    }

    .document-viewer-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .document-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .download-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
}

/* ===== MODAL AUTOMÁTICO DE NOTICIAS DEL DÍA ===== */

/* Modal Automático Estilo Admin */
.auto-news-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1999;
    animation: fadeInModal 0.3s ease;
}

.auto-news-modal-admin {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    z-index: 2000;
    animation: slideInModal 0.3s ease;
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInModal {
    from {
        transform: translate(-50%, -50%) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.modal-header-auto {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 12px 12px 0 0;
}

.modal-title-auto {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin: 0;
}

.close-auto {
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.close-auto:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-body-auto {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.news-card-auto {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card-header-custom-auto {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-title-auto {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
}

.card-description-auto {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Tabs */
.tabs-container-auto {
    margin: 12px 0;
}

.tabs-nav-auto {
    display: flex;
    gap: 12px;
    border-bottom: 2px solid #f0f0f0;
    padding: 0;
    margin: 0;
}

.tab-button-auto {
    background: none;
    border: none;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #999;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tab-button-auto:hover {
    color: #666;
}

.tab-button-auto.active {
    color: #0891b2;
}

.tab-button-auto.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #0891b2;
}

.tab-content-custom-auto {
    margin-top: 16px;
}

.tab-panel-auto {
    display: none;
}

.tab-panel-auto.active {
    display: block;
}

/* Grid de Multimedia */
.media-grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
}

.media-item-auto {
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #f5f5f5;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.media-item-auto:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.media-item-auto img,
.media-item-auto video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-type-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.media-type-badge.video {
    background: rgba(220, 53, 69, 0.8);
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32px;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Grid de Documentos */
.documents-grid-auto {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.document-item-auto {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
    cursor: pointer;
    transition: all 0.3s ease;
}

.document-item-auto:hover {
    background: #f0f0f0;
    border-color: #0891b2;
    transform: translateX(4px);
}

.document-icon-auto {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.document-icon-auto.pdf {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.document-icon-auto.doc,
.document-icon-auto.docx {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.document-icon-auto.xls,
.document-icon-auto.xlsx {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.document-info-auto {
    flex: 1;
    min-width: 0;
}

.document-info-auto h4 {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 4px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.document-info-auto p {
    font-size: 12px;
    color: #999;
    margin: 0;
}

.modal-footer-auto {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-top: 1px solid #e0e0e0;
    background: #fafafa;
    border-radius: 0 0 12px 12px;
}

.btn-nav-auto {
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.btn-nav-auto:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.3);
}

.btn-nav-auto:active {
    transform: translateY(0);
}

.btn-prev-auto:disabled,
.btn-next-auto:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.noticia-counter-auto {
    font-size: 13px;
    color: #666;
    font-weight: 600;
}

/* Media Modal desde automático */
#autoMediaViewerModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
}

#autoMediaViewerModal.active {
    display: flex;
}

/* Document Modal desde automático */
#autoDocumentViewerModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#autoDocumentViewerModal.active {
    display: flex;
}

/* Responsive */
@media (max-width: 768px) {
    .auto-news-modal-admin {
        width: 95%;
        max-height: 90vh;
    }

    .modal-body-auto {
        padding: 16px;
    }

    .card-title-auto {
        font-size: 18px;
    }

    .card-description-auto {
        font-size: 13px;
    }

    .media-grid-auto {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }

    .tabs-nav-auto {
        gap: 8px;
    }

    .tab-button-auto {
        font-size: 12px;
        padding: 10px 12px;
    }

    .modal-footer-auto {
        flex-direction: column;
        gap: 12px;
        padding: 12px 16px;
    }

    .btn-nav-auto {
        width: 100%;
        justify-content: center;
    }
}