:root {
    --primary: #1a3a6b;
    --primary-light: #2563eb;
    --primary-lighter: #3b82f6;
    --primary-bg: #eff6ff;
    --accent: #0ea5e9;
    --bg: #f8fafc;
    --bg-white: #ffffff;
    --bg-card: #ffffff;
    --bg-muted: #f1f5f9;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --text: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --white: #ffffff;
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.04);
    --shadow-card-hover: 0 8px 30px rgba(37, 99, 235, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --font: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'Geist Mono', 'SF Mono', monospace;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 150ms var(--ease);
    --transition: 200ms var(--ease);
    --transition-slow: 350ms var(--ease);
}

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

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

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

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

.header-main {
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: opacity 0.3s ease, backdrop-filter 0.3s ease;
}

.header-main.scrolled {
    opacity: 0.92;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header-topbar {
    background: #0a1628;
    padding: 0;
    font-size: 0.75rem;
}

.topbar-left a,
.topbar-right a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    padding: 7px 12px;
    display: inline-block;
    transition: color var(--transition-fast);
}

.topbar-left a:hover,
.topbar-right a:hover {
    color: var(--white);
}

.topbar-left a i,
.topbar-right a i {
    font-size: 0.6rem;
    margin-left: 4px;
    opacity: 0.5;
}

.topbar-right {
    display: flex;
    gap: 0;
}

.topbar-right a {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

/* Barra 2: logo + nombre + redes */
.header-mid {
    background: var(--primary);
}

.header-logo {
    height: 55px;
    transition: opacity var(--transition-fast);
}

.header-logo:hover { opacity: 0.85; }

.header-brand { gap: 14px; }
.header-brand-text { display: flex; flex-direction: column; line-height: 1.2; }

.header-brand-name {
    color: var(--white);
    font-size: 1.58rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.header-brand-sub {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.78rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.header-redes { gap: 4px; }

.red-social-link {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.88rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.red-social-link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
}

.header-nav {
    background: #0a1628;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 0;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-menu li:first-child {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-menu li a {
    display: block;
    padding: 14px 28px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    letter-spacing: 0.01em;
}

.nav-menu li a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.slider-section { position: relative; }

.carousel-item { height: 380px; }

.slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 58, 107, 0.75) 0%, rgba(0, 0, 0, 0.45) 100%);
}

.slide-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 0 20px;
}

