/* ==========================================================================
   DCID ONLINE - DASHBOARD B2B & NATIVE APP LAYOUT
   este archivo es css/dashboard-layout.css
   ========================================================================== */

/* 1. CONTENEDOR PRINCIPAL (Mobile First) */
.dcid-dash-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* 2. COLUMNAS MÓVIL */
.dcid-dash-col {
    display: none;
    animation: fadeIn 0.3s ease;
}
.dcid-dash-col.is-active {
    display: block;
}
.dcid-dash-header,
.dcid-dash-footer {
    display: block;
    width: 100%;
}

.dcid-dash-header {
    margin-top:20px !important;
}

.dcid-dash-footer.is-empty {
    display: none;
}

/* ==========================================================================
   NUEVOS ELEMENTOS: PÍLDORAS DE ESTADO Y CONDICIONES DE CIERRE
   ========================================================================== */

.dcid-status-pill.is-open {
    background-color: rgba(15, 157, 88, 0.15); /* Verde sutil */
    color: #0f9d58;
    border: 1px solid rgba(15, 157, 88, 0.3);
}

.dcid-status-pill.is-closed {
    background-color: rgba(219, 68, 55, 0.15); /* Rojo sutil */
    color: #db4437;
    border: 1px solid rgba(219, 68, 55, 0.3);
}

/* Modificadores de Grid Exclusivos para Solicitudes (Carrusel) */
@media (min-width: 1024px) {
    .dcid-dash-layout.layout-solicitudes {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.2fr) !important;
    }
}

/* Botón de Expansión de Respuestas de la Comunidad */
.btn-ver-respuestas {
    width: 100%;
    background-color: rgba(255,255,255,0.05);
    border: 1px solid var(--theme-color);
    color: #eaeaea;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-ver-respuestas:hover {
    background-color: var(--theme-color);
    color: #fff;
}

/* Contenedor oculto de respuestas (Desplegable) */
.respuestas-comunidad-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
}

.respuestas-comunidad-wrapper.is-expanded {
    max-height: 2000px; /* Valor alto para permitir la animación CSS */
    transition: max-height 0.6s ease-in-out;
    margin-top: 15px;
}

/* 3. BOTTOM NAVIGATION BAR (Solo Móvil) */
.dcid-mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #1a1a1a;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: calc(65px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 9999;
    border-top: 1px solid #333;
}
.dcid-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #888;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    background: transparent;
    padding: 8px 0;
}
.dcid-nav-item i,
.dcid-nav-item svg {
    font-size: 22px;
    margin-bottom: 4px;
}
.dcid-nav-item.is-active {
    color: var(--theme-color, var(--color-d-azul));
}

/* 4. LAYOUT ESCRITORIO (Dashboard B2B CSS Grid) */
@media (min-width: 1024px) {
    .dcid-dash-layout {
        display: grid;
        grid-template-columns: minmax(0, 1.20fr) minmax(0, 0.9fr) minmax(0, 1.20fr);
        align-items: start;
        column-gap: 0;
        row-gap: 15px;
        padding-bottom: 40px;
    }

    .dcid-dash-header,
    .dcid-dash-footer {
        grid-column: 1 / -1;
    }
    
    #col-votens {
        grid-column: 1 / -1; /* Ocupa las 3 columnas enteras */
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-top: 20px;
        padding-top: 40px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .dcid-dash-col {
        display: block !important;
    }

    .dcid-dash-col-left {
        padding-right: 30px;
    }

    .dcid-dash-col-center {
        position: sticky;
        top: 30px;
        background-color: rgba(255, 255, 255, 0.02);
        border: 1px solid var(--theme-color);
        border-radius: 16px;
        padding: 30px 30px 40px 30px; 
        z-index: 1;
    }

    .dcid-dash-col-right {
        position: sticky;
        top: 30px;
        overflow: visible;
        padding-left: 30px;
        z-index: 2;
    }

    .dcid-mobile-nav {
        display: none;
    }
}

/* 5. COMPONENTES INTERNOS Y BOTÓN VOTAR */
.dcid-dash-block-fw {
    width: 100%;
    margin-bottom: 20px;
    display: flex;
}

.btn-votar {
    background-color: var(--theme-color, #4285f4);
    color: #fff !important;
    border: none;
    padding: 12px 20px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
    width: 100%;
    display: block;
    text-align: center;
}
.btn-votar:hover {
    filter: brightness(0.85);
}

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

/* ==========================================================================
   PANEL DE RELACIONES B2B — NUEVO SISTEMA DE PANEL HERMANO
   ========================================================================== */

/* RECUPERADO: El Grid de los 4 items (botones) */
.dcid-dash-related-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 0;
}

