.edition-reader-section {
    margin-top: 18px;
    margin-bottom: 30px;
    align-items: start;
}

.edition-reader-main {
    grid-column: 1 / span 10;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* CONTENEDOR DEL LECTOR DIGITAL */
.edition-reader-card {
    background: #1e1e24;
    border: 2px solid #33333b;
    border-radius: var(--radius, 18px);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    position: relative;
}

.edition-reader-header {
    background: #121216;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #2d2d35;
    flex-wrap: wrap;
    gap: 12px;
}

.edition-title-badge {
    display: flex;
    align-items: center;
    gap: 10px;
}

.edition-title-badge h1 {
    font-family: "Anton", sans-serif;
    font-weight: 100;
    color: #ffffff;
    font-size: 22px;
    margin: 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.edition-month-pill {
    background-color: #d32027;
    color: #ffffff;
    font-family: "Anton", sans-serif;
    font-weight: 100;
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
}

.edition-actions {
    display: flex;
    gap: 10px;
}

.btn-reader-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-fullscreen {
    background-color: #3b82f6;
    color: #ffffff;
}

.btn-fullscreen:hover {
    background-color: #2563eb;
    color: #ffffff;
}

.btn-back-editions {
    background-color: #374151;
    color: #ffffff;
}

.btn-back-editions:hover {
    background-color: #4b5563;
    color: #ffffff;
}

/* IFRAME CONTENEDOR */
.edition-iframe-container {
    position: relative;
    padding-top: max(60%, 550px);
    height: 0;
    width: 100%;
    background-color: #0f1012;
}

.edition-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* OTRAS EDICIONES RECOMENDADAS */
.other-editions-card {
    background: #ffffff;
    border: 2px solid var(--border, #d8d8d8);
    border-radius: var(--radius, 18px);
    padding: 24px 28px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.other-editions-heading {
    font-family: "Anton", sans-serif;
    font-weight: 100;
    font-size: 22px;
    color: #0f172a;
    margin: 0 0 18px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
}

.other-editions-heading .dot {
    width: 10px;
    height: 10px;
    background-color: #d32027;
    border-radius: 50%;
    display: inline-block;
}

.other-editions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.other-edition-item {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease;
}

.other-edition-wrapper {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
}

.other-edition-item:hover .other-edition-wrapper {
    transform: translateY(-4px);
    border-color: #d32027;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.other-edition-img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.other-edition-title {
    text-align: center;
    margin-top: 8px;
    font-family: "Anton", sans-serif;
    font-weight: 100;
    font-size: 16px;
    color: #0f172a;
    text-transform: uppercase;
}

/* PUBLICIDAD LATERAL */
.edition-side-ads {
    grid-column: 11 / span 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.edition-side-ad-card {
    display: block;
    width: 100%;
    border-radius: var(--radius, 18px);
    overflow: hidden;
    border: 2px solid var(--border, #d8d8d8);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.edition-side-ad-card:hover {
    transform: scale(1.015);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.edition-side-ad-card img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* RESPONSIVE */
@media (max-width: 1199px) {
    .edition-reader-section {
        display: flex !important;
        flex-direction: column !important;
        gap: 24px;
    }

    .edition-reader-main {
        grid-column: auto !important;
        width: 100% !important;
    }

    .edition-side-ads {
        display: none !important;
    }

    .other-editions-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .edition-reader-header {
        padding: 12px 16px;
    }

    .edition-title-badge h1 {
        font-size: 18px;
    }

    .edition-iframe-container {
        padding-top: 110%;
    }

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

    .edition-side-ads {
        display: none !important;
    }
}
