.public-main {
    background: #f4f6f9;
    min-height: 100vh;
}

.news-detail-hero {
    background: linear-gradient(135deg, #111827, #1d4ed8);
    color: #fff;
    padding: 70px 20px 90px;
}

.news-detail-container {
    max-width: 1050px;
    margin: 0 auto;
}

.news-category {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 18px;
}

.news-detail-hero h1 {
    margin: 0;
    max-width: 850px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.05;
}

.news-meta {
    margin-top: 18px;
    color: #dbeafe;
    font-weight: 500;
}

.news-detail-image {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 24px;
    margin-top: -55px;
    box-shadow: 0 24px 60px rgba(15,23,42,.22);
    background: #fff;
}

.news-content {
    margin-top: 38px;
    background: #fff;
    padding: 42px;
    border-radius: 22px;
    box-shadow: 0 12px 35px rgba(15,23,42,.08);
    color: #374151;
    font-size: 18px;
    line-height: 1.8;
}

.news-content h2,
.news-content h3 {
    color: #111827;
    line-height: 1.25;
}

.news-content img {
    max-width: 100%;
    border-radius: 16px;
}

.news-content a {
    color: #2563eb;
    font-weight: 700;
}

.back-actions {
    margin: 28px 0 50px;
}

.btn-public {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
}

.btn-public.secondary {
    background: #e5e7eb;
    color: #111827;
}

.related-section {
    padding: 45px 20px 70px;
    background: #fff;
}

.related-section h2 {
    margin-bottom: 24px;
    font-size: 30px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.related-card {
    display: block;
    overflow: hidden;
    border-radius: 18px;
    background: #f9fafb;
    color: #111827;
    text-decoration: none;
    border: 1px solid #eef2f7;
    transition: .2s;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 35px rgba(15,23,42,.12);
}

.related-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.related-card div {
    padding: 18px;
}

.related-card h3 {
    margin: 0 0 8px;
}

.related-card p {
    margin: 0;
    color: #6b7280;
    line-height: 1.5;
}

@media (max-width: 850px) {
    .related-grid {
        grid-template-columns: 1fr;
    }

    .news-content {
        padding: 26px;
    }
}
.public-main {
    background: #f4f6f9;
    min-height: 100vh;
}

.public-container {
    max-width: 1180px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.public-hero {
    background: linear-gradient(135deg, #111827, #1d4ed8);
    color: #fff;
    padding: 72px 0 82px;
}

.public-label {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 18px;
}

.public-hero h1 {
    margin: 0;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.05;
}

.public-hero p {
    max-width: 760px;
    margin: 18px 0 0;
    color: #dbeafe;
    font-size: 18px;
    line-height: 1.6;
}

.page-section {
    padding-top: 42px;
    padding-bottom: 70px;
}

.filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    padding: 10px 15px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #374151;
    text-decoration: none;
    font-weight: 800;
    transition: .2s;
}

.filter-chip:hover,
.filter-chip.active {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

.page-subtitle {
    margin: 0 0 24px;
    color: #111827;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.gallery-card {
    overflow: hidden;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 12px 32px rgba(15,23,42,.08);
    border: 1px solid #eef2f7;
    transition: .2s;
}

.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(15,23,42,.13);
}

.gallery-button {
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
    display: block;
}

.gallery-button img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.gallery-info {
    padding: 18px;
}

.gallery-info span {
    display: inline-block;
    color: #2563eb;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 8px;
}

.gallery-info h3 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 20px;
}

.gallery-info p {
    margin: 0;
    color: #6b7280;
    line-height: 1.5;
}

.empty-public {
    background: #fff;
    padding: 28px;
    border-radius: 18px;
    color: #6b7280;
    border: 1px solid #eef2f7;
    box-shadow: 0 10px 28px rgba(15,23,42,.06);
}

.gallery-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .86);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 24px;
}

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

.gallery-modal-content {
    max-width: 1050px;
    width: 100%;
    text-align: center;
}

.gallery-modal-content img {
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0,0,0,.45);
}

.gallery-modal-content h3 {
    color: #fff;
    margin-top: 18px;
    font-size: 24px;
}

.gallery-modal-close {
    position: absolute;
    top: 22px;
    right: 28px;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
}

.gallery-modal-close:hover {
    background: rgba(255,255,255,.22);
}

@media (max-width: 950px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .public-hero {
        padding: 52px 0 60px;
    }

    .gallery-button img {
        height: 220px;
    }
}
.events-list{
    display:flex;
    flex-direction:column;
    gap:22px;
}