.slide-title {
    color: var(--white);
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.slide-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    max-width: 600px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.slide-btn {
    display: inline-block;
    padding: 10px 28px;
    background: var(--white);
    color: var(--primary);
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.slide-btn:hover {
    background: var(--primary-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.slide-btn i { margin-left: 8px; font-size: 0.8rem; }

.carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    opacity: 0.5;
}

.carousel-indicators button.active { opacity: 1; }

.carousel-control-prev,
.carousel-control-next {
    z-index: 5;
    width: 60px;
    opacity: 0.7;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-indicators {
    z-index: 5;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.buscador-wrap {
    display: flex;
    justify-content: center;
    margin: 20px 0 10px;
}

.buscador-box {
    position: relative;
    width: 100%;
    max-width: 420px;
}

.buscador-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.buscador-input {
    width: 100%;
    padding: 10px 14px 10px 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    background: var(--bg-white);
    color: var(--text);
    transition: all var(--transition-fast);
}

.buscador-input:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

.buscador-input::placeholder { color: var(--text-muted); }

.tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 20px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-light);
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 6px;
}

.nav-categorias .nav-link.active .tab-count {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.revistas-section {
    background: var(--bg);
}

.btn-ver-revistas {
    display: inline-block;
    padding: 12px 32px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
}

.btn-ver-revistas:hover {
    background: var(--primary-light);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-ver-revistas i { margin-left: 8px; }

.btn-ver-todas {
    display: inline-block;
    padding: 8px 24px;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition);
}

.btn-ver-todas:hover {
    border-color: var(--primary-light);
    color: var(--primary-light);
    background: var(--primary-bg);
}

.btn-ver-todas i { margin-left: 6px; font-size: 0.75rem; }

.breadcrumb-section {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
}

.breadcrumb-nav {
    list-style: none;
    display: flex;
    gap: 0;
    padding: 0;
    margin: 0 0 8px;
    font-size: 0.82rem;
}

.breadcrumb-nav li + li::before {
    content: '›';
    margin: 0 10px;
    color: var(--text-muted);
}

.breadcrumb-nav li a {
    color: var(--text-secondary);
    text-decoration: none;
}

.breadcrumb-nav li a:hover { color: var(--primary-light); }
.breadcrumb-nav li.active { color: var(--text); font-weight: 500; }

.page-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Filtros box */
.filtros-section {
    background: var(--bg);
}

.filtros-box {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.btn-filtrar {
    width: 100%;
    height: 38px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text-muted);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all var(--transition-fast);
}

.btn-filtrar:hover {
    border-color: var(--primary-lighter);
    color: var(--primary-light);
    background: var(--primary-bg);
}

.recursos-section {
    background: var(--bg-white);
    border-top: 1px solid var(--border);
}

.recursos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.recurso-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg);
    text-decoration: none;
    transition: all var(--transition);
}

.recurso-card:hover {
    border-color: var(--primary-lighter);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-3px);
}

.recurso-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-bg);
    color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.recurso-titulo {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.recurso-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.recursos-page-section {
    background: var(--bg);
    min-height: 50vh;
}

.recursos-grid-page {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1000px;
}

.recurso-card-page {
    padding: 32px 24px;
}

.recurso-card-page .recurso-icon {
    width: 56px;
    height: 56px;
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.recurso-card-page .recurso-titulo {
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.recurso-card-page .recurso-desc {
    font-size: 0.82rem;
    margin-bottom: 12px;
}

.recurso-link {
    font-size: 0.78rem;
    color: var(--primary-light);
    font-weight: 500;
    margin-top: auto;
}

.recurso-link i {
    font-size: 0.65rem;
    margin-left: 4px;
}

.registro-section {
    background: var(--primary);
    color: var(--white);
}

.registro-section .section-title {
    color: var(--white);
}

.registro-texto {
    max-width: 600px;
    margin: 0 auto 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.7;
}

.registro-nota {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.btn-registro {
    display: inline-block;
    padding: 12px 32px;
    background: var(--white);
    color: var(--primary);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
}

.btn-registro:hover {
    background: var(--primary-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-registro i { margin-left: 8px; }

.indexaciones-section {
    background: var(--bg);
    border-top: 1px solid var(--border);
}

.indexaciones-grid {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 12px;
    max-width: 100%;
    margin: 0 auto;
    overflow-x: auto;
    padding: 0 16px;
}

.idx-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-white);
    min-width: 100px;
    flex: 0 0 auto;
    transition: all var(--transition);
}

.idx-card:hover {
    border-color: var(--primary-lighter);
    box-shadow: var(--shadow-md);
}

.idx-card.idx-total {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.idx-card.idx-total .idx-number { color: var(--white); }
.idx-card.idx-total .idx-label { color: rgba(255, 255, 255, 0.8); }

.idx-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-light);
    line-height: 1;
}

.idx-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 4px;
    font-weight: 500;
}

.nav-categorias {
    background: var(--bg-white);
    border-bottom: none;
    padding: 0;
    gap: 0;
    animation: fadeIn 0.4s var(--ease) 0.15s both;
}

.nav-categorias .nav-link {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.875rem;
    padding: 12px 24px;
    border: none;
    border-radius: 0;
    border-bottom: 2px solid transparent;
    transition: all var(--transition-fast);
}

.nav-categorias .nav-link:hover {
    color: var(--primary-light);
    border-bottom-color: var(--border);
}

.nav-categorias .nav-link.active {
    color: var(--primary-light);
    border-bottom-color: var(--primary-light);
    font-weight: 600;
}

.categoria-titulo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.categoria-desc {
    max-width: 700px;
    margin: 10px auto 0;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.9rem;
}

.filtro-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.filtro-tema {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.875rem;
    padding: 8px 12px;
    background: var(--bg-white);
    color: var(--text);
    transition: all var(--transition-fast);
}

.filtro-tema:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

.revistas-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 0 16px;
    max-width: 1240px;
    margin: 0 auto;
}

.revista-card {
    width: 450px;
    flex: 0 0 270px;
    animation: fadeUp 0.45s var(--ease) both;
}

.revista-card:nth-child(1) { animation-delay: 0.04s; }
.revista-card:nth-child(2) { animation-delay: 0.08s; }
.revista-card:nth-child(3) { animation-delay: 0.12s; }
.revista-card:nth-child(4) { animation-delay: 0.16s; }
.revista-card:nth-child(5) { animation-delay: 0.20s; }
.revista-card:nth-child(6) { animation-delay: 0.24s; }
.revista-card:nth-child(7) { animation-delay: 0.28s; }
.revista-card:nth-child(8) { animation-delay: 0.32s; }

.carta-box {
    perspective: 1000px;
    width: 100%;
    height: 368px;
}

.carta {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.55s var(--ease);
    transform-style: preserve-3d;
}

.carta-box:hover .carta {
    transform: rotateY(180deg);
}


.carta.flipped {
    transform: rotateY(180deg);
}

.cara {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* Cara frontal */
.cara-front {
    background: var(--bg-white);
    box-shadow: var(--shadow-card);
    transition: all var(--transition-slow);
}

.carta-box:hover .cara-front {
    box-shadow: var(--shadow-card-hover);
    transform: scale(1);
}

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

.cara-front::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.5) 100%);
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
}