/* Items del B2B (Borde camaleónico de 1px) */
.dcid-b2b-rel-item {
    background: rgba(0,0,0) !important;
    border: 1px solid var(--theme-color) !important; 
    border-radius: 8px !important;
    cursor: pointer;
    transition: all 0.3s ease !important;
    opacity: 0.85;
}

.dcid-b2b-rel-item:hover,
.dcid-b2b-rel-item.is-active-item {
    border-color: var(--item-color) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    opacity: 1;
    transform: translateY(-2px);
}

.b2b-rel-header {
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    position: relative;
}

.b2b-rel-header img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.dcid-b2b-rel-item:hover .b2b-rel-header img,
.dcid-b2b-rel-item.is-active-item .b2b-rel-header img {
    transform: scale(1.1);
}

.b2b-rel-title {
    font-size: 0.85em;
    font-weight: 600;
    color: #ccc;
}

/* Badge de contador */
.b2b-rel-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--item-color);
    color: #fff;
    font-size: 0.75em;
    font-weight: bold;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* ── CONTENEDOR DEL PANEL HERMANO ── */
.dcid-b2b-panel-container {
    margin-top: 10px;
    margin-bottom: 20px;
}

.dcid-b2b-panel {
    background: #1a1a1a;
    border: 1px solid var(--panel-color, rgba(255, 255, 255, 0.15));
    border-radius: 8px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.dcid-b2b-panel.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.dcid-b2b-panel[hidden] {
    display: none;
}

.dcid-b2b-panel-header {
    padding: 10px 15px;
    font-size: 0.8em;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--panel-color, #ccc);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.03);
}

.dcid-b2b-panel a {
    display: block;
    padding: 12px 15px;
    font-size: 0.85em;
    color: #eaeaea;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease, color 0.2s ease;
}
.dcid-b2b-panel a:last-child {
    border-bottom: none;
}
.dcid-b2b-panel a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--panel-color, #fff);
}

.dcid-b2b-panel .line1 {
    display: block;
    font-weight: bold;
}
.dcid-b2b-panel .line2 {
    display: block;
    font-size: 0.8em;
    opacity: 0.6;
}

.dcid-b2b-panel-separator {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 4px 0;
}

/* ==========================================================================
   AJUSTES FINALES B2B Y TIPOGRAFÍA
   ========================================================================== */

a.dcid-btn-debate {
    display: flex !important;
    min-height: 54px !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid var(--theme-color) !important;
    color: var(--theme-color) !important;
    background-color: rgba(255, 255, 255, 0.02) !important;
    border-radius: 8px !important;
    font-size: 1.1em !important;
    font-weight: 600 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-decoration: none !important;
}
a.dcid-btn-debate i {
    margin-right: 8px;
    font-size: 1.2em;
}
a.dcid-btn-debate:hover {
    transform: scale(1.02) !important;
    background-color: var(--theme-color) !important;
    color: #fff !important;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4) !important;
}

.provisional-results-container h3,
.estadisticas-votacion h3.results-title {
    white-space: nowrap;
    text-align: center;
    font-size: 1.1em !important;
}

.change-vote-trigger-container p,
.max-changes-msg p {
    text-align: center;
    text-wrap: balance;
    line-height: 1.5;
    margin: 0;
}

body.single-decisiones .dcid-floating-menus-wrapper,
body.single-democrazy .dcid-floating-menus-wrapper,
body.single-solicitud_ayuda .dcid-floating-menus-wrapper,
body.single-dcidocs .dcid-floating-menus-wrapper {
    display: none !important;
}

/* ==========================================================================
   LATIDO, BORDES Y ESTADO SELECCIONADO (Alta Especificidad)
   ========================================================================== */
#vote-form-decisiones .opcion-decision,
#vote-form-democrazy .opcion-democrazy {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 1px solid var(--theme-color) !important; 
    border-radius: 8px !important; 
    margin-bottom: 15px !important;
    background-color: rgba(255, 255, 255, 0.01) !important; 
    color: #eaeaea !important;
}

/* 1. Estado Hover */
#vote-form-decisiones .opcion-decision:hover,
#vote-form-democrazy .opcion-democrazy:hover {
    transform: scale(1.02) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    background-color: var(--theme-color) !important;
}