.event-card{

    display:grid;
    grid-template-columns:90px 250px 1fr;

    background:#fff;

    border-radius:24px;

    overflow:hidden;

    box-shadow:
    0 14px 36px rgba(15,23,42,.08);

    border:1px solid #eef2f7;

    transition:.2s;
}



.event-card:hover{

    transform:translateY(-3px);

    box-shadow:
    0 20px 45px rgba(15,23,42,.14);
}



.event-date{

    background:#111827;

    color:white;

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

}


.event-date span{

    font-size:38px;

    font-weight:900;

}



.event-date strong{

    font-size:14px;

    letter-spacing:.1em;

}




.event-card img{

    width:100%;

    height:100%;

    min-height:190px;

    object-fit:cover;

}



.event-info{

    padding:28px;

}



.event-info h2{

    margin:8px 0 14px;

    font-size:28px;

    color:#111827;

}



.event-info p{

    color:#4b5563;

    line-height:1.6;

}



.event-time,
.event-place{

    font-weight:700;

}



.event-featured{

    display:inline-block;

    padding:6px 12px;

    border-radius:999px;

    background:#dbeafe;

    color:#1d4ed8;

    font-size:12px;

    font-weight:900;

    text-transform:uppercase;

}




@media(max-width:900px){


.event-card{

grid-template-columns:1fr;

}


.event-date{

height:90px;

}



}
.public-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.public-news-card {
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid #eef2f7;
    box-shadow: 0 12px 32px rgba(15,23,42,.08);
    transition: .2s;
}

.public-news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(15,23,42,.13);
}

.public-news-card img {
    width: 100%;
    height: 225px;
    object-fit: cover;
    display: block;
}

.public-news-content {
    padding: 22px;
}

.public-news-category {
    display: inline-block;
    color: #2563eb;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 10px;
}

.public-news-content h2 {
    margin: 0 0 10px;
    font-size: 23px;
    line-height: 1.25;
}

.public-news-content h2 a {
    color: #111827;
    text-decoration: none;
}

.public-news-content h2 a:hover {
    color: #2563eb;
}

.public-news-date {
    font-size: 14px;
    color: #6b7280;
    font-weight: 700;
}

.public-news-content p {
    color: #4b5563;
    line-height: 1.6;
}

.read-more-link {
    display: inline-block;
    margin-top: 8px;
    color: #2563eb;
    font-weight: 900;
    text-decoration: none;
}

.read-more-link:hover {
    text-decoration: underline;
}

@media (max-width: 980px) {
    .public-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .public-news-grid {
        grid-template-columns: 1fr;
    }
}
.event-detail-hero {
    background: linear-gradient(135deg, #111827, #1d4ed8);
    color: #fff;
    padding: 72px 0 90px;
}

.event-detail-hero h1 {
    margin: 0;
    max-width: 850px;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.05;
}

.event-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 20px;
    color: #dbeafe;
    font-weight: 700;
}

.event-detail-wrapper {
    padding-bottom: 70px;
}

.event-detail-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 24px;
    margin-top: -55px;
    box-shadow: 0 24px 60px rgba(15,23,42,.22);
    background: #fff;
}

.event-detail-layout {
    display: grid;
    grid-template-columns: 1fr 330px;
    gap: 26px;
    margin-top: 36px;
}

.event-detail-content,
.event-info-box {
    background: #fff;
    border-radius: 22px;
    padding: 34px;
    box-shadow: 0 12px 35px rgba(15,23,42,.08);
    border: 1px solid #eef2f7;
}

.event-detail-content h2,
.event-info-box h3 {
    margin-top: 0;
    color: #111827;
}

.event-detail-content p {
    color: #374151;
    font-size: 18px;
    line-height: 1.8;
}

.event-info-box p {
    color: #4b5563;
    line-height: 1.6;
    border-bottom: 1px solid #eef2f7;
    padding-bottom: 14px;
}

.event-info-box p:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

@media (max-width: 850px) {
    .event-detail-layout {
        grid-template-columns: 1fr;
    }
}
.comments-section {
    max-width: 1050px;
    margin: 36px auto 50px;
    background: #fff;
    padding: 34px;
    border-radius: 22px;
    box-shadow: 0 12px 35px rgba(15,23,42,.08);
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 13px;
    border-radius: 12px;
    border: 1px solid #d1d5db;
}

.comment-form textarea {
    min-height: 140px;
    resize: vertical;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 28px;
}

