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

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

.mediakit-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;
}

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

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

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

.mediakit-year-tag {
    background: #d32027;
    color: #fff;
    font-weight: 100;
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

/* Selector de Idioma (Español / Inglés) */
.mediakit-lang-switcher {
    display: inline-flex;
    align-items: center;
    background: #17171c;
    padding: 3px;
    border-radius: 30px;
    border: 1px solid #33333b;
    gap: 4px;
}

.mediakit-lang-btn {
    background: transparent;
    border: none;
    color: #9ca3af;
    padding: 6px 14px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.mediakit-lang-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.mediakit-lang-btn.is-active {
    background: #d32027;
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(211, 32, 39, 0.4);
}

.mediakit-lang-flag {
    font-size: 14px;
    line-height: 1;
}

.mediakit-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-mediakit-action {
    background: rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition:
        background 0.2s ease,
        transform 0.15s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
}

.btn-mediakit-action:hover {
    background: #d32027;
    color: #fff;
    transform: translateY(-1px);
    border-color: #d32027;
}

.btn-mediakit-action.btn-contact-adv {
    background: #075ba8;
    border-color: #075ba8;
}

.btn-mediakit-action.btn-contact-adv:hover {
    background: #ffd700;
    color: #111;
    border-color: #ffd700;
}

.mediakit-iframe-wrapper {
    position: relative;
    width: 100%;
    padding-top: 66%;
    /* Aspect ratio óptimo para flipbook */
    min-height: 650px;
    background: #18181b;
}

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

/* Barra Inferior de Compartir en Redes Sociales */
.mediakit-reader-footer {
    background: #121216;
    padding: 16px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #2d2d35;
    flex-wrap: wrap;
    gap: 14px;
    transition: background 0.3s ease;
}

.mediakit-reader-footer.highlight {
    animation: mediakit-pulse-highlight 1.5s ease;
}

@keyframes mediakit-pulse-highlight {
    0% { background: #121216; }
    30% { background: rgba(211, 32, 39, 0.28); }
    100% { background: #121216; }
}

.mediakit-share-lead {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mediakit-share-lead i {
    font-size: 22px;
    color: #d32027;
}

.mediakit-share-lead-text strong {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    display: block;
    line-height: 1.2;
}

.mediakit-share-lead-text span {
    font-size: 12px;
    color: #94a3b8;
    display: block;
    line-height: 1.3;
    margin-top: 2px;
}

.mediakit-share-network-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.mediakit-social-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: #ffffff;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, background 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.mediakit-social-btn:hover {
    transform: translateY(-2px);
    color: #ffffff;
    filter: brightness(1.12);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.mediakit-social-btn.wa {
    background: #25d366;
}

.mediakit-social-btn.fb {
    background: #1877f2;
}

.mediakit-social-btn.li {
    background: #0a66c2;
}

.mediakit-social-btn.tw {
    background: #111111;
    border-color: #33333b;
}

.mediakit-social-btn.email {
    background: #ea4335;
}

.mediakit-social-btn.copy {
    background: #272730;
    border-color: #3e3e4a;
    color: #f1f5f9;
}

.mediakit-social-btn.copy.is-copied {
    background: #16a34a !important;
    border-color: #16a34a !important;
    color: #ffffff !important;
}

.btn-mediakit-action.btn-mediakit-share {
    background: rgba(211, 32, 39, 0.18);
    border-color: rgba(211, 32, 39, 0.45);
    color: #ffffff;
}

.btn-mediakit-action.btn-mediakit-share:hover {
    background: #d32027;
    border-color: #d32027;
}

/* Columna de Publicidad Lateral */
.mediakit-side-ad {
    grid-column: 11 / span 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mediakit-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;
}

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

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

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

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

    .mediakit-side-ad {
        display: none !important;
    }

    .mediakit-iframe-wrapper {
        min-height: 540px;
        padding-top: 70%;
    }
}

@media (max-width: 767px) {
    .mediakit-iframe-wrapper {
        min-height: 460px;
        padding-top: 85%;
    }

    .mediakit-title-badge h1 {
        font-size: 19px;
    }

    .mediakit-reader-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .mediakit-lang-switcher {
        width: 100%;
        display: flex;
    }

    .mediakit-lang-btn {
        flex: 1;
        justify-content: center;
        padding: 8px 12px;
        font-size: 13px;
    }

    .mediakit-toolbar-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 8px;
    }

    .btn-mediakit-action {
        font-size: 12px;
        padding: 6px 12px;
    }

    .mediakit-reader-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 14px 16px;
    }

    .mediakit-share-network-group {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .mediakit-social-btn {
        justify-content: center;
        padding: 8px 6px;
        font-size: 12px;
        gap: 5px;
    }

    .mediakit-side-ad {
        display: none !important;
        /* Ocultar publicidad lateral en móviles */
    }
}

@media (max-width: 480px) {
    .mediakit-share-network-group {
        grid-template-columns: repeat(2, 1fr);
    }
}
