/* ============================================================
   [Dango] Paso 4 — Megamenú CSS v2
   Code Snippets → CSS · Portada del sitio
   ============================================================ */

/* ── Ocultar submenú nativo de WordPress/Astra ── */
#menu-categories-menu > li > .sub-menu {
    display: none !important;
}

/* ── Root: posicionado relativo a la barra de países ── */
#dango-megamenu-root {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    width: 1400px;
    z-index: 99999;
    pointer-events: none;
}

/* ── Cada panel individual ── */
.dango-mega {
    display: none;
    pointer-events: auto;
    padding-top: 6px;
}

.dango-mega.is-active {
    display: block;
}

/* ── Panel visual ── */
.dango-mega__panel {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.14);
    border: 1px solid #e8e8e8;
    overflow: hidden;
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
}

/* ── Grid 3 columnas: fijas ── */
.dango-mega__inner {
    display: grid;
    grid-template-columns: 280px 320px 760px;
    min-height: 420px;
}

/* ══════════════════════════════════════
   COL 1 — Editoriales (280px)
   ══════════════════════════════════════ */
.dango-mega__col1 {
    padding: 24px 20px 20px;
    border-right: 1px solid #efefef;
    display: flex;
    flex-direction: column;
}

.dango-mega__col1-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.dango-mega__flag {
    font-size: 28px;
    line-height: 1;
    margin-right: 10px;
    flex-shrink: 0;
}

.dango-mega__col1-header-text strong {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.dango-mega__col1-header-text span {
    display: block;
    font-size: 11px;
    color: #999;
    font-weight: 400;
    margin-top: 1px;
}

/* Scroll interno editoriales */
.dango-mega__editoriales {
    flex: 1;
    overflow-y: auto;
    max-height: 320px;
}

.dango-mega__editoriales::-webkit-scrollbar {
    width: 3px;
}
.dango-mega__editoriales::-webkit-scrollbar-track {
    background: #f5f5f5;
}
.dango-mega__editoriales::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 2px;
}

.dango-mega__editorial {
    display: flex;
    align-items: center;
    padding: 8px 6px;
    border-radius: 6px;
    text-decoration: none !important;
    transition: background 0.15s;
    border-bottom: 1px solid #f5f5f5;
}

.dango-mega__editorial img {
    width: 56px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
    margin-right: 12px;
}

.dango-mega__editorial-placeholder {
    width: 56px;
    height: 32px;
    background: #f0f0f0;
    border-radius: 4px;
    flex-shrink: 0;
    display: inline-block;
    margin-right: 12px;
}

.dango-mega__editorial-name {
    font-size: 13px;
    color: #222 !important;
    font-weight: 500;
    line-height: 1.3;
}

.dango-mega__editorial:hover {
    background: #fafafa;
}

.dango-mega__editorial:hover .dango-mega__editorial-name {
    color: #e8192c !important;
}

/* ══════════════════════════════════════
   COL 2 — Lo más buscado (320px)
   ══════════════════════════════════════ */
.dango-mega__col2 {
    padding: 24px 20px 20px;
    border-right: 1px solid #efefef;
    display: flex;
    flex-direction: column;
}

.dango-mega__col2-title {
    font-size: 12px;
    font-weight: 700;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin: 0 0 14px 0;
    display: flex;
    align-items: center;
}

/* Scroll interno series */
.dango-mega__series {
    flex: 1;
    overflow-y: auto;
    max-height: 320px;
}

.dango-mega__series::-webkit-scrollbar {
    width: 3px;
}
.dango-mega__series::-webkit-scrollbar-track {
    background: #f5f5f5;
}
.dango-mega__series::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 2px;
}

.dango-mega__serie {
    display: flex;
    align-items: center;
    padding: 7px 6px;
    border-radius: 6px;
    text-decoration: none !important;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.15s;
}

.dango-mega__serie img {
    width: 36px;
    height: 50px;
    object-fit: cover;
    border-radius: 3px;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.10);
    margin-right: 12px;
}

.dango-mega__serie-placeholder {
    width: 36px;
    height: 50px;
    background: #f0f0f0;
    border-radius: 3px;
    flex-shrink: 0;
    display: inline-block;
    margin-right: 12px;
}

.dango-mega__serie-name {
    flex: 1;
    font-size: 13px;
    color: #222 !important;
    font-weight: 500;
    line-height: 1.3;
}

.dango-mega__serie:hover {
    background: #fafafa;
}

.dango-mega__serie:hover .dango-mega__serie-name {
    color: #e8192c !important;
}

.dango-mega__serie-arrow {
    color: #ccc;
    font-size: 18px;
    font-style: normal;
    flex-shrink: 0;
    margin-left: 6px;
}

/* ── CTA compartido col 1 y 2 ── */
.dango-mega__cta {
    display: inline-flex;
    align-items: center;
    margin-top: 14px;
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid #d0d0d0;
    font-size: 11px;
    font-weight: 700;
    color: #e8192c !important;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: border-color 0.15s, background 0.15s;
    width: fit-content;
}

.dango-mega__cta:hover {
    border-color: #e8192c;
    background: #fff5f5;
}

/* ══════════════════════════════════════
   COL 3 — Banner
   ══════════════════════════════════════ */
.dango-mega__col3 {
    position: relative;
    overflow: hidden;
    min-height: 420px;
}

/* Con imagen */
.dango-mega__banner {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 420px;
    background-size: cover;
    background-position: center;
    position: relative;
    text-decoration: none !important;
}

.dango-mega__banner-content {
    position: absolute;
    bottom: 32px;
    left: 32px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Countdown */
.dango-mega__countdown {
    display: flex;
    align-items: flex-end;
    margin-bottom: 16px;
}

.dango-mega__countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #ffffff;
    border-radius: 6px;
    padding: 8px 14px;
    margin-right: 6px;
    min-width: 54px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.dango-mega__countdown-num {
    font-size: 26px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1;
}

.dango-mega__countdown-label {
    font-size: 9px;
    font-weight: 700;
    color: #888;
    letter-spacing: 0.5px;
    margin-top: 4px;
    text-transform: uppercase;
}

/* Botón */
.dango-mega__banner-btn {
    display: inline-block;
    background: #e8192c;
    color: #fff !important;
    padding: 13px 28px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none !important;
    transition: background 0.15s;
}

.dango-mega__banner-btn:hover {
    background: #b1060b;
    color: #fff !important;
}

/* Sin imagen (placeholder) */
.dango-mega__banner--placeholder {
    display: flex;
    align-items: flex-end;
    width: 100%;
    height: 100%;
    min-height: 420px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    text-decoration: none !important;
    padding: 28px;
    box-sizing: border-box;
}

.dango-mega__banner--placeholder .dango-mega__banner-content {
    position: static;
}

.dango-mega__banner--placeholder p {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    margin: 0 0 14px 0;
    line-height: 1.5;
}

/* ── Asegurar position relative en la barra de países ── */
.ast-below-header-section,
.ast-below-header-bar,
.ast-below-header,
#dango-paises-bar {
    position: relative !important;
}