.comment-card {
    padding: 18px;
    background: #f9fafb;
    border-radius: 16px;
    border: 1px solid #eef2f7;
}

.comment-card strong {
    display: block;
    color: #111827;
}

.comment-card small {
    display: block;
    color: #6b7280;
    margin: 4px 0 10px;
}

.comment-card p {
    margin: 0;
    color: #374151;
    line-height: 1.6;
}

.comment-form label {
    display: block;
    font-weight: 800;
    margin: 14px 0 6px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 13px;
    border-radius: 12px;
    border: 1px solid #d1d5db;
}

.btn-public.primary {
    margin-top: 16px;
    background: #2563eb;
    color: #fff;
}

.alert-public.success {
    background: #dcfce7;
    color: #166534;
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: 700;
}
.revista-hero {
    background: linear-gradient(135deg, #312e81, #7c3aed);
}
.revista-page {
    background: #f8fafc;
    min-height: 100vh;
    color: #111827;
}

.revista-header {
    height: 92px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 56px;
    position: sticky;
    top: 0;
    z-index: 20;
}

.revista-logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.revista-logo span {
    font-size: 42px;
}

.revista-logo strong {
    display: block;
    font-size: 27px;
    line-height: 1;
    text-transform: uppercase;
    color: #312e81;
}

.revista-logo small {
    display: block;
    margin-top: 4px;
    color: #6b7280;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.revista-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.revista-nav a {
    color: #111827;
    text-decoration: none;
    font-weight: 900;
    font-size: 14px;
    text-transform: uppercase;
}

.revista-btn {
    background: #4c1d95;
    color: #fff !important;
    padding: 14px 18px;
    border-radius: 10px;
}

.revista-hero-editorial {
    display: grid;
    grid-template-columns: 1.05fr 1fr 110px;
    min-height: 520px;
    background: #020617;
    color: #fff;
    overflow: hidden;
}

.revista-hero-content {
    padding: 70px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.revista-tag {
    display: inline-block;
    width: fit-content;
    background: #facc15;
    color: #111827;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 950;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.revista-hero-content h1 {
    margin: 0;
    font-size: clamp(42px, 6vw, 72px);
    line-height: .95;
    font-family: Georgia, serif;
    max-width: 720px;
}

.revista-hero-content p {
    color: #d1d5db;
    font-size: 18px;
    line-height: 1.7;
    max-width: 620px;
    margin: 26px 0;
}

.revista-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    color: #cbd5e1;
    font-size: 14px;
    margin-bottom: 28px;
}

.revista-read-btn {
    width: fit-content;
    background: #facc15;
    color: #111827;
    padding: 15px 22px;
    border-radius: 9px;
    text-decoration: none;
    font-weight: 950;
    text-transform: uppercase;
}

.revista-hero-image {
    position: relative;
}



.revista-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.revista-edicion {
    background: #facc15;
    color: #111827;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    writing-mode: vertical-rl;
    text-transform: uppercase;
    font-weight: 950;
    letter-spacing: .12em;
}

.revista-edicion strong {
    font-size: 46px;
    margin-top: 20px;
}

.revista-main-grid {
    max-width: 1320px;
    margin: 42px auto;
    padding: 0 28px;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
}

.revista-articulos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.revista-card{

background:#fff;

border-radius:24px;

overflow:hidden;

box-shadow:0 12px 40px rgba(15,23,42,.08);

transition:.35s;

height:100%;

display:flex;

flex-direction:column;

}

.revista-card:hover{

transform:translateY(-10px);

box-shadow:0 30px 70px rgba(15,23,42,.16);

}

.revista-card img {
    width: 100%;
    height: 245px;
    object-fit: cover;
    display: block;
}

.revista-card-image{

aspect-ratio:16/10;

overflow:hidden;

}
.revista-card:hover img{

transform:scale(1.05);

}

.revista-card-image img{

width:100%;

height:100%;

object-fit:cover;

transition:.5s;

}

.revista-card-body{

padding:24px;

display:flex;

flex-direction:column;

flex:1;

}
.revista-card-category{

display:inline-block;

padding:6px 12px;

border-radius:999px;

background:#ede9fe;

color:#6d28d9;

font-size:.72rem;

font-weight:900;

letter-spacing:.08em;

text-transform:uppercase;

margin-bottom:16px;

}
.revista-card-title{

font-family:Georgia,serif;

font-size:2rem;

line-height:1.1;

margin-bottom:16px;

color:#111827;

}
.revista-card-summary{

color:#4b5563;

line-height:1.8;

margin-bottom:24px;

}
.revista-card-footer{

display:flex;

justify-content:space-between;

align-items:center;

margin-top:auto;

padding-top:18px;

border-top:1px solid #eee;

}
.revista-card-stats{

display:flex;

gap:16px;

font-size:.85rem;

color:#666;

}
.revista-card-btn{

padding:10px 18px;

background:#5b21b6;

color:#fff;

border-radius:10px;

text-decoration:none;

font-weight:700;

transition:.25s;

}
.revista-card-btn:hover{

background:#4c1d95;

}

.revista-category {
    display: inline-block;
    background: #ede9fe;
    color: #5b21b6;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.revista-card h2 {
    margin: 0 0 12px;
    font-family: Georgia, serif;
    font-size: 28px;
    line-height: 1.05;
}

.revista-card h2 a {
    color: #111827;
    text-decoration: none;
}

.revista-card h2 a:hover {
    color: #5b21b6;
}

.revista-card p {
    color: #4b5563;
    line-height: 1.6;
}

.revista-card-footer {
    margin-top: 22px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 700;
}

.revista-sidebar {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.revista-side-box {
    background: #fff;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    padding: 24px;
    box-shadow: 0 14px 32px rgba(15,23,42,.07);
}

.revista-side-box h3 {
    margin: 0 0 18px;
    font-size: 22px;
    text-transform: uppercase;
}

.revista-category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #111827;
    text-decoration: none;
    font-weight: 850;
    padding: 14px 0;
    border-bottom: 1px solid #e5e7eb;
}

.revista-category-link:last-child {
    border-bottom: 0;
}

.revista-category-link:hover {
    color: #5b21b6;
}

.revista-category-link strong {
    background: #ede9fe;
    color: #5b21b6;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 12px;
}

.revista-cta {
    background: linear-gradient(135deg, #312e81, #6d28d9);
    color: #fff;
}

.revista-cta p {
    color: #ddd6fe;
    line-height: 1.6;
}

.revista-cta a {
    display: inline-block;
    margin-top: 12px;
    background: #facc15;
    color: #111827;
    text-decoration: none;
    padding: 13px 16px;
    border-radius: 9px;
    font-weight: 950;
}

.revista-proyectos {
    max-width: 1320px;
    margin: 0 auto 52px;
    padding: 34px;
    border-radius: 24px;
    background: linear-gradient(135deg, #f5f3ff, #fff7ed);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.revista-proyectos span {
    color: #5b21b6;
    font-weight: 950;
    text-transform: uppercase;
    font-size: 13px;
}

.revista-proyectos h2 {
    margin: 10px 0;
    font-family: Georgia, serif;
    font-size: 34px;
}

.revista-proyectos p {
    color: #4b5563;
    max-width: 680px;
}

.revista-proyectos a {
    background: #4c1d95;
    color: #fff;
    text-decoration: none;
    padding: 15px 20px;
    border-radius: 10px;
    font-weight: 950;
    white-space: nowrap;
}

@media (max-width: 1050px) {
    .revista-header {
        padding: 0 24px;
    }

    .revista-nav {
        gap: 14px;
    }

    .revista-hero-editorial {
        grid-template-columns: 1fr;
    }

    .revista-edicion {
        display: none;
    }

    .revista-hero-image {
        height: 360px;
    }

    .revista-main-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .revista-header {
        height: auto;
        padding: 20px;
        flex-direction: column;
        gap: 18px;
    }

    .revista-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .revista-hero-content {
        padding: 46px 24px;
    }

    .revista-articulos {
        grid-template-columns: 1fr;
    }

    .revista-proyectos {
        flex-direction: column;
        align-items: flex-start;
        margin-left: 20px;
        margin-right: 20px;
    }
}

.revista-detail {
    background: #f8fafc;
}

.revista-detail-hero {
    background: #020617;
    color: #fff;
    display: grid;
    grid-template-columns: 1fr 46%;
    min-height: 560px;
}

.revista-detail-head {
    padding: 70px 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.revista-back {
    color: #facc15;
    text-decoration: none;
    font-weight: 900;
    margin-bottom: 28px;
}

.revista-detail-category {
    display: inline-block;
    width: fit-content;
    background: #7c3aed;
    color: #fff;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 950;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.revista-detail-head h1 {
    margin: 0;
    font-family: Georgia, serif;
    font-size: clamp(42px, 6vw, 76px);
    line-height: .96;
    max-width: 900px;
}

.revista-detail-summary {
    color: #d1d5db;
    font-size: 20px;
    line-height: 1.7;
    max-width: 740px;
    margin: 28px 0;
}

.revista-detail-meta {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    color: #cbd5e1;
    font-weight: 700;
}

.revista-detail-image {
    position: relative;
    overflow: hidden;
}

.revista-detail-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #020617 0%, rgba(2,6,23,.4) 40%, transparent 100%);
    z-index: 1;
}

.revista-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.revista-reading-layout {
    max-width: 1240px;
    margin: 0 auto;
    padding: 54px 28px 70px;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 42px;
}

.revista-reading-aside {
    position: sticky;
    top: 116px;
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.revista-aside-box,
.revista-share-box {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 12px 32px rgba(15,23,42,.06);
}

.revista-aside-box span {
    color: #7c3aed;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 950;
}

.revista-aside-box strong {
    display: block;
    margin: 8px 0;
    font-size: 22px;
    color: #111827;
}

.revista-aside-box small {
    color: #6b7280;
    font-weight: 700;
}

.revista-share-box p {
    margin-top: 0;
    font-weight: 950;
    color: #111827;
}

.revista-share-box a {
    display: block;
    color: #4c1d95;
    font-weight: 900;
    text-decoration: none;
    padding: 10px 0;
    border-top: 1px solid #e5e7eb;
}

.revista-reading-content {
    background: #fff;
    border-radius: 24px;
    padding: 54px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 44px rgba(15,23,42,.08);
    font-size: 19px;
    line-height: 1.9;
    color: #374151;
}

.revista-reading-content > *:first-child {
    margin-top: 0;
}

.revista-reading-content h2,
.revista-reading-content h3,
.revista-reading-content h4 {
    color: #111827;
    font-family: Georgia, serif;
    line-height: 1.2;
    margin-top: 34px;
}

.revista-reading-content h2 {
    font-size: 34px;
}

.revista-reading-content h3 {
    font-size: 28px;
}

.revista-reading-content p {
    margin-bottom: 22px;
}

.revista-reading-content img {
    max-width: 100%;
    border-radius: 18px;
    margin: 26px 0;
}

.revista-reading-content blockquote {
    margin: 34px 0;
    padding: 26px 32px;
    border-left: 6px solid #facc15;
    background: #fffbeb;
    color: #111827;
    font-size: 24px;
    font-family: Georgia, serif;
    line-height: 1.5;
}

.revista-reading-content a {
    color: #6d28d9;
    font-weight: 900;
}

.revista-related {
    background: #fff;
    padding: 60px 0;
}

.revista-related-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 28px;
}

.revista-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 980px) {
    .revista-detail-hero {
        grid-template-columns: 1fr;
    }

    .revista-detail-image {
        height: 360px;
    }

    .revista-reading-layout {
        grid-template-columns: 1fr;
    }

    .revista-reading-aside {
        position: static;
        order: 2;
    }

    .revista-related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .revista-detail-head {
        padding: 46px 24px;
    }

    .revista-reading-content {
        padding: 28px;
        font-size: 17px;
    }

    .revista-detail-summary {
        font-size: 17px;
    }
}
.revista-category-hero {
    background: linear-gradient(135deg, #020617, #312e81);
    color: #fff;
    padding: 80px 56px;
}

.revista-category-hero h1 {
    margin: 18px 0;
    font-family: Georgia, serif;
    font-size: clamp(44px, 6vw, 76px);
    line-height: 1;
}

.revista-category-hero p {
    max-width: 720px;
    color: #d1d5db;
    font-size: 18px;
    line-height: 1.7;
}

.revista-back-dark {
    display: inline-block;
    color: #facc15;
    text-decoration: none;
    font-weight: 900;
    margin-bottom: 18px;
}
.ck-content ul,
.revista-reading-content ul,
.news-content ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.ck-content ol,
.revista-reading-content ol,
.news-content ol {
    list-style: decimal;
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.ck-content li,
.revista-reading-content li,
.news-content li {
    margin-bottom: .4rem;
}
.ck-content ul,
.revista-reading-content ul {
    list-style: disc !important;
    padding-left: 1.8rem !important;
}

.ck-content ol,
.revista-reading-content ol {
    list-style: decimal !important;
    padding-left: 1.8rem !important;
}

.ck-content li,
.revista-reading-content li {
    margin-bottom: .45rem;
}

.revista-hero-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(2,6,23,.92) 0%,
        rgba(2,6,23,.65) 28%,
        rgba(2,6,23,.25) 55%,
        rgba(2,6,23,.05) 100%
    );
    z-index: 1;
}

.gallery-card-index {
    height: 230px;
    background: #1a2332;
}

.gallery-img-index {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}

.gallery-card-index:hover .gallery-img-index {
    transform: scale(1.06);
}

.gallery-overlay-index {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(15, 23, 42, .72),
        rgba(15, 23, 42, .12),
        transparent
    );
    opacity: 0;
    transition: opacity .25s ease;
    pointer-events: none;
}

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

.gallery-title-index {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    color: #fff;
    font-weight: 800;
    opacity: 0;
    transform: translateY(8px);
    transition: .25s ease;
    pointer-events: none;
}

.gallery-card-index:hover .gallery-title-index {
    opacity: 1;
    transform: translateY(0);
}
.home-gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 22px !important;
}

