 :root {
     --primary-color: #24a0a5;
     --secondary-color: #4A487A;
     --tercer-color: #F1F55A;
     --cuarto-color: #F9B2FA;
     --accent-color: #f18489;
     --light-color: #f2f2f2;
     --dark-color: #1a202c;
     --font-main: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
 }



 body {
     
     font-family: var(--font-main);
     line-height: 1.6;
     color: #333;
     overflow-x: hidden;
     background-color: white;
 }

 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
 }

 .container {
     max-width: 1200px;
     margin: 0 auto;
     padding: 0 20px;
 }


  .navbar {
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     background: rgba(255, 255, 255, 0.9);
     backdrop-filter: blur(10px);
     box-shadow: 0 1px 5px rgba(0, 0, 0, 0.08);
     z-index: 1000;
}

.navbar-container {
     display: flex;
     justify-content: space-between;
     align-items: center;
     padding: 15px 20px;
     max-width: 1200px;
     margin: 0 auto;
}

.navbar-title {
     font-size: 1.3rem;
     font-weight: 700;
     color: var(--secondary-color);
     padding-left: 10px;
     letter-spacing: 0.5px;
}

.navbar-links {
     display: flex;
     gap: 20px;
}

.nav-link {
     text-decoration: none;
     color: var(--secondary-color);
     font-weight: 600;
     padding: 8px 15px;
     border-radius: 5px;
     transition: all 0.3s;
}

.nav-link:hover {
     background-color: var(--primary-color);
     color: white;
}