.carta-box:hover .cara-front::after {
    opacity: 1;
}

.ribbon {
    position: absolute;
    top: 18px;
    right: -35px;
    width: 140px;
    padding: 4px 0;
    text-align: center;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--white);
    transform: rotate(45deg);
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.ribbon-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.ribbon-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

/* Portada cesada: filtro gris */
.revista-card[data-estado="cesada"] .cara-front img {
    filter: grayscale(100%) brightness(0.4);
}

/* Portada suspendida: ligeramente desaturada */
.revista-card[data-estado="suspendida"] .cara-front img {
    filter: grayscale(100%) brightness(0.4);
}

/* Badge de estado en cara trasera */
.carta-estado-badge {
    text-align: center;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 8px;
    display: inline-block;
    align-self: center;
}

.estado-suspendida {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.estado-cesada {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Cara trasera */
.cara-back {
    transform: rotateY(180deg);
    background: var(--bg-white);
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card-hover);
    overflow-y: auto;
}

.carta-titulo {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    text-align: center;
    margin-bottom: 10px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.carta-info {
    font-size: 0.98rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
    line-height: 1.45;
}

.carta-info strong {
    color: var(--text);
    font-weight: 600;
}

.cara-back hr {
    border: none;
    height: 1px;
    background: var(--border);
    margin: 10px 0;
}

.carta-indices {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 6px;
}

.carta-indices img {
    height: 36px;
    width: auto;
    border-radius: 4px;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.carta-indices img:hover { opacity: 1; }

.carta-indices .badge {
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 20px;
    background: var(--bg-muted);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    font-weight: 500;
}

.paginacion {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin: 28px 0 12px;
}

.paginacion button {
    min-width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    background: var(--bg-white);
    color: var(--text-secondary);
    border-radius: var(--radius);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    padding: 0 4px;
}

.paginacion button:hover {
    border-color: var(--primary-lighter);
    color: var(--primary-light);
    background: var(--primary-bg);
}

.paginacion button.active {
    background: var(--primary-light);
    color: var(--white);
    border-color: var(--primary-light);
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.25);
}

.paginacion button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.paginacion .pag-info {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0 10px;
    font-family: var(--font-mono);
}

.sobre-portal {
    background: var(--bg-white);
    border-top: 1px solid var(--border);
}

.sobre-titulo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.sobre-texto {
    max-width: 920px;
    margin: 0 auto 14px;
    line-height: 1.75;
    color: var(--text-secondary);
    font-size: 0.9rem;
	text-align: justify;
}

.footer-main {
    margin-top: 0;
}

.footer-top {
    background: #0d1b3e;
    color: var(--white);
}

.footer-logo {
    height: 96px;
    opacity: 0.95;
}

.footer-brand-name {
    display: block;
    color: var(--white);
    font-size: 1.56rem;
    font-weight: 600;
    line-height: 1.3;
}

.footer-brand-sub {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.78rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-top-contacto p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-top-contacto i {
    color: rgba(255, 255, 255, 0.4);
    margin-right: 6px;
    font-size: 0.78rem;
}

.footer-redes {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.red-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.red-btn:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.25);
}

.footer-mid {
    background: #1a3a6b;
    color: var(--white);
}

.footer-heading {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 14px;
}

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

.footer-links li {
    padding: 4px 0;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.84rem;
    transition: color var(--transition-fast);
}

.footer-links a i {
    font-size: 0.65rem;
    margin-right: 6px;
    opacity: 0.5;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-contacto p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.84rem;
    line-height: 1.7;
}

/* Fila 3: más oscuro — copyright */
.footer-bottom {
    background: #091430;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.72rem;
}

.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-hamburger.active span:nth-child(2) {
    opacity: 0;
}
.nav-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 1200px) {
    .revista-card { width: 220px; flex: 0 0 220px; }
    .carta-box { height: 306px; }
    .revistas-grid { gap: 20px; }
}

@media (max-width: 1024px) {
    .recursos-grid { grid-template-columns: repeat(2, 1fr); }
    .recursos-grid-page { grid-template-columns: repeat(2, 1fr); }
    .slide-title { font-size: 1.8rem; }
}

@media (max-width: 768px) {
    .header-topbar { display: none; }
    .header-logo { height: 36px; }
    .header-brand-name { font-size: 0.95rem; }
    .header-brand-sub { font-size: 0.65rem; }

    .nav-hamburger { display: flex; }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 0;
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-menu li {
        border-right: none;
        border-left: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .nav-menu li:first-child { border-left: none; }

    .nav-menu li a {
        padding: 14px 20px;
        font-size: 0.88rem;
    }

    .header-nav .container {
        flex-wrap: wrap;
    }

    .carousel-item { height: 280px; }
    .slide-title { font-size: 1.4rem; }
    .slide-subtitle { font-size: 0.9rem; }

    .nav-categorias .nav-link {
        font-size: 0.8rem;
        padding: 10px 16px;
    }

    .revista-card { width: 200px; flex: 0 0 200px; }
    .carta-box { height: 278px; }
    .revistas-grid { gap: 16px; }

    .recursos-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .indexaciones-grid { flex-wrap: wrap; }
    .idx-card { min-width: 80px; padding: 14px 16px; }
    .idx-number { font-size: 1.4rem; }
}

@media (max-width: 520px) {
    .header-logo { height: 32px; }
    .header-brand-name { font-size: 0.85rem; }
    .header-brand-sub { font-size: 0.6rem; }

    .carousel-item { height: 240px; }
    .slide-title { font-size: 1.15rem; }
    .slide-subtitle { font-size: 0.82rem; }
    .slide-btn { padding: 8px 20px; font-size: 0.82rem; }

    .categoria-desc { font-size: 0.82rem; }
    .section-title { font-size: 1.2rem; }

    .revista-card { width: 250px; flex: 0 0 250px; }
    .carta-box { height: 348px; }

    .carta-titulo { font-size: 0.85rem; }
    .carta-info { font-size: 0.75rem; }

    .nav-categorias .nav-link {
        font-size: 0.75rem;
        padding: 10px 12px;
    }

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

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ── Quiénes Somos ── */
.quienes-section { background: var(--bg-light, #f8f9fa); border-top: 3px solid var(--color-primary, #0a3d7c); }
.quienes-content { max-width: 860px; margin: 0 auto; text-align: center; }
.quienes-content .sobre-texto { font-size: 1.05rem; line-height: 1.85; color: #444; margin-bottom: 1.2rem; }

/* ── Card back: cesada ── */
.carta-cesada-msg { font-size: 0.78rem; color: #fff; background: rgba(220,53,69,0.25); border: 1px solid rgba(220,53,69,0.5); border-radius: 6px; padding: 6px 10px; margin-bottom: 8px; line-height: 1.4; }
.carta-cesada-msg i { margin-right: 5px; }

/* ── Card back: en proceso ── */
.carta-en-proceso { font-size: 0.82rem; color: #ffc107; font-style: italic; }
.carta-en-proceso i { margin-right: 4px; animation: spin 2s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