.home-gallery-card {
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .08);
    transition: transform .25s ease, box-shadow .25s ease;
}

.home-gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, .16);
}

.home-gallery-imgbox {
    width: 100%;
    height: 210px;
    overflow: hidden;
    background: #1a2332;
}

.home-gallery-imgbox img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease, filter .35s ease;
}

.home-gallery-card:hover .home-gallery-imgbox img {
    transform: scale(1.08);
    filter: brightness(.85);
}

.home-gallery-caption {
    padding: 14px 16px;
    background: #fff;
}

.home-gallery-caption h3 {
    margin: 0 0 10px;
    font-size: 15px;
    line-height: 1.35;
    color: #111827;
}

.home-gallery-link {
    color: #0bbaff;
    font-weight: 800;
    text-decoration: none;
    font-size: 14px;
}

@media (max-width: 1024px) {
    .home-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 640px) {
    .home-gallery-grid {
        grid-template-columns: 1fr !important;
    }
}
.article-meta{

display:flex;

flex-wrap:wrap;

gap:18px;

margin-top:25px;

font-size:.95rem;

color:#666;

}

.article-stat{

display:flex;

align-items:center;

gap:6px;

font-weight:600;

}

.share-box{

display:flex;

gap:10px;

margin-top:30px;

flex-wrap:wrap;

}