/* Hamburger button */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--secondary-color);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
    opacity: 0;
}
.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .navbar-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(10px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
        padding: 10px 0 16px;
        gap: 0;
        z-index: 1050;
    }

    .navbar-links.open {
        display: flex;
    }

    .navbar-container {
        position: relative;
    }

    .nav-link {
        width: 100%;
        padding: 12px 24px;
        border-radius: 0;
        font-size: 0.95rem;
    }

    .nav-link:hover {
        background-color: rgba(36, 160, 165, 0.1);
        color: var(--primary-color);
    }
}


 .recursero-hero {
     background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
     background: linear-gradient(130deg, var(--primary-color) 0%, var(--secondary-color) 100%);
     background: url('../img/herodocentes.png')center/cover no-repeat;
     color: white;
     padding: 80px 20px;
     position: relative;
     overflow: hidden;
 }

 .recursero-hero::before {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     right: 0;
     bottom: 0;
     /*background: var(--cuarto-color);*/
     opacity: 0.5;
     background-color: rgba(0, 0, 0, 0.5);
     z-index: 0;
 }

 .recursero-hero .container {
     max-width: 1200px;
     margin: 0 auto;
     position: relative;
     z-index: 1;
 }

 .hero-content {
     text-align: center;
     max-width: 900px;
     margin: 0 auto;
 }

 .hero-badge {
     display: inline-block;
     background: rgba(255, 255, 255, 0.2);
     padding: 8px 20px;
     border-radius: 30px;
     font-size: 0.9rem;
     font-weight: 600;
     margin-bottom: 20px;
     backdrop-filter: blur(10px);
 }

 .hero-content h1 {
     font-size: 3rem;
     margin-bottom: 20px;
     text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
 }

 .hero-content p {
     font-size: 1.3rem;
     line-height: 1.8;
     margin-bottom: 30px;
     opacity: 0.95;
 }

 .hero-cta {
     display: inline-block;
     background: white;
     color: #1e3c72;
     padding: 15px 40px;
     border-radius: 30px;
     text-decoration: none;
     font-weight: 700;
     font-size: 1.1rem;
     transition: all 0.3s ease;
     box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
 }

 .hero-cta:hover {
     transform: translateY(-3px);
     box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
 }


 .features-section {
     padding: 100px 20px;
     background: linear-gradient(180deg, white 0%, #fafbfc 100%);
     text-align: center;
 }

 .features-section h2 {
     font-size: clamp(1.8rem, 4vw, 2.2rem);
     color: var(--secondary-color);
     margin-bottom: 15px;
     animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
 }

 .features-section p {
     font-size: clamp(1rem, 2vw, 1.1rem);
     color: #666;
     max-width: 1100px;
     margin: 0 auto 60px;
     animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.1s backwards;
     text-align: left;
 }

 .features-grid {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
     gap: 35px;
     max-width: 1100px;
     margin: 0 auto;
 }

 .feature-card {
     background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
     border-radius: 20px;
     padding: 45px 30px;
     box-shadow:
         0 10px 30px rgba(0, 0, 0, 0.08),
         0 1px 3px rgba(0, 0, 0, 0.05);
     transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
     position: relative;
     overflow: hidden;
     animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) backwards;
 }

 .feature-card:nth-child(1) {
     animation-delay: 0.2s;
 }

 .feature-card:nth-child(2) {
     animation-delay: 0.3s;
 }

 .feature-card:nth-child(3) {
     animation-delay: 0.4s;
 }

 .feature-card::before {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
     opacity: 0;
     transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
     z-index: 0;
 }

 .feature-card:hover {
     transform: translateY(-10px) scale(1.02);
     box-shadow:
         0 20px 50px rgba(36, 160, 165, 0.15),
         0 5px 15px rgba(0, 0, 0, 0.08);
 }

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

 .feature-icon {
     font-size: 50px;
     margin-bottom: 20px;
     transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
     position: relative;
     z-index: 1;
     animation: pulse 2s ease-in-out infinite;
 }

 @keyframes pulse {

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

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

 .feature-card:hover .feature-icon {
     transform: scale(1.15) rotate(5deg);
     animation: none;
 }

 .feature-card h3 {
     color: var(--secondary-color);
     font-size: 1.4rem;
     margin-bottom: 12px;
     position: relative;
     z-index: 1;
     transition: color 0.3s ease;
 }

 .feature-card p {
     position: relative;
     z-index: 1;
     margin: 0;
 }

 @keyframes fadeInUp {
     from {
         opacity: 0;
         transform: translateY(20px);
     }

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


 .stats-section {
     background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
     background: var(--);
     color: white;
     padding: 60px 20px;
 }

 .stats-container {
     max-width: 1200px;
     margin: 0 auto;
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
     gap: 40px;
     text-align: center;
 }

 .stat-item {
     padding: 20px;
 }

 .stat-number {
     font-size: 3rem;
     font-weight: 700;
     margin-bottom: 10px;
     text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
 }

 .stat-label {
     font-size: 1.1rem;
     opacity: 0.9;
 }


 .how-to-section {
     padding: 80px 20px;
     background: #f8f9fa;
 }

 .how-to-section .container {
     max-width: 1200px;
     margin: 0 auto;
 }

 .how-to-section h2 {
     text-align: center;
     font-size: 2.5rem;
     color: #1e3c72;
     margin-bottom: 60px;
 }

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

 .step-card {
     background: whitegi;
     padding: 35px 25px;
     border-radius: 16px;
     text-align: center;
     position: relative;
     box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
 }

 .step-number {
     position: absolute;
     top: -20px;
     left: 50%;
     transform: translateX(-50%);
     width: 50px;
     height: 50px;
     background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
     background: var(--accent-color);
     color: white;
     border-radius: 50%;
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 1.5rem;
     font-weight: 700;
     box-shadow: 0 4px 10px rgba(30, 60, 114, 0.3);
 }

 .step-card h3 {
     color: #1e3c72;
     margin-bottom: 15px;
     margin-top: 10px;
     font-size: 1.3rem;
 }

 .step-card p {
     color: #666;
     line-height: 1.6;
 }


 /* ===== FILTROS ===== */
 .filters-section {
     padding: 15px 0;
     background: var(--light-color);
     top: 66px;
     z-index: 100;
     box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
     border-bottom: 1px solid #e0e0e0;
 }

 .filters-header {
     display: flex;
     justify-content: space-between;
     align-items: center;
     margin-bottom: 12px;
     flex-wrap: wrap;
     gap: 10px;
 }

 /* ── Buscador global (encima de filtros, ancho completo) ── */
 .global-search-bar {
     padding: 14px 0 12px;
     border-bottom: 1px solid #e8e8e8;
     margin-bottom: 12px;
 }

 .global-search-wrapper {
     position: relative;
     display: flex;
     align-items: center;
     width: 100%;
 }

 .global-search-icon {
     position: absolute;
     left: 14px;
     color: #bbb;
     font-size: 0.85rem;
     pointer-events: none;
 }

 .global-search-input {
     width: 100%;
     height: 40px;
     padding: 0 40px 0 40px;
     border: 1.5px solid #ddd;
     border-radius: 24px;
     font-size: 0.9rem;
     font-family: var(--font-main);
     color: #444;
     background: white;
     outline: none;
     transition: border-color 0.2s, box-shadow 0.2s;
 }

 .global-search-input:focus {
     border-color: var(--primary-color);
     box-shadow: 0 0 0 3px rgba(36, 160, 165, 0.1);
 }

 .global-search-input::placeholder {
     color: #bbb;
 }

 .global-search-clear {
     position: absolute;
     right: 12px;
     background: none;
     border: none;
     color: #aaa;
     cursor: pointer;
     font-size: 0.8rem;
     padding: 6px;
     display: flex;
     align-items: center;
     transition: color 0.15s;
 }

 .global-search-clear:hover {
     color: var(--accent-color);
 }

 @media (max-width: 768px) {
     .global-search-input {
         font-size: 0.85rem;
         height: 38px;
     }
 }

 .filters-title {
     font-size: 0.95rem;
     font-weight: 700;
     color: var(--secondary-color);
     display: flex;
     align-items: center;
     gap: 6px;
 }

 .reset-filters-btn {
     padding: 6px 16px;
     background: var(--accent-color);
     color: white;
     border: none;
     border-radius: 16px;
     cursor: pointer;
     font-weight: 600;
     font-size: 0.8rem;
     transition: all 0.3s ease;
     font-family: var(--font-main);
     display: flex;
     align-items: center;
     gap: 6px;
 }

 .reset-filters-btn:hover {
     background: #e86d72;
     transform: translateY(-1px);
     box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
 }

 .filters-content {
     display: grid;
     grid-template-columns: auto 1fr;
     gap: 15px;
     align-items: start;
 }

 .filter-categories {
     display: flex;
     flex-direction: column;
     gap: 10px;
 }

 .filter-category {
     display: flex;
     align-items: center;
     gap: 10px;
     flex-wrap: wrap;
 }

 .filter-category-title {
     font-size: 0.75rem;
     font-weight: 600;
     color: #888;
     min-width: 80px;
     text-transform: uppercase;
     letter-spacing: 0.3px;
 }

 .chips-container {
     display: flex;
     flex-wrap: wrap;
     gap: 6px;
 }

 .chip {
     display: inline-flex;
     align-items: center;
     padding: 4px 12px;
     background: white;
     border: 1.5px solid #ddd;
     border-radius: 16px;
     cursor: pointer;
     transition: all 0.2s ease;
     font-size: 0.8rem;
     font-weight: 500;
     color: #555;
     user-select: none;
 }

 .chip:hover {
     border-color: var(--primary-color);
     background: #f0f8f9;
     transform: translateY(-1px);
 }

 .chip.active {
     background: var(--primary-color);
     color: white;
     border-color: var(--primary-color);
     box-shadow: 0 2px 4px rgba(36, 160, 165, 0.25);
 }

 .chip.category-chip.active {
     background: var(--secondary-color);
     border-color: var(--secondary-color);
     box-shadow: 0 2px 4px rgba(74, 72, 122, 0.25);
 }

 .chip.subject-chip.active {
     background: #e67e22;
     border-color: #e67e22;
     box-shadow: 0 2px 4px rgba(230, 126, 34, 0.25);
 }

 .chip.mode-chip.active {
     background: #9b59b6;
     border-color: #9b59b6;
     box-shadow: 0 2px 4px rgba(155, 89, 182, 0.25);
 }

 .tag.mode {
     background: #f4ecf7;
     color: #7d3c98;
 }

 /* ── Buscador de materia ── */
 .subject-search-wrapper {
     position: relative;
     display: flex;
     align-items: center;
 }

 .subject-search-input {
     padding: 5px 32px 5px 12px;
     border: 1.5px solid #ddd;
     border-radius: 16px;
     font-size: 0.82rem;
     font-family: var(--font-main);
     color: #444;
     background: white;
     outline: none;
     width: 230px;
     transition: border-color 0.2s, box-shadow 0.2s;
 }

 .subject-search-input:focus {
     border-color: #e67e22;
     box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.1);
 }

 .subject-search-icon {
     position: absolute;
     right: 10px;
     color: #bbb;
     font-size: 0.8rem;
     pointer-events: none;
 }

 /* Dropdown de resultados */
 .subject-dropdown {
     position: absolute;
     top: calc(100% + 6px);
     left: 0;
     background: white;
     border: 1.5px solid #e8e8e8;
     border-radius: 12px;
     box-shadow: 0 8px 28px rgba(0,0,0,0.12);
     z-index: 300;
     width: 320px;
     max-height: 260px;
     overflow-y: auto;
     display: none;
     padding: 6px;
 }

 .subject-dropdown.open {
     display: block;
 }

 .subject-dropdown-item {
     display: flex;
     align-items: center;
     gap: 8px;
     padding: 8px 12px;
     border-radius: 8px;
     cursor: pointer;
     font-size: 0.82rem;
     color: #444;
     font-family: var(--font-main);
     transition: background 0.15s;
 }

 .subject-dropdown-item:hover {
     background: #fef6ee;
     color: #e67e22;
 }

 .subject-dropdown-item.selected {
     background: #fef6ee;
     color: #e67e22;
     font-weight: 600;
 }

 .subject-dropdown-item .item-check {
     width: 16px;
     height: 16px;
     border: 1.5px solid #ddd;
     border-radius: 4px;
     flex-shrink: 0;
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 0.65rem;
     transition: all 0.15s;
 }

 .subject-dropdown-item.selected .item-check {
     background: #e67e22;
     border-color: #e67e22;
     color: white;
 }

 .subject-dropdown-empty {
     padding: 14px 12px;
     text-align: center;
     font-size: 0.8rem;
     color: #bbb;
     font-family: var(--font-main);
 }

 /* Chips de materias seleccionadas (bajo el input) */
 .subject-selected-chips {
     display: flex;
     flex-wrap: wrap;
     gap: 5px;
     margin-top: 6px;
 }

 /* ── Footer filtros ── */
 .filters-footer {
     display: flex;
     justify-content: space-between;
     align-items: center;
     margin-top: 10px;
     padding-top: 10px;
     border-top: 1px solid #e8e8e8;
     flex-wrap: wrap;
     gap: 10px;
 }

 .active-filter-tags {
     display: flex;
     flex-wrap: wrap;
     gap: 6px;
     flex: 1;
 }

 .active-filter-tag {
     display: inline-flex;
     align-items: center;
     padding: 3px 10px;
     background: #e8f4f7;
     color: var(--primary-color);
     border-radius: 12px;
     font-size: 0.75rem;
     font-weight: 600;
     gap: 6px;
 }

 .remove-filter {
     cursor: pointer;
     font-weight: bold;
     transition: transform 0.2s;
     font-size: 1rem;
 }

 .remove-filter:hover {
     transform: scale(1.2);
 }

 .results-count {
     font-size: 0.8rem;
     color: #888;
     font-weight: 500;
     white-space: nowrap;
 }

 /* Responsive */
 @media (max-width: 768px) {
     .hero-content h1 { font-size: 2rem; }
     .hero-content p { font-size: 1.1rem; }
     .features-section h2, .how-to-section h2 { font-size: 2rem; }
     .stat-number { font-size: 2.5rem; }
     .filters-header { flex-direction: column; align-items: flex-start; }
     .reset-filters-btn { width: 100%; justify-content: center; }
     .subject-search-input { width: 180px; }
     .subject-dropdown { width: calc(100vw - 40px); }
 }

 /* Content Section */
 .content-section {
     padding: 60px 0;
 }

 .resources-grid {
     display: grid;
     grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
     gap: 30px;
     margin-top: 30px;
 }

 /* Resource Card */
 .resource-card {
     background: white;
     border-radius: 8px;
     box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
     overflow: hidden;
     transition: all 0.2s ease;
     display: flex;
     flex-direction: column;
     border: 1px solid #eee;
 }

 .resource-card:hover {
     transform: translateY(-3px);
     box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
     border-color: var(--primary-color);
 }

 .resource-header {
     background: var(--light-color);
     padding: 15px 20px;
     color: #333;
     border-bottom: 1px solid #eee;
 }

 .resource-level {
     display: inline-block;
     background: #f0f8ff;
     color: var(--primary-color);
     border: 1px solid var(--primary-color);
     padding: 2px 8px;
     border-radius: 4px;
     font-size: 0.8rem;
     font-weight: 600;
     margin-bottom: 8px;
 }

 .resource-title {
     font-size: 1.2rem;
     font-weight: 700;
     color: var(--secondary-color);
     margin-bottom: 5px;
 }

 .resource-meta {
     padding: 20px;
     flex-grow: 1;
     display: flex;
     flex-direction: column;
 }

 .resource-meta p {
     color: #666;
     margin-bottom: 10px;
     font-size: 0.95rem;
 }

 .resource-tags {
     display: flex;
     flex-wrap: wrap;
     gap: 8px;
     margin: 15px 0;
 }

 .tag {
     background: #e8f4f7;
     color: var(--primary-color);
     padding: 5px 12px;
     border-radius: 20px;
     font-size: 0.8rem;
     font-weight: 600;
 }

 .tag.category {
     background: #f0e8ff;
     color: var(--secondary-color);
 }

 .tag.subject {
     background: #fff3cd;
     color: #856404;
 }

 .resource-description {
     color: #555;
     font-size: 0.95rem;
     line-height: 1.5;
     margin-bottom: auto;
 }

 .resource-actions {
     padding: 20px;
     border-top: 1px solid #eee;
     display: flex;
 }

 .btn-view-pdf {
     flex: 1;
     padding: 12px 20px;
     background: var(--primary-color);
     color: white;
     border: none;
     border-radius: 4px;
     cursor: pointer;
     font-weight: 600;
     transition: all 0.3s;
     font-family: var(--font-main);
     font-size: 0.9rem;
     text-align: center;
 }

 .btn-view-pdf:hover {
     transform: translateY(-1px);
     box-shadow: 0 5px 15px rgba(36, 160, 165, 0.2);
     background: #208e93;
 }

 .no-results {
     text-align: center;
     padding: 60px 20px;
     color: #999;
 }

 .no-results h3 {
     color: var(--secondary-color);
     margin-bottom: 10px;
 }

 /*videos*/
 .videos-section {
     background: linear-gradient(180deg, #f4f6f9 0%, #eef1f5 100%);
     padding: 100px 20px;
 }

 .videos-section h2 {
     text-align: center;
     font-size: clamp(1.9rem, 4vw, 2.3rem);
     color: var(--secondary-color);
     margin-bottom: 60px;
     animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);

 }



 .videos-grid {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
     gap: 35px;
     max-width: 1100px;
     margin: 0 auto;
 }

 .video-card {
     background: white;
     border-radius: 20px;
     overflow: hidden;
     box-shadow:
         0 10px 30px rgba(0, 0, 0, 0.08),
         0 1px 3px rgba(0, 0, 0, 0.05);
     transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
     animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) backwards;
     position: relative;
 }

 .video-card:nth-child(1) {
     animation-delay: 0.2s;
 }

 .video-card:nth-child(2) {
     animation-delay: 0.3s;
 }

 .video-card:nth-child(3) {
     animation-delay: 0.4s;
 }

 .video-card::after {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     right: 0;
     bottom: 0;
     background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
     opacity: 0;
     transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
     pointer-events: none;
     z-index: 1;
 }

 .video-card:hover {
     transform: translateY(-10px);
     box-shadow:
         0 20px 50px rgba(36, 160, 165, 0.2),
         0 5px 15px rgba(0, 0, 0, 0.1);
 }

 .video-card:hover::after {
     opacity: 0.02;
 }

 .video-frame {
     position: relative;
     padding-bottom: 56.25%;
     height: 0;
     overflow: hidden;
     background: #000;
 }

 .video-frame iframe {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     border: none;
     transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
 }

 .video-card:hover .video-frame iframe {
     transform: scale(1.05);
 }

 .video-content {
     padding: 25px;
     position: relative;
     z-index: 2;
 }

 .video-content h3 {
     font-size: 1.3rem;
     color: var(--secondary-color);
     margin-bottom: 12px;
     transition: color 0.3s ease;
 }

 .video-card:hover .video-content h3 {
     color: var(--primary-color);
 }

 .video-content p {
     font-size: 0.95rem;
     color: #666;
     margin: 0;
     line-height: 1.6;
 }

 .videos-section>p {
     text-align: left;
     /* Centra el texto */
     max-width: 1100px;
     /* Evita que el texto se estire demasiado a los lados */
     margin: 10px auto 40px;
     /* Margen: Arriba | Auto (centrado) | Abajo (separación de los videos) */
     font-size: 1.1rem;
     /* Un poco más grande que el texto normal para destacar */
     line-height: 1.6;
     /* Espaciado entre líneas para mejor lectura */
     color: #555;
     /* Un gris suave (ajusta este color según tu paleta) */
     padding: 0 20px;
     /* Un poco de aire a los costados para vista móvil */

 }

 

 /* Footer */
 footer {
    background-color: #002733;
    color: white;
    padding: 40px 20px 20px;
    font-family: Arial, sans-serif;
}