/* 2. Estado Seleccionado */
#vote-form-decisiones .opcion-decision:has(input[type="radio"]:checked),
#vote-form-democrazy .opcion-democrazy:has(input[type="radio"]:checked),
#vote-form-decisiones .opcion-decision.selected,
#vote-form-democrazy .opcion-democrazy.selected,
#vote-form-decisiones .opcion-decision.seleccionada,
#vote-form-decisiones .opcion-democrazy.seleccionada {
    transform: scale(1.02) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    background-color: var(--theme-color) !important;
}

#vote-form-decisiones .opcion-decision:hover *,
#vote-form-democrazy .opcion-democrazy:hover *,
#vote-form-decisiones .opcion-decision:has(input[type="radio"]:checked) *,
#vote-form-democrazy .opcion-democrazy:has(input[type="radio"]:checked) *,
#vote-form-decisiones .opcion-decision.selected *,
#vote-form-democrazy .opcion-democrazy.selected * {
    color: #ffffff !important;
}

/* ==========================================================================
   MENSAJES DE ESTADO Y RESTRICCIÓN (Borde corporativo y texto sutil)
   ========================================================================== */
.restriction-message,
.max-changes-msg,
.change-vote-trigger-container,
.no-permissions-message {
    border-left: 3px solid var(--theme-color) !important; 
    background-color: rgba(255, 255, 255, 0.02) !important; 
    border-radius: 0 6px 6px 0 !important; 
    padding: 12px 15px !important;
    margin: 15px 0 !important;
    text-align: left !important; 
}

.restriction-message,
.max-changes-msg,
.change-vote-trigger-container,
.no-permissions-message,
.restriction-message p,
.max-changes-msg p,
.change-vote-trigger-container p,
.no-permissions-message p {
    color: #aaa !important; 
    font-size: 1em !important;
    font-weight: normal !important;
    line-height: 1.5 !important;
    margin: 0;
}

/* ==========================================================================
   FASE 3: SOLICITUDES DE AYUDA (Estado, Carrusel y Desplegables)
   ========================================================================== */

.dcid-title-box .dcid-status-pill {
    margin-left: 10px;
    position: relative;
    top: -2px;
    transform: translateY(0);
}

.btn-ver-respuestas {
    width: 100%;
    background-color: rgba(255,255,255,0.05);
    border: 1px solid var(--theme-color);
    color: #eaeaea;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}
.btn-ver-respuestas:hover {
    background-color: var(--theme-color);
    color: #fff;
}

.respuestas-comunidad-wrapper {
    max-height: 0;
    overflow-y: auto;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
    scrollbar-width: thin;
    scrollbar-color: var(--theme-color) rgba(0,0,0,0.2);
}
.respuestas-comunidad-wrapper.is-expanded {
    max-height: 60vh;
    transition: max-height 0.6s ease-in-out;
    margin-top: 15px;
    padding-right: 5px;
}

/* ==========================================================================
   AJUSTES EXCLUSIVOS MÓVIL
   ========================================================================== */
@media (max-width: 1023px) {
    body.single-decisiones,
    body.single-democrazy,
    body.single-solicitud_ayuda,
    body.single-dcidocs {
        background-color: #111 !important;
        color: #fff;
    }
    .site,
    #page,
    .ast-container,
    .site-content, 
    #primary {
        background-color: transparent !important;
    }
    
    .dcid-dash-related-grid {
        gap: 20px !important; 
    }
    .b2b-rel-header {
        padding: 30px 15px !important; 
        gap: 15px !important;
    }
    .b2b-rel-header img {
        width: 50px !important;  
        height: 50px !important; 
        margin-bottom: 5px !important;
    }
    .b2b-rel-title {
        font-size: 1.15em !important; 
    }
    .b2b-rel-badge {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.9em !important;
        top: -10px !important;
        right: -10px !important;
    }
    
    a.dcid-btn-debate {
        margin-top: 10px !important;
    }
    
    #vote-form-decisiones .options-container,
    #vote-form-democrazy .options-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
    }
    
    #vote-form-decisiones .opcion-decision,
    #vote-form-decisiones .free-option-input,
    #vote-form-democrazy .opcion-democrazy,
    #vote-form-democrazy .free-option-input {
        width: 85% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

.editor-output,
.editor-output p,
.editor-output li {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.05em;
    line-height: 1.6;
    letter-spacing: 0.01em;
}

/* ==========================================================================
   FASE 3: MEJORAS SOLICITUDES (Header, Carrusel Táctil y Modal Editor)
   ========================================================================== */

.dcid-title-box {
    background-color: var(--theme-color);
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0 15px 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.dcid-title-box h1 {
    color: #151515 !important;
    font-size: 1.8em;
    font-weight: bold;
    margin: 0;
    display: inline-block;
}

.solicitud-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    width: 100%;
}
.dcid-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.65em;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