.share-btn{

padding:10px 18px;

border-radius:30px;

background:#f4f4f4;

transition:.25s;

text-decoration:none;

font-weight:600;

}

.share-btn:hover{

transform:translateY(-2px);

background:#5b3df5;

color:#fff;

}
.like-btn{

display:flex;

align-items:center;

gap:8px;

padding:10px 18px;

border:none;

background:#fff;

border-radius:30px;

cursor:pointer;

font-weight:700;

box-shadow:0 6px 20px rgba(0,0,0,.08);

transition:.25s;

}

.like-btn:hover{

transform:translateY(-2px);

background:#fef2f2;

}

.like-btn.liked{

background:#ffebee;

color:#e53935;

animation:pulse .4s;

}

@keyframes pulse{

0%{

transform:scale(1);

}

50%{

transform:scale(1.12);

}

100%{

transform:scale(1);

}

}
.sidebar-widget{
    margin-top:30px;
    background:#fff;
    border-radius:22px;
    padding:24px;
    box-shadow:0 10px 35px rgba(0,0,0,.06);
}

.sidebar-widget h3{
    margin-bottom:18px;
    font-size:1.2rem;
}

.sidebar-post{
    display:flex;
    gap:14px;
    align-items:center;
    text-decoration:none;
    color:#222;
    padding:12px 0;
    border-bottom:1px solid #eee;
    transition:.25s;
}