.footer-gov-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-gov-logo img {
    height: 50px;
    width: auto;
    margin-bottom: 25px;
}

.footer-gov-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    margin: 0 0 30px 0;
}

.footer-gov-logos {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-gov-logo-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
}

.footer-gov-logo-item img {
    height: 40px;
    width: auto;
}

.footer-gov-links {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 25px;
}

.footer-gov-link {
    color: white;
    text-decoration: underline;
    font-size: 0.95rem;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.footer-gov-link:hover {
    opacity: 0.75;
}

.copyright {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    
}

.copyright p {
    color: white;
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .footer-gov-logos {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .footer-gov-links {
        flex-direction: column;
        gap: 12px;
    }
}



 /* =========================================
   3. ETIQUETAS (TAGS)
   ========================================= */
 .category-tag {
     align-self: center;
     
     margin-bottom: 20px;
     font-size: 0.75rem;
     font-weight: 700;
     text-transform: uppercase;
     padding: 6px 16px;
     border-radius: 20px;
     letter-spacing: 1px;
     display: inline-block;
 }

 .tag-directivos {
     background-color: rgba(74, 72, 122, 0.1);
     color: var(--secondary-color);
     border: 1px solid var(--secondary-color);
 }

 /* =========================================
   4. BOTONES (GRUPO Y ACCIONES)
   ========================================= */
 .button-group {
     display: flex;
     gap: 10px;
     margin-top: auto;
     width: 100%;
 }

 .btn-action {
     flex: 1;
     
     background: transparent;
     color: var(--primary-color);
     border: 2px solid var(--primary-color);
     padding: 10px;
     border-radius: 8px;
     font-size: 0.9rem;
     font-weight: 700;
     font-family: var(--font-main);
     letter-spacing: 0.5px;
     cursor: pointer;
     transition: all 0.3s ease;
     text-align: center;
     text-decoration: none;
     
     display: flex;
     align-items: center;
     justify-content: center;
 }

 .btn-action:hover {
     background: var(--primary-color);
     color: white;
     transform: translateY(-2px);
     box-shadow: 0 5px 15px rgba(36, 160, 165, 0.3);
 }

 .btn-action:active {
     transform: translateY(0);
     box-shadow: none;
 }

 
 .btn-download {
     border-color: var(--secondary-color);
     color: var(--secondary-color);
 }

 .btn-download:hover {
     background: var(--secondary-color);
     color: white;
 }

 /* =========================================
   5. MODAL Y ANIMACIONES
   ========================================= */
 .modal {
     display: none;
     position: fixed;
     z-index: 1000;
     left: 0;
     top: 0;
     width: 100%;
     height: 100%;
     background-color: rgba(26, 32, 44, 0.9);
     backdrop-filter: blur(5px);
     animation: fadeIn 0.3s ease;
 }

 .modal-content {
     background-color: #fff;
     margin: 2% auto;
     width: 95%;
     max-width: 1400px;
     height: 92%;
     border-radius: 16px;
     box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
     overflow: hidden;
     display: flex;
     flex-direction: column;
     animation: slideDown 0.4s ease;
 }

 .modal-header {
     background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
     color: white;
     padding: 15px 30px;
     display: flex;
     justify-content: space-between;
     align-items: center;
     flex-shrink: 0;
 }

 .modal-header h3 {
     margin: 0;
     font-size: 1.4rem;
     font-family: var(--font-main);
 }

 .close-button {
     background: rgba(255, 255, 255, 0.2);
     color: white;
     border: none;
     width: 36px;
     height: 36px;
     border-radius: 50%;
     font-size: 24px;
     cursor: pointer;
     display: flex;
     align-items: center;
     justify-content: center;
     transition: all 0.3s ease;
 }

 .close-button:hover {
     background: var(--tercer-color);
     color: var(--secondary-color);
     transform: rotate(90deg);
 }

 .loading {
     position: absolute;
     top: 50%;
     left: 50%;
     transform: translate(-50%, -50%);
     color: var(--secondary-color);
     font-family: var(--font-main);
 }

 .spinner {
     border: 4px solid var(--light-color);
     border-top: 4px solid var(--primary-color);
     border-radius: 50%;
     width: 40px;
     height: 40px;
     animation: spin 1s linear infinite;
     margin: 0 auto 15px;
 }

 /* =========================================
   6. KEYFRAMES
   ========================================= */
 @keyframes spin {
     0% {
         transform: rotate(0deg);
     }

     100% {
         transform: rotate(360deg);
     }
 }

 @keyframes fadeIn {
     from {
         opacity: 0;
     }

     to {
         opacity: 1;
     }
 }

 @keyframes slideDown {
     from {
         opacity: 0;
         transform: translateY(-50px) scale(0.95);
     }

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

 /* =========================================
   7. RESPONSIVE
   ========================================= */
 @media (max-width: 768px) {
     #pdf-section h2 {
         font-size: 2rem;
     }

     .pdf-button-container {
         grid-template-columns: 1fr;
         gap: 20px;
     }

     .modal-content {
         width: 100%;
         height: 100%;
         margin: 0;
         border-radius: 0;
     }
 }

 /* boton recursos*/
 a.feature-card {
     text-decoration: none;
     color: inherit;
     display: block;
     cursor: pointer;
 }