#col-votar .carrusel-container .carrusel-arrow {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
    background: var(--theme-color) !important;
    border: none !important;
    border-radius: 50% !important;
    width: 38px !important; height: 38px !important;
    color: white !important;
    display: flex !important; justify-content: center !important; align-items: center !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5) !important;
}
#col-votar .carrusel-container .carrusel-arrow-left { 
    left: 0 !important; 
    right: auto !important; 
}
#col-votar .carrusel-container .carrusel-arrow-right { 
    right: 0 !important; 
    left: auto !important; 
}
.grid-productos-comparacion {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 15px;
    width: 100%;
    padding: 10px 0;
    scrollbar-width: none;
}
.grid-productos-comparacion::-webkit-scrollbar { 
    display: none; 
}
.solicitud-product-card {
    flex: 0 0 calc(100% - 10px);
    scroll-snap-align: center;
    max-width: 300px;
    margin: 0 auto;
}
@media (min-width: 1024px) {
    .solicitud-product-card {
        flex: 0 0 calc(50% - 10px);
        max-width: none;
    }
}

.carrusel-arrow:hover {
    transform: translateY(-50%) scale(1.1);
    background: #fff;
    color: var(--theme-color);
}
.carrusel-arrow-left { left: 0; }
.carrusel-arrow-right { right: 0; }

#btn-abrir-modal-explicacion {
    width: 100%;
    background-color: transparent;
    border: 1px solid var(--theme-color);
    color: var(--theme-color);
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}
#btn-abrir-modal-explicacion:hover {
    background-color: rgba(255,255,255,0.05);
}
#dcid-editor-modal .dcid-modal-content {
    max-width: 738px !important;
    width: 95%;
}

/* ==========================================================================
   MODAL FONDO OSCURO SÓLIDO Y ALTURA DEL EDITOR
   ========================================================================== */

html body #col-votar div#dcid-editor-modal.dcid-modal-overlay {
    background-color: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
}

html body #col-votar div#dcid-editor-modal div#custom-editor-response.custom-editor {
    min-height: 280px !important;
}

/* ==========================================================================
   FASE 3: LISTA SIMPLE Y MODAL DE COMPARACIÓN EXTRA-ANCHA
   ========================================================================== */

.dcid-simple-product-list {
    margin: 15px 0 25px 0;
    background: #1a1a1a;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
    padding: 10px 20px;
    list-style: none;
}
.dcid-simple-product-list li {
    padding: 10px 0;
    border-bottom: 1px dashed rgba(255,255,255,0.1);
    color: #eaeaea;
    font-size: 0.95em;
    display: flex;
    align-items: center;
}
.dcid-simple-product-list li:last-child {
    border-bottom: none;
}
.dcid-simple-product-list li i {
    color: var(--theme-color);
    margin-right: 10px;
    font-size: 0.8em;
}

.dcid-btn-comparar {
    width: 100%;
    background-color: var(--theme-color);
    color: #fff;
    border: none;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 1.05em;
    font-weight: bold;
    cursor: pointer;
    transition: filter 0.2s;
    margin-bottom: 10px;
}
.dcid-btn-comparar:hover { filter: brightness(1.1); }

.dcid-btn-proponer-distinto {
    width: 100%;
    background-color: transparent;
    color: #ccc;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.2s;
}
.dcid-btn-proponer-distinto:hover {
    background-color: rgba(255,255,255,0.05);
    color: #fff;
    border-color: #fff;
}

#dcid-modal-comparacion-ancha .dcid-editor-content-premium {
    max-width: 1200px !important;
    width: 95%;
}

@media (min-width: 1024px) {
    #dcid-modal-comparacion-ancha .solicitud-product-card {
        flex: 0 0 calc(33.333% - 10px) !important;
        max-width: 350px !important;
    }
}

/* ==========================================================================
   MODAL DE BÚSQUEDA: OCULTAR CONTADORES DE SELECCIÓN
   ========================================================================== */

#modal-body-productos-selector-content > h3:first-of-type,
#modal-body-productos-selector-content > h4:first-of-type,
#modal-body-productos-selector-content .resumen-seleccion,
#modal-body-productos-selector-content .dcid-selection-summary,
#modal-body-productos-selector-content .selected-items-container {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

#modal-body-productos-selector-content .dcid-search-container,
#modal-body-productos-selector-content input[type="text"]:first-of-type {
    margin-top: 5px !important;
}

/* ==========================================================================
   DEBATE CAROUSEL & DUAL NAV (ESTADOS REFORMADOS) - DCID ONLINE
   ========================================================================== */