.sidebar-post:last-child{
    border-bottom:none;
}

.sidebar-post:hover{
    transform:translateX(5px);
}

.sidebar-post img{
    width:72px;
    height:72px;
    object-fit:cover;
    border-radius:12px;
    flex-shrink:0;
}

.sidebar-post strong{
    display:block;
    font-size:.95rem;
    line-height:1.3;
    margin-bottom:5px;
}

.sidebar-post small{
    color:#888;
}
.revista-cover {
    background:
        radial-gradient(circle at top left, rgba(250,204,21,.22), transparent 32%),
        linear-gradient(135deg, #020617, #312e81 55%, #6d28d9);
    color: #fff;
    padding: 90px 28px 70px;
}

.revista-cover-inner {
    max-width: 1240px;
    margin: 0 auto;
}

.revista-cover-label {
    display: inline-block;
    color: #facc15;
    font-size: 13px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: 18px;
}

.revista-cover h1 {
    margin: 0;
    font-family: Georgia, serif;
    font-size: clamp(56px, 9vw, 112px);
    line-height: .9;
}

.revista-cover p {
    max-width: 760px;
    color: #ddd6fe;
    font-size: 21px;
    line-height: 1.65;
    margin: 28px 0 34px;
}

.revista-cover-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 900px;
}

