/**
 * Estilos principales del Portal AMCAD
 * Color principal: #84ac74
 */

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #fff;
}

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

/* ===========================
   Banner Superior
   =========================== */
.top-banner {
    background-color: #84ac74;
    color: white;
    padding: 15px 0;
}

.banner-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 30px;
}

/* Logo AMCAD izquierda */
.banner-logo-wrapper {
    display: flex;
    align-items: center;
}

.banner-logo {
    height: 120px;
    width: auto;
}

/* Texto central */
.banner-text {
    text-align: left;
    padding-left: 20px;
}

.banner-text h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.2;
    color: #000;
}

.banner-text .slogan {
    font-size: 1rem;
    font-style: italic;
    opacity: 1;
    letter-spacing: 0.5px;
    color: #000;
}

/* Columna derecha: iconos de redes sociales */
.banner-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 15px;
}

.ojs-logo-wrapper {
    display: flex;
    justify-content: flex-end;
}

.ojs-logo {
    height: 80px;
    width: auto;
}

.social-icons {
    display: flex;
    gap: 10px;
    position: relative;
    top: 55px;
    /* Ajusta este valor para mover arriba (negativo) o abajo (positivo) */
}

.social-icons a {
    display: block;
    transition: transform 0.3s;
}

.social-icons a:hover {
    transform: scale(1.1);
}

.social-icons img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
}

/* ===========================
   Header Sticky
   =========================== */
.main-header {
    background-color: white;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 70px;
    overflow: visible;
    transition: box-shadow 0.3s;
}

.main-header.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    padding: 0;
    gap: 40px;
}

.header-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    height: 100%;
}

.header-logo {
    flex-shrink: 0;
    overflow: visible;
}

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    width: 30px;
    min-width: 30px;
    max-width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0;
    line-height: 0;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    box-shadow: none;
    border-radius: 0;
    -webkit-tap-highlight-color: transparent;
}

.menu-toggle-bar {
    display: block;
    width: 20px;
    height: 2px;
    background: #333;
    margin: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.main-nav {
    margin-left: auto;
}

.header-logo img {
    height: 70px;
    width: auto;
    display: block;
}

.main-nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 35px;
    margin: 0;
}

.main-nav li {
    display: flex;
    align-items: center;
}

.main-nav a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
    position: relative;
}

.main-nav a:hover {
    color: #84ac74;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #84ac74;
    transition: width 0.3s;
}

.main-nav a:hover::after {
    width: 100%;
}

/* Enlace activo en navegación */
.main-nav li.active a {
    color: #84ac74;
    font-weight: 600;
}

.main-nav li.active a::after {
    width: 100%;
}

.header-user-menu {
    position: relative;
    height: 100%;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    border: none;
    background: transparent;
    font: inherit;
    color: inherit;
    cursor: pointer;
    padding: 8px 0;
}

.user-menu-trigger:focus-visible {
    outline: 2px solid #84ac74;
    outline-offset: 4px;
}

.user-menu-icon {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.user-name-link {
    display: inline-flex;
    align-items: center;
    height: 100%;
    color: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.user-name-link:hover {
    color: #84ac74;
}

.header-user-menu.is-open .user-menu-icon,
.header-user-menu:hover .user-menu-icon {
    transform: rotate(180deg);
}

.user-menu-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 2px);
    right: 0;
    width: max-content;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 5px 0;
    margin: 0;
    z-index: 20;
    visibility: hidden;
    opacity: 0;
}

.header-user-menu:hover .user-menu-dropdown {
    display: block;
    visibility: visible;
    opacity: 1;
}

.user-menu-dropdown li {
    margin: 0;
    padding: 0;
}

.user-menu-dropdown a {
    display: block;
    padding: 8px 15px;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

.user-menu-dropdown a:hover {
    background-color: #f5f5f5;
    color: #84ac74;
}

.lang-selector {
    display: flex;
    align-items: center;
}

.lang-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    transition: all 0.3s;
}

.lang-link:hover {
    background-color: #84ac74;
    color: white;
    border-color: #84ac74;
}