.dcid-balanza-wrapper {
    position: relative;
    width: 100%;
}

/* --- 1. CONFIGURACIÓN EN DESKTOP (ESCRITORIO) --- */
@media (min-width: 1024px) {
    .dcid-debate-carousel-container {
        display: flex;
        flex-wrap: nowrap;
        gap: 20px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
        width: 100%;
        padding: 10px 0;
        box-sizing: border-box;
    }

    .dcid-debate-carousel-container::-webkit-scrollbar {
        display: none;
    }

    .dcid-debate-column {
        flex: 0 0 calc(25% - 15px);
        scroll-snap-align: start;
        display: flex;
        flex-direction: column;
        min-width: 250px;
        box-sizing: border-box;
    }

    .dcid-debate-carousel-container.no-scroll {
        overflow-x: visible;
        justify-content: center;
    }

    .dcid-debate-carousel-container.no-scroll .dcid-debate-column {
        flex: 1 1 0;
        max-width: calc(25% - 15px);
    }

    .dcid-col-cards-body {
        display: flex;
        flex-direction: column;
        gap: 15px;
        flex-grow: 1;
        justify-content: flex-start;
    }

    .dcid-static-card {
        height: auto !important;
    }

    .dcid-carousel-arrows-container {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
    }

    .dcid-carousel-arrow {
        position: sticky;
        top: 50vh;
        transform: translateY(-50%);
        pointer-events: auto;
        background: rgba(17, 17, 17, 0.9);
        border: 2px solid var(--debate-theme-color, var(--theme-color));
        color: var(--debate-theme-color, var(--theme-color)) !important;
        border-radius: 50%;
        width: 44px;
        height: 44px;
        cursor: pointer;
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.25s ease;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    }

    .dcid-carousel-arrow:hover {
        background: var(--debate-theme-color, var(--theme-color));
        color: #111111 !important;
        transform: translateY(-50%) scale(1.1);
    }

    .dcid-carousel-arrow.is-hidden {
        opacity: 0;
        pointer-events: none;
    }

    .dcid-carousel-prev {
        position: absolute;
        left: -22px;
    }

    .dcid-carousel-next {
        position: absolute;
        right: -22px;
    }
}

/* --- 2. CONFIGURACIÓN EN RESPONSIVE (MÓVIL) --- */
@media (max-width: 1023px) {
    .dcid-debate-carousel-container {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        gap: 0;
        padding-bottom: 20px;
    }

    .dcid-debate-column {
        flex: 0 0 100%;
        scroll-snap-align: center;
        box-sizing: border-box;
        padding: 0 15px;
    }

    .dcid-debate-sub-nav {
        position: fixed;
        bottom: calc(65px + env(safe-area-inset-bottom));
        left: 0;
        width: 100%;
        background-color: #1f1f1f;
        border-top: 1px solid #333;
        border-bottom: 1px solid #111;
        z-index: 100000 !important;
        height: 48px;
        display: flex;
        align-items: center;
        opacity: 0;
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
        box-shadow: 0 -4px 10px rgba(0,0,0,0.5);
    }

    .dcid-debate-sub-nav.is-active {
        opacity: 1;
        transform: translateY(0);
    }

    body.has-debate-subnav-active .dcid-dash-layout-wrapper {
        padding-bottom: calc(118px + env(safe-area-inset-bottom)) !important;
    }

    .dcid-sub-nav-scroll-container {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        width: 100%;
        height: 100%;
        align-items: center;
        padding: 0 10px;
        box-sizing: border-box;
        mask-image: linear-gradient(to right, black 82%, transparent 100%);
        -webkit-mask-image: linear-gradient(to right, black 82%, transparent 100%);
    }

    .dcid-sub-nav-scroll-container::-webkit-scrollbar {
        display: none;
    }

    .dcid-sub-nav-item {
        flex: 0 0 42%;
        scroll-snap-align: start;
        border: none;
        background: transparent;
        color: #888888;
        font-size: 0.8rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        text-align: center;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        padding: 0 10px;
        cursor: pointer;
        transition: color 0.2s ease, border-color 0.2s ease;
        border-bottom: 3px solid transparent;
        box-sizing: border-box;
    }

    .dcid-sub-nav-item.is-active {
        color: var(--theme-color, var(--color-d-azul)) !important;
        border-bottom-color: var(--theme-color, var(--color-d-azul)) !important;
    }
}

@media print {
    a {
        color: #0000FF !important;
        text-decoration: underline !important;
    }
    a {
        color: var(--color-D-verde) !important;
        text-decoration: underline !important;
    }
}