.revista-cover-stats div {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 18px;
    padding: 18px;
}

.revista-cover-stats strong {
    display: block;
    font-size: 34px;
    line-height: 1;
}

.revista-cover-stats span {
    display: block;
    margin-top: 8px;
    color: #fde68a;
    font-weight: 900;
    font-size: 13px;
    text-transform: uppercase;
}

.revista-category-nav {
    max-width: 1240px;
    margin: 24px auto 42px;
    padding: 18px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(15,23,42,.14);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.revista-category-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #111827;
    text-decoration: none;
    font-weight: 900;
    font-size: 14px;
}

.revista-category-nav a:hover {
    background: #ede9fe;
    color: #5b21b6;
}

.revista-rank-link {
    display: block;
    text-decoration: none;
    padding: 14px 0;
    border-bottom: 1px solid #e5e7eb;
}

.revista-rank-link:last-child {
    border-bottom: 0;
}

.revista-rank-link span {
    display: inline-block;
    color: #5b21b6;
    font-size: 12px;
    font-weight: 950;
    margin-bottom: 5px;
}

.revista-rank-link strong {
    display: block;
    color: #111827;
    line-height: 1.35;
}

.revista-rank-link:hover strong {
    color: #5b21b6;
}

.revista-last-link {
    display: flex;
    gap: 12px;
    text-decoration: none;
    padding: 13px 0;
    border-bottom: 1px solid #e5e7eb;
}

.revista-last-link:last-child {
    border-bottom: 0;
}

.revista-last-link img {
    width: 68px;
    height: 68px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.revista-last-link strong {
    display: block;
    color: #111827;
    font-size: 14px;
    line-height: 1.35;
}

.revista-last-link small {
    display: block;
    margin-top: 6px;
    color: #6b7280;
    font-weight: 700;
}

.revista-last-link:hover strong {
    color: #5b21b6;
}

@media (max-width: 760px) {
    .revista-cover {
        padding: 62px 22px 54px;
    }

    .revista-cover-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .revista-category-nav {
        margin-left: 20px;
        margin-right: 20px;
    }
}
.revista-edicion{
    position:absolute;
    right:0;
    top:0;
    width:90px;
    height:100%;
    background:#facc15;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.15em;
    color:#111827;
}

.revista-edicion span:first-child{
    writing-mode:vertical-rl;
    transform:rotate(360deg);
    font-size:.75rem;
}

.revista-edicion strong{
    writing-mode:vertical-rl;
    transform:rotate(360deg);
    font-size:2.2rem;
}
.revista-featured-strip {
    max-width: 1240px;
    margin: 0 auto 34px;
    padding: 18px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(15,23,42,.10);
    display: grid;
    grid-template-columns: 42% 1fr;
    gap: 28px;
    align-items: center;
}

.revista-featured-image {
    max-height: 490px;
    border-radius: 18px;
    overflow: hidden;
    background: #020617;
}

.revista-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.revista-featured-content span {
    display: inline-block;
    background: #ede9fe;
    color: #5b21b6;
    padding: 8px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.revista-featured-content h2 {
    margin: 0;
    font-family: Georgia, serif;
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1;
    color: #111827;
}

.revista-featured-content p {
    color: #4b5563;
    line-height: 1.7;
    margin: 18px 0;
    max-width: 620px;
}

.revista-featured-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: #6b7280;
    font-weight: 800;
    margin-bottom: 22px;
}

.revista-featured-content a {
    display: inline-block;
    background: #4c1d95;
    color: #fff;
    text-decoration: none;
    padding: 14px 18px;
    border-radius: 12px;
    font-weight: 950;
}

@media (max-width: 850px) {
    .revista-featured-strip {
        grid-template-columns: 1fr;
        margin-left: 20px;
        margin-right: 20px;
    }

    .revista-featured-image {
        height: 230px;
    }
}
/* REVISTA - CARDS EDITORIALES V2 */

.revista-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 16px 38px rgba(15, 23, 42, .08);
    transition: transform .3s ease, box-shadow .3s ease;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.revista-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 26px 60px rgba(15, 23, 42, .16);
}