.lang-link svg {
    width: 18px;
    height: 18px;
}

.dev-credit {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.5s ease, max-height 0.5s ease;
}

.dev-credit.is-hidden {
    opacity: 0;
    max-height: 0;
}

.dev-credit.is-visible {
    opacity: 1;
    max-height: 40px;
}

/* ===========================
   Sección de Búsqueda
   =========================== */
.search-section {
    background-color: white;
    padding: 40px 0;
}

/* Fila superior: Botones y Contador */
.search-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.search-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-type-selector {
    display: flex;
    gap: 10px;
}

.search-label {
    font-weight: 600;
    color: #333;
    margin-right: 0;
}

.search-type-btn {
    background-color: #f0f0f0;
    color: #666;
    border: 2px solid transparent;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.search-type-btn:hover {
    background-color: #e0e0e0;
}

.search-type-btn.active {
    background-color: #84ac74;
    color: white;
    border-color: #84ac74;
}

.total-count {
    color: #666;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Barra de búsqueda */
.search-form {
    display: flex;
    gap: 10px;
    width: 100%;
    margin-bottom: 15px;
}

.search-input {
    flex: 1;
    padding: 10px 20px;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s;
}

.search-input:focus {
    border-color: #84ac74;
}

.search-btn {
    background-color: #84ac74;
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.search-btn:hover {
    background-color: #6f9560;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(132, 172, 116, 0.3);
}

.advanced-search-toggle {
    text-align: center;
    margin: 15px 0;
}

.advanced-search-toggle a {
    color: #84ac74;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.advanced-search-toggle a:hover {
    color: #6f9560;
    text-decoration: underline;
}

.advanced-search-form {
    background-color: white;
    border-top: 1px solid #e0e0e0;
    padding: 25px 0;
    margin-top: 15px;
}

.advanced-search-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 30px;
    margin-bottom: 20px;
}

.search-field,
.search-field-group {
    display: flex;
    flex-direction: column;
}

.search-field-group {
    grid-column: span 2;
}

.search-field label,
.search-field-group>label {
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
    font-size: 0.85rem;
}

.search-field input,
.search-field select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s;
    background-color: white;
}

.search-field input:focus,
.search-field select:focus {
    border-color: #84ac74;
}

.date-range {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.date-input {
    display: flex;
    flex-direction: column;
}

.date-input label {
    font-size: 0.8rem;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
}

.date-input input {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
}

.advanced-search-submit {
    text-align: center;
    margin-top: 10px;
}

/* ===========================
   Tarjetas de Revista
   =========================== */
.recent-journals,
.all-journals {
    padding: 40px 0;
    background-color: white;
}

.recent-journals {
    border-top: 1px solid #e0e0e0;
    margin-top: 20px;
}

.all-journals {
    border-top: 1px solid #e0e0e0;
}

.recent-journals h2,
.all-journals h2 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 30px;
    text-align: left;
    font-weight: 700;
}

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

.journal-card {
    background-color: #f0f0f0;
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.journal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.journal-cover {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background-color: #84ac74;
    display: flex;
    align-items: center;
    justify-content: center;
}

.journal-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.journal-cover-placeholder {
    font-size: 5rem;
    color: white;
    font-weight: 700;
    align-self: flex-start;
    padding-top: 24px;
}

.journal-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 18px 20px 20px;
    background: rgba(240, 240, 240, 0.85);
}

.journal-info h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 700;
    min-height: 0;
    line-height: 1.4;
}

.journal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
}

.journal-tags li {
    background-color: #ffffff;
    border: 1px solid #c9d3c4;
    color: #4a4a4a;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
}

.journal-tags-more {
    position: relative;
    cursor: default;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
}

.journal-tags-more::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: 120%;
    transform: translateX(-50%);
    background: rgba(25, 25, 25, 0.95);
    color: #ffffff;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
    z-index: 10;
}

.journal-tags-more::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 112%;
    transform: translateX(-50%);
    border-width: 6px 6px 0 6px;
    border-style: solid;
    border-color: rgba(25, 25, 25, 0.95) transparent transparent transparent;
    opacity: 0;
    transition: opacity 0.15s ease;
    pointer-events: none;
    z-index: 10;
}

.journal-tags-more:hover::after,
.journal-tags-more:hover::before {
    opacity: 1;
}

.btn-view-journal,
.btn-latest-pub {
    display: block;
    width: 100%;
    padding: 12px 20px;
    margin-bottom: 10px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-view-journal {
    background-color: #84ac74;
    color: white;
}

.btn-view-journal:hover {
    background-color: #6f9560;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(132, 172, 116, 0.3);
}

.btn-latest-pub {
    background-color: #b0d3a8;
    color: #333;
}

.btn-latest-pub:hover {
    background-color: #9cc793;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(176, 211, 168, 0.3);
}

.last-modified {
    font-size: 0.85rem;
    color: #666;
    margin-top: 15px;
    text-align: center;
}

/* ===========================
   Filtro de Categorías
   =========================== */
.category-filter {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 35px;
    justify-content: flex-start;
}

.category-filter label {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.category-filter select {
    padding: 8px 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    outline: none;
    cursor: pointer;
    transition: border-color 0.3s;
    background-color: white;
    min-width: 200px;
}

.category-filter select:focus {
    border-color: #84ac74;
}

/* ===========================
   Footer
   =========================== */
.main-footer {
    background-color: #4a4a4a;
    color: white;
    padding: 40px 0;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-left,
.footer-center,
.footer-right {
    flex: 1;
}

.footer-logo {
    height: 60px;
    width: auto;
}

.footer-center {
    text-align: center;
}

.footer-center p {
    margin: 5px 0;
    font-size: 0.9rem;
}

.footer-right {
    text-align: right;
}

.footer-right a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.footer-right a:hover {
    color: #84ac74;
}

.footer-version {
    margin-top: 4px;
    font-size: 0.8rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.75);
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 768px) {
    .banner-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }

    .banner-logo-wrapper {
        justify-content: center;
    }

    .banner-logo {
        height: 80px;
    }

    .banner-text {
        text-align: center;
        padding-left: 0;
    }

    .banner-text h1 {
        font-size: 1.3rem;
    }

    .banner-right {
        align-items: center;
    }

    .ojs-logo-wrapper {
        justify-content: center;
    }

    .ojs-logo {
        height: 60px;
    }

    .social-icons {
        top: 0;
        justify-content: center;
        margin-top: 8px;
    }

    .main-header {
        height: auto;
        overflow: hidden;
    }

    .header-content {
        height: auto;
        padding: 10px 0;
    }

    .header-top-row {
        width: 100%;
        position: relative;
        justify-content: center;
        min-height: 56px;
    }
    .header-wrapper {
        flex-direction: column;
        gap: 10px;
    }

    .header-logo img {
        height: 50px;
    }

    .header-logo {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .menu-toggle {
        position: absolute;
        right: 0;
        margin-left: 0 !important;
    }

    .header-content {
        flex-direction: column;
        gap: 10px;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 12px;
        justify-content: center;
        text-align: center;
    }

    .main-nav a {
        font-size: 0.9rem;
    }

    .menu-toggle {
        display: inline-flex;
        width: 28px !important;
        min-width: 28px !important;
        max-width: 28px !important;
        height: 28px !important;
        flex: 0 0 28px !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .main-nav {
        display: none;
        width: 100%;
    }

    .main-nav.is-open {
        display: block;
    }

    .lang-selector {
        display: none;
        width: auto;
        align-self: center;
        text-align: center;
    }

    .main-nav.is-open ~ .lang-selector {
        display: flex;
    }

    .header-user-menu {
        width: 100%;
    }

    .user-menu-trigger {
        width: 100%;
        justify-content: space-between;
        padding: 12px 0;
    }

    .user-menu-dropdown {
        display: block;
        position: static;
        width: 100%;
        margin-top: 8px;
        box-shadow: none;
        border: 1px solid #e0e0e0;
        border-radius: 6px;
        transform: none;
    }

    .search-top-row {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .search-type-selector {
        justify-content: center;
    }

    .total-count {
        text-align: center;
    }

    .advanced-search-grid {
        display: block;
    }

    .advanced-search-grid .search-field,
    .advanced-search-grid .search-field-group {
        width: 100%;
        margin-bottom: 14px;
    }

    .advanced-search-grid .date-range {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .advanced-search-grid .date-input {
        width: 100%;
    }

    .advanced-search-grid input[type="text"],
    .advanced-search-grid select {
        width: 100%;
    }

    .journals-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-right {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .banner-logo {
        height: 60px;
    }

    .ojs-logo {
        height: 50px;
    }

    .banner-text h1 {
        font-size: 1rem;
    }

    .banner-text .slogan {
        font-size: 0.75rem;
    }

    .social-icons img {
        width: 28px;
        height: 28px;
    }

    .header-logo img {
        height: 44px;
    }

    .main-nav ul {
        gap: 8px 12px;
    }

    .main-nav a {
        font-size: 0.8rem;
    }

    .recent-journals h2,
    .all-journals h2 {
        font-size: 1.5rem;
    }

    .journal-info h3 {
        font-size: 1rem;
        min-height: auto;
    }
}

/* ===========================
   Animaciones
   =========================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.journal-card {
    animation: fadeIn 0.5s ease-out;
}

/* Ocultar elementos */
.hidden {
    display: none !important;
}

/* ===========================
   Página de Búsqueda
   =========================== */

/* Resumen de búsqueda */
.search-summary {
    background-color: #f8f9fa;
    padding: 30px 0;
    border-bottom: 1px solid #e0e0e0;
}

.search-summary h1 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.search-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.search-type-badge {
    background-color: #84ac74;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.search-query {
    font-style: italic;
    font-size: 1.1rem;
    color: #555;
}

.results-count {
    color: #666;
    font-size: 0.95rem;
}

.active-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-pill {
    background-color: white;
    border: 1px solid #84ac74;
    color: #333;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.filter-pill a {
    color: #84ac74;
    font-weight: bold;
    text-decoration: none;
    font-size: 1.2rem;
    line-height: 1;
    transition: color 0.2s;
}

.filter-pill a:hover {
    color: #6f9560;
}

/* Contenedor de resultados */
.search-results-section {
    padding: 40px 0;
}

.search-results-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

/* Panel de filtros lateral */
.search-filters {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    height: fit-content;
    position: sticky;
    top: 120px;
}

.search-filters h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #84ac74;
    font-weight: 600;
}

/* Columna de filtros */
.filters-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Botón de regresar */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background-color: #84ac74;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    border: none;
    width: fit-content;
    box-shadow: 0 2px 8px rgba(132, 172, 116, 0.2);
}

.btn-back:hover {
    background-color: #6f9560;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(132, 172, 116, 0.3);
}

.btn-back svg {
    flex-shrink: 0;
    transition: transform 0.3s;
}

.btn-back:hover svg {
    transform: translateX(-2px);
}

.filter-section {
    margin-bottom: 25px;
}

.filter-section > label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 0.9rem;
}

.filter-section input[type="text"],
.filter-section select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.3s;
}

.filter-section input[type="text"]:focus,
.filter-section select:focus {
    outline: none;
    border-color: #84ac74;
}

.filter-section input[type="radio"] {
    margin-right: 8px;
}

.filter-section .radio-label {
    font-weight: normal;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.filter-section .radio-label:hover {
    background-color: rgba(132, 172, 116, 0.1);
}

.date-range {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.date-range input {
    width: 100%;
}

.btn-filter {
    width: 100%;
    padding: 12px;
    background-color: #84ac74;
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-filter:hover {
    background-color: #6f9560;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(132, 172, 116, 0.3);
}

/* Tabla de resultados */
.results-main {
    min-height: 400px;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.results-table thead {
    background-color: #84ac74;
    color: white;
}

.results-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
}

.results-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s;
}

.results-table tbody tr:hover {
    background-color: #f8f9fa;
}

.results-table td {
    padding: 15px;
    vertical-align: middle;
}

/* Celdas específicas */
.cover-cell {
    width: 100px;
}

.table-cover {
    width: 80px;
    height: 120px;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.table-cover-placeholder {
    width: 80px;
    height: 120px;
    background-color: #84ac74;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    border-radius: 5px;
}

.title-cell {
    font-size: 1rem;
    color: #333;
}

.title-cell strong {
    color: #0170B9;
}

.author-cell {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.journal-cell {
    font-size: 0.9rem;
    color: #555;
}

.category-cell {
    min-width: 200px;
    max-width: 280px;
}

.category-tags {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    align-items: start;
}

.category-tag {
    background-color: #f0f0f0;
    border: 1px solid #c9d3c4;
    color: #4a4a4a;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.actions-cell {
    min-width: 180px;
}

.btn-table-action {
    display: block;
    width: 100%;
    padding: 8px 12px;
    margin-bottom: 8px;
    border: none;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.btn-table-action:last-child {
    margin-bottom: 0;
}

.btn-table-action.btn-primary {
    background-color: #84ac74;
    color: white;
}

.btn-table-action.btn-primary:hover {
    background-color: #6f9560;
    transform: translateY(-2px);
}

.btn-table-action.btn-secondary {
    background-color: white;
    color: #84ac74;
    border: 2px solid #84ac74;
}

.btn-table-action.btn-secondary:hover {
    background-color: #84ac74;
    color: white;
}

/* Paginación */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    padding: 20px 0;
}

.page-link {
    padding: 10px 16px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.page-link:hover {
    background-color: #84ac74;
    color: white;
    border-color: #84ac74;
}

.page-link.active {
    background-color: #84ac74;
    color: white;
    border-color: #84ac74;
}

/* Sin resultados */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
    margin: 40px 0;
}

.no-results h2 {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 15px;
    font-weight: 600;
}

.no-results p {
    color: #999;
    font-size: 1rem;
}

/* ===========================
   Responsive Design - Búsqueda
   =========================== */

/* Tablets */
@media (max-width: 968px) {
    .search-results-container {
        grid-template-columns: 1fr;
    }

    .search-filters {
        position: static;
        margin-bottom: 30px;
    }

    .results-table {
        font-size: 0.9rem;
    }

    .results-table th,
    .results-table td {
        padding: 10px;
    }

    .table-cover {
        width: 60px;
        height: 90px;
    }

    .table-cover-placeholder {
        width: 60px;
        height: 90px;
        font-size: 2rem;
    }

    .cover-cell {
        width: 75px;
    }
}

/* Móviles - Convertir tabla a cards */
@media (max-width: 640px) {
    .search-summary h1 {
        font-size: 1.5rem;
    }

    .search-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    /* Ocultar tabla y mostrar cards */
    .results-table thead {
        display: none;
    }

    .results-table,
    .results-table tbody,
    .results-table tr,
    .results-table td {
        display: block;
        width: 100%;
    }

    .results-table tr {
        margin-bottom: 20px;
        border: 1px solid #e0e0e0;
        border-radius: 10px;
        padding: 15px;
        background-color: white;
    }

    .results-table td {
        padding: 8px 0;
        border: none;
    }

    .results-table td::before {
        content: attr(class);
        font-weight: 600;
        text-transform: capitalize;
        display: block;
        margin-bottom: 5px;
        color: #84ac74;
    }

    .cover-cell::before {
        content: '';
        display: none;
    }

    .cover-cell {
        text-align: center;
        margin-bottom: 15px;
    }

    .table-cover {
        width: 100px;
        height: 150px;
    }

    .table-cover-placeholder {
        width: 100px;
        height: 150px;
        margin: 0 auto;
        font-size: 3rem;
    }

    .actions-cell {
        min-width: auto;
    }

    .btn-table-action {
        margin-bottom: 10px;
    }

    .category-cell {
        max-width: 100%;
    }

    .category-tags {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   Página de Contacto
   ======================================== */

.contact-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.contact-section h2 {
    text-align: center;
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 50px;
    font-weight: 700;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Información de Contacto */
.contact-info {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.contact-info h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 25px;
    font-weight: 600;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

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

.contact-icon {
    background-color: #84ac74;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

.contact-details h4 {
    font-size: 1rem;
    color: #2c3e50;
    margin-bottom: 5px;
    font-weight: 600;
}

.contact-details p {
    font-size: 1rem;
    color: #555;
    margin: 0;
}

.contact-details a {
    color: #84ac74;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-details a:hover {
    color: #6f9560;
    text-decoration: underline;
}

.contact-logo {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.contact-logo img {
    max-width: 180px;
    height: auto;
    opacity: 0.9;
}

/* Formulario de Contacto */
.contact-form-wrapper {
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-form-wrapper h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 25px;
    font-weight: 600;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.95rem;
    color: #2c3e50;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group .required {
    color: #e74c3c;
    margin-left: 3px;
}

.form-group input,
.form-group textarea {
    padding: 12px 15px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #84ac74;
    box-shadow: 0 0 0 3px rgba(132, 172, 116, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    background-color: #84ac74;
    color: white;
    padding: 14px 30px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(132, 172, 116, 0.3);
    align-self: flex-start;
}

.btn-submit:hover {
    background-color: #6f9560;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(132, 172, 116, 0.4);
}

.required-fields-note {
    margin-top: 15px;
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
}

/* Mensajes de éxito y error */
.success-message {
    text-align: center;
    padding: 40px 20px;
}

.success-message svg {
    color: #84ac74;
    margin-bottom: 20px;
}

.success-message h4 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

.success-message p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 25px;
}

.btn-reset {
    display: inline-block;
    background-color: #84ac74;
    color: white;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(132, 172, 116, 0.3);
}

.btn-reset:hover {
    background-color: #6f9560;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(132, 172, 116, 0.4);
}

.error-message {
    background-color: #fee;
    border-left: 4px solid #e74c3c;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    color: #c0392b;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-section {
        padding: 40px 0;
    }

    .contact-section h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .contact-form-wrapper {
        padding: 25px;
    }

    .contact-info {
        padding: 25px;
    }
}

/* ===========================
   Páginas de Recursos y Lineamientos
   =========================== */

.content-section {
    padding: 60px 0;
    min-height: 60vh;
}

.page-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 2rem;
    text-align: center;
}

/* Noticia para administradores */
.admin-notice {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.admin-notice p {
    margin: 0;
    color: #856404;
}

.admin-notice a {
    color: #84ac74;
    font-weight: 600;
    text-decoration: none;
}

.admin-notice a:hover {
    text-decoration: underline;
}

/* Lista de recursos */
.resources-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 2rem;
}

/* Tarjeta de recurso */
.resource-card {
    background: white;
    border-radius: 0;
    border: none;
    padding: 2rem 0;
    padding-inline: 2rem;
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.resource-card:not(:first-child) {
    border-top: 1px solid #e0e0e0;
}

/* Badge de destacado */
.resource-pinned {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #ffc107;
    color: #856404;
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.875rem;
    border-bottom-left-radius: 12px;
}

.resource-title {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    margin-top: 0;
    line-height: 1.3;
}

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

.resource-meta {
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.resource-meta p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: #666;
}

.resource-author,
.resource-date {
    display: flex;
    gap: 0.5rem;
}

.resource-meta strong {
    color: #2c3e50;
}

/* Botón de descarga */
.resource-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.btn-download {
    display: inline-flex;
    padding: 0.75rem 1.5rem;
    background-color: #84ac74;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.2s;
    text-align: center;
    align-self: center;
}

.btn-download:hover {
    background-color: #6d9460;
    transform: scale(1.05);
}

/* Estado vacío */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #888;
    font-size: 1.1rem;
}

/* Responsive para recursos */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }

    .resources-grid {
        gap: 1.5rem;
    }

    .resource-card {
        padding: 1.5rem 0;
        padding-inline: 1.5rem;
        border-radius: 0;
    }

    .resource-title {
        font-size: 1.25rem;
    }

    .content-section {
        padding: 40px 0;
    }
}