.revista-card > a {
    display: block;
    height: 260px;
    overflow: hidden;
    background: #020617;
}

.revista-card > a img,
.revista-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    transition: transform .45s ease, filter .45s ease;
}

.revista-card:hover img {
    transform: scale(1.06);
    filter: brightness(.9);
}

.revista-card-body {
    padding: 26px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.revista-category {
    align-self: flex-start;
    background: #ede9fe;
    color: #5b21b6;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 16px;
}

.revista-card h2 {
    margin: 0 0 14px;
    font-family: Georgia, serif;
    font-size: 30px;
    line-height: 1.05;
}

.revista-card h2 a {
    color: #111827;
    text-decoration: none;
}

.revista-card h2 a:hover {
    color: #5b21b6;
}

.revista-card-body p {
    color: #4b5563;
    line-height: 1.75;
    margin: 0 0 22px;
    font-size: 15px;
}

.revista-card-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #eef2f7;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.revista-card-footer .revista-card-footer {
    border-top: 0;
    padding-top: 0;
    margin-top: 0;
}

.revista-card-footer span:nth-child(2) {
    color: #5b21b6;
}

/* Botón leer dentro de card */
.revista-card-body::after {
    content: "Leer artículo →";
    display: inline-flex;
    width: fit-content;
    margin-top: 18px;
    background: #4c1d95;
    color: #fff;
    padding: 10px 14px;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 950;
}

/* Grid un poco más editorial */
.revista-articulos {
    align-items: stretch;
}

@media (max-width: 760px) {
    .revista-card > a,
    .revista-card > a img,
    .revista-card img {
        height: 220px;
    }

    .revista-card-body {
        padding: 22px;
    }

    .revista-card h2 {
        font-size: 26px;
    }
}

/* Logo Revista */

.hero-logo{
    display:flex;
    justify-content:right;
    align-items:right;
}

.hero-logo-spin{

    width:250px;
    height:250px;

    animation:logoFloat 8s ease-in-out infinite,
              logoRotate 90s linear infinite;

    filter:drop-shadow(0 15px 30px rgba(0,0,0,.15));

    transition:.4s;

}
@keyframes logoRotate{

    from{
        transform:rotate(0deg);
    }

    to{
        transform:rotate(360deg);
    }

}

@keyframes logoFloat{

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

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

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

}
.hero-logo-spin:hover{

    animation-play-state:paused;

    transform:scale(1.05);

}


.revista-cover {
    position: relative;
}

.revista-cover-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 48px;
    align-items: center;
    
}

.hero-logo {
    width: 260px;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo-spin {
    width: 250px;
    height: 250px;
    object-fit: contain;
    animation: revistaLogoSpin 80s linear infinite, revistaLogoFloat 7s ease-in-out infinite;
    filter: drop-shadow(0 18px 32px rgba(0,0,0,.22));
}

@keyframes revistaLogoSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes revistaLogoFloat {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -8px; }
}

@media (max-width: 850px) {
    .revista-cover-inner {
        grid-template-columns: 1fr;
    }

    .hero-logo {
        display: none;
    }
}
.error-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(11,186,255,.18), transparent 35%),
        linear-gradient(135deg, #020617, #1a2332);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

.error-card {
    max-width: 620px;
    width: 100%;
    background: rgba(255,255,255,.96);
    border-radius: 28px;
    padding: 44px;
    text-align: center;
    box-shadow: 0 24px 70px rgba(0,0,0,.22);
}

.error-logo {
    width: 96px;
    height: 96px;
    object-fit: contain;
    margin-bottom: 18px;
}

.error-code {
    display: block;
    font-size: 86px;
    line-height: 1;
    font-weight: 950;
    color: #0bbaff;
}

.error-card h1 {
    margin: 12px 0;
    font-size: 34px;
    color: #1a2332;
}

.error-card p {
    color: #64748b;
    line-height: 1.7;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.error-btn {
    padding: 13px 18px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 900;
}

.error-btn.primary {
    background: #0bbaff;
    color: #fff;
}

.error-btn.secondary {
    background: #eef2f7;
    color: #1a2332;
}

@media (max-width: 560px) {
    .error-card {
        padding: 30px 22px;
    }

    .error-code {
        font-size: 68px;
    }

    .error-card h1 {
        font-size: 28px;
    }

    .error-btn {
        width: 100%;
    }
}