/* =========================================================
   HRGDV - CABECERA CORPORATIVA Y MEGAMENÚ (SOLO MODO CLARO)
   ========================================================= */

:root {
    --hrgdv-red-primary: #d60000;
    --hrgdv-red-dark: #a80000;
    --hrgdv-red-soft: #fef2f2;
}

/* 1. Fondo principal de la cabecera */
[data-bs-theme="light"] .header-custom-red {
    background: linear-gradient(135deg, var(--hrgdv-red-primary) 0%, var(--hrgdv-red-dark) 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.10);
}

/* =========================================================
   2. MENÚ PRINCIPAL (INICIO Y OTROS BOTONES)
   ========================================================= */

/* A) BOTÓN "INICIO" (ACTIVO / HERE) -> Caja Blanca con Texto e Ícono Rojo */
[data-bs-theme="light"] .header-custom-red [id*="kt_header_menu"] > .menu-item.here > .menu-link,
[data-bs-theme="light"] .header-custom-red [id*="kt_header_menu"] > .menu-item.active > .menu-link {
    background-color: #ffffff !important;
    border-radius: 0.475rem !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12) !important;
}

/* Forzar color rojo a las letras, íconos y paths del botón "Inicio" activo */
[data-bs-theme="light"] .header-custom-red [id*="kt_header_menu"] > .menu-item.here > .menu-link *,
[data-bs-theme="light"] .header-custom-red [id*="kt_header_menu"] > .menu-item.here > .menu-link [class*="text-"],
[data-bs-theme="light"] .header-custom-red [id*="kt_header_menu"] > .menu-item.here > .menu-link i [class*="path"] {
    color: var(--hrgdv-red-primary) !important;
}


/* B) "MÁS INFORMACIÓN" Y ELEMENTOS INACTIVOS -> Texto e Ícono Blanco Absolute */
[data-bs-theme="light"] .header-custom-red [id*="kt_header_menu"] > .menu-item:not(.here):not(.active) > .menu-link {
    background-color: transparent !important;
    border-radius: 0.475rem !important;
}

/* Anular text-primary/text-gray de Metronic en la barra superior para forzar BLANCO */
[data-bs-theme="light"] .header-custom-red [id*="kt_header_menu"] > .menu-item:not(.here):not(.active) > .menu-link *,
[data-bs-theme="light"] .header-custom-red [id*="kt_header_menu"] > .menu-item:not(.here):not(.active) > .menu-link [class*="text-"],
[data-bs-theme="light"] .header-custom-red [id*="kt_header_menu"] > .menu-item:not(.here):not(.active) > .menu-link i [class*="path"] {
    color: #ffffff !important;
}

/* Hover en la barra superior (Efecto translúcido) */
[data-bs-theme="light"] .header-custom-red [id*="kt_header_menu"] > .menu-item:not(.here):not(.active):hover > .menu-link {
    background-color: rgba(255, 255, 255, 0.18) !important;
}


/* =========================================================
   3. MEGAMENÚ DESPLEGABLE / SUBMENÚS INTERNOS
   ========================================================= */

/* Fondo base del contenedor desplegable */
[data-bs-theme="light"] .header-custom-red .menu-sub-lg-dropdown {
    background-color: #ffffff !important;
    border: 1px solid #e1e7ef !important;
    box-shadow: 0 10px 25px rgba(0, 40, 90, 0.12) !important;
}

/* Mantener legibles los nombres y descripciones en reposo */
[data-bs-theme="light"] .header-custom-red .menu-sub-lg-dropdown .text-gray-800 {
    color: #1b2a4a !important;
}

[data-bs-theme="light"] .header-custom-red .menu-sub-lg-dropdown .text-muted {
    color: #5b6b82 !important;
}

/* HOVER DENTRO DEL DESPLEGABLE: Fondo suave rojo + Texto e Íconos en ROJO */
[data-bs-theme="light"] .header-custom-red .menu-sub-lg-dropdown .menu-item .menu-link:hover,
[data-bs-theme="light"] .header-custom-red .menu-sub-lg-dropdown .menu-item .menu-link.active {
    background-color: var(--hrgdv-red-soft) !important;
    border-radius: 0.375rem !important;
}

/* Anular colores de Bootstrap/Metronic dentro del submenú cuando se pasa el cursor */
[data-bs-theme="light"] .header-custom-red .menu-sub-lg-dropdown .menu-item .menu-link:hover .text-gray-800,
[data-bs-theme="light"] .header-custom-red .menu-sub-lg-dropdown .menu-item .menu-link:hover .text-muted,
[data-bs-theme="light"] .header-custom-red .menu-sub-lg-dropdown .menu-item .menu-link:hover .menu-title,
[data-bs-theme="light"] .header-custom-red .menu-sub-lg-dropdown .menu-item .menu-link:hover [class*="text-"],
[data-bs-theme="light"] .header-custom-red .menu-sub-lg-dropdown .menu-item .menu-link:hover i [class*="path"],
[data-bs-theme="light"] .header-custom-red .menu-sub-lg-dropdown .menu-item .menu-link.active .text-gray-800,
[data-bs-theme="light"] .header-custom-red .menu-sub-lg-dropdown .menu-item .menu-link.active .text-muted,
[data-bs-theme="light"] .header-custom-red .menu-sub-lg-dropdown .menu-item .menu-link.active .menu-title,
[data-bs-theme="light"] .header-custom-red .menu-sub-lg-dropdown .menu-item .menu-link.active [class*="text-"],
[data-bs-theme="light"] .header-custom-red .menu-sub-lg-dropdown .menu-item .menu-link.active i [class*="path"] {
    color: var(--hrgdv-red-primary) !important;
}

/* Columna lateral derecha "Más Estadísticas" */
[data-bs-theme="light"] .header-custom-red .menu-sub-lg-dropdown .bg-light {
    background-color: #f8f9fa !important;
}

[data-bs-theme="light"] .header-custom-red .menu-sub-lg-dropdown .bg-light .menu-link:hover .menu-title {
    color: var(--hrgdv-red-primary) !important;
}

/* =========================================================
   BORDE/DELINEADO BLANCO NÍTIDO PARA LOGO (OPINA PERÚ)
   ========================================================= */

[data-bs-theme="light"] .header-custom-red .logo-highlight-light {
    /* 1. Delineado sólido blanco de 1.5px en todas las direcciones */
    filter: drop-shadow( 1.5px  0px 0px #ffffff) 
            drop-shadow(-1.5px  0px 0px #ffffff) 
            drop-shadow( 0px  1.5px 0px #ffffff) 
            drop-shadow( 0px -1.5px 0px #ffffff)
            drop-shadow( 1px   1px 0px #ffffff)
            drop-shadow(-1px  -1px 0px #ffffff)
            /* 2. Sombra suave externa para dar volumen sobre el fondo rojo */
            drop-shadow(0px 3px 6px rgba(0, 0, 0, 0.4)) !important;
            
    transition: filter 0.25s ease-in-out;
}

/* Efecto Hover opcional */
[data-bs-theme="light"] .header-custom-red .logo-highlight-light:hover {
    filter: drop-shadow( 2px  0px 0px #ffffff) 
            drop-shadow(-2px  0px 0px #ffffff) 
            drop-shadow( 0px  2px 0px #ffffff) 
            drop-shadow( 0px -2px 0px #ffffff)
            drop-shadow(0px 3px 7px rgba(0, 0, 0, 0.5)) !important;
}

/* =========================================================
   SELECTOR DE TEMA (MODO CLARO / OSCURO / SISTEMA) - HRGDV
   ========================================================= */

/* 1. Botón principal en la cabecera (Ícono Sol/Luna en BLANCO) */
[data-bs-theme="light"] .header-custom-red .btn-icon[data-kt-menu-attach="parent"] {
    background-color: transparent !important;
}

/* Forzar color blanco a los íconos KeenIcons y sus paths internos */
[data-bs-theme="light"] .header-custom-red .btn-icon[data-kt-menu-attach="parent"] i,
[data-bs-theme="light"] .header-custom-red .btn-icon[data-kt-menu-attach="parent"] i [class*="path"] {
    color: #ffffff !important;
}

/* Hover en el botón del selector (Fondo blanco suave translúcido) */
[data-bs-theme="light"] .header-custom-red .btn-icon[data-kt-menu-attach="parent"]:hover,
[data-bs-theme="light"] .header-custom-red .btn-icon[data-kt-menu-attach="parent"].show {
    background-color: rgba(255, 255, 255, 0.20) !important;
}


/* 2. Menú desplegable interno (Opciones: Claro, Oscuro, Sistema) */
[data-bs-theme="light"] .header-custom-red [data-kt-element="theme-mode-menu"] {
    background-color: #ffffff !important;
    border: 1px solid #e1e7ef !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12) !important;
}

/* Color normal de los ítems */
[data-bs-theme="light"] .header-custom-red [data-kt-element="theme-mode-menu"] .menu-link .menu-title {
    color: #181c32 !important;
}

/* 3. HOVER Y ACTIVO EN EL DESPLEGABLE -> Cambiar de Azul a ROJO CORPORATIVO */
[data-bs-theme="light"] .header-custom-red [data-kt-element="theme-mode-menu"] .menu-link:hover,
[data-bs-theme="light"] .header-custom-red [data-kt-element="theme-mode-menu"] .menu-link.active {
    background-color: #fef2f2 !important; /* Fondo rojo suave */
    border-radius: 0.475rem !important;
}

/* Forzar texto e íconos a rojo cuando se seleccionan o se pasa el mouse */
[data-bs-theme="light"] .header-custom-red [data-kt-element="theme-mode-menu"] .menu-link:hover .menu-title,
[data-bs-theme="light"] .header-custom-red [data-kt-element="theme-mode-menu"] .menu-link:hover .menu-icon i,
[data-bs-theme="light"] .header-custom-red [data-kt-element="theme-mode-menu"] .menu-link:hover i [class*="path"],
[data-bs-theme="light"] .header-custom-red [data-kt-element="theme-mode-menu"] .menu-link.active .menu-title,
[data-bs-theme="light"] .header-custom-red [data-kt-element="theme-mode-menu"] .menu-link.active .menu-icon i,
[data-bs-theme="light"] .header-custom-red [data-kt-element="theme-mode-menu"] .menu-link.active i [class*="path"] {
    color: var(--hrgdv-red-primary, #d60000) !important;
}

/* =========================================================
   HRGDV - ICONOS DEL HEADER EN MODO CELULAR
   ========================================================= */

@media (max-width: 991.98px) {

    /* =========================================================
       1. BOTONES MÓVILES DEL HEADER (#kt_aside_toggle y #kt_header_menu_mobile_toggle)
       ========================================================= */

    /* Fondo translúcido suave al pasar el cursor, presionar o estar desplegado */
    [data-bs-theme="light"] .header-custom-red #kt_header_menu_mobile_toggle:hover,
    [data-bs-theme="light"] .header-custom-red #kt_header_menu_mobile_toggle:focus,
    [data-bs-theme="light"] .header-custom-red #kt_header_menu_mobile_toggle:active,
    [data-bs-theme="light"] .header-custom-red #kt_header_menu_mobile_toggle.show,
    [data-bs-theme="light"] .header-custom-red #kt_aside_toggle:hover,
    [data-bs-theme="light"] .header-custom-red #kt_aside_toggle:focus,
    [data-bs-theme="light"] .header-custom-red #kt_aside_toggle:active,
    [data-bs-theme="light"] .header-custom-red #kt_aside_toggle.show {
        background-color: rgba(255, 255, 255, 0.20) !important;
    }

    /* Forzar siempre el ícono y sus sub-elementos (SVG, font-icon, pseudo-elementos) a Blanco */
    [data-bs-theme="light"] .header-custom-red #kt_aside_toggle,
    [data-bs-theme="light"] .header-custom-red #kt_aside_toggle *,
    [data-bs-theme="light"] .header-custom-red #kt_aside_toggle i::before,
    [data-bs-theme="light"] .header-custom-red #kt_header_menu_mobile_toggle,
    [data-bs-theme="light"] .header-custom-red #kt_header_menu_mobile_toggle *,
    [data-bs-theme="light"] .header-custom-red #kt_header_menu_mobile_toggle i::before {
        color: #ffffff !important;
    }


    /* =========================================================
       2. MENÚ DESPLEGABLE MÓVIL (DRAWER DE NAVEGACIÓN)
       ========================================================= */

    /* Fondo rojo suave y texto oscuro en estado activo o hover */
    [data-bs-theme="light"] [data-kt-drawer-name="header-menu"] .menu-item > .menu-link:hover,
    [data-bs-theme="light"] [data-kt-drawer-name="header-menu"] .menu-item > .menu-link:focus,
    [data-bs-theme="light"] [data-kt-drawer-name="header-menu"] .menu-item > .menu-link.active {
        background-color: #fef2f2 !important;
        color: #181c32 !important;
        border-radius: 0.475rem !important;
    }

    /* Títulos e íconos en hover/active dentro del drawer */
    [data-bs-theme="light"] [data-kt-drawer-name="header-menu"] .menu-item > .menu-link:hover .menu-title,
    [data-bs-theme="light"] [data-kt-drawer-name="header-menu"] .menu-item > .menu-link:focus .menu-title,
    [data-bs-theme="light"] [data-kt-drawer-name="header-menu"] .menu-item > .menu-link.active .menu-title,
    [data-bs-theme="light"] [data-kt-drawer-name="header-menu"] .menu-item > .menu-link:hover .menu-icon i,
    [data-bs-theme="light"] [data-kt-drawer-name="header-menu"] .menu-item > .menu-link:hover .menu-icon i [class*="path"],
    [data-bs-theme="light"] [data-kt-drawer-name="header-menu"] .menu-item > .menu-link:focus .menu-icon i,
    [data-bs-theme="light"] [data-kt-drawer-name="header-menu"] .menu-item > .menu-link:focus .menu-icon i [class*="path"],
    [data-bs-theme="light"] [data-kt-drawer-name="header-menu"] .menu-item > .menu-link.active .menu-icon i,
    [data-bs-theme="light"] [data-kt-drawer-name="header-menu"] .menu-item > .menu-link.active .menu-icon i [class*="path"] {
        color: #181c32 !important;
    }

    /* Elementos SVG */
    [data-bs-theme="light"] [data-kt-drawer-name="header-menu"] .menu-item > .menu-link:hover svg,
    [data-bs-theme="light"] [data-kt-drawer-name="header-menu"] .menu-item > .menu-link:hover svg path,
    [data-bs-theme="light"] [data-kt-drawer-name="header-menu"] .menu-item > .menu-link.active svg,
    [data-bs-theme="light"] [data-kt-drawer-name="header-menu"] .menu-item > .menu-link.active svg path {
        fill: #181c32 !important;
        stroke: #181c32 !important;
    }

    /* Flechas desplegables */
    [data-bs-theme="light"] [data-kt-drawer-name="header-menu"] .menu-item > .menu-link:hover .menu-arrow:after,
    [data-bs-theme="light"] [data-kt-drawer-name="header-menu"] .menu-item > .menu-link:hover .menu-arrow:before,
    [data-bs-theme="light"] [data-kt-drawer-name="header-menu"] .menu-item > .menu-link.active .menu-arrow:after,
    [data-bs-theme="light"] [data-kt-drawer-name="header-menu"] .menu-item > .menu-link.active .menu-arrow:before {
        background-color: #181c32 !important;
    }
	
	/* Quitar color azul de Metronic y forzar fondo suave + icono blanco */
    [data-bs-theme="light"] .header-custom-red #kt_sidebar_toggle,
    [data-bs-theme="light"] .header-custom-red #kt_sidebar_toggle:hover,
    [data-bs-theme="light"] .header-custom-red #kt_sidebar_toggle:focus,
    [data-bs-theme="light"] .header-custom-red #kt_sidebar_toggle:active,
    [data-bs-theme="light"] .header-custom-red #kt_sidebar_toggle.show {
        background-color: rgba(255, 255, 255, 0.20) !important;
    }

    /* Forzar icono y sus paths en blanco constante */
    [data-bs-theme="light"] .header-custom-red #kt_sidebar_toggle i,
    [data-bs-theme="light"] .header-custom-red #kt_sidebar_toggle i [class*="path"],
    [data-bs-theme="light"] .header-custom-red #kt_sidebar_toggle:hover i,
    [data-bs-theme="light"] .header-custom-red #kt_sidebar_toggle:hover i [class*="path"],
    [data-bs-theme="light"] .header-custom-red #kt_sidebar_toggle:focus i,
    [data-bs-theme="light"] .header-custom-red #kt_sidebar_toggle:focus i [class*="path"],
    [data-bs-theme="light"] .header-custom-red #kt_sidebar_toggle:active i,
    [data-bs-theme="light"] .header-custom-red #kt_sidebar_toggle:active i [class*="path"] {
        color: #ffffff !important;
    }
}
/* =========================================================
   BOTÓN PERSONALIZADO ROJO CORPORATIVO (HRGDV)
   ========================================================= */

.btn-hrgdv-red {
    background-color: var(--hrgdv-red-primary, #d60000) !important;
    color: #ffffff !important;
    border: 1px solid var(--hrgdv-red-primary, #d60000) !important;
    transition: all 0.2s ease-in-out;
}

/* Forzar color blanco en el ícono y sus paths internos */
.btn-hrgdv-red *,
.btn-hrgdv-red i [class*="path"] {
    color: #ffffff !important;
}

/* Hover: Rojo más oscuro y ligera elevación */
.btn-hrgdv-red:hover,
.btn-hrgdv-red:focus,
.btn-hrgdv-red:active {
    background-color: var(--hrgdv-red-dark, #a80000) !important;
    border-color: var(--hrgdv-red-dark, #a80000) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(214, 0, 0, 0.3) !important;
}

/* ==========================================
   LOADER - ENCUESTAS
   ========================================== */
.survey-loader {
    position: relative;
    width: 80px;
    height: 70px;
    margin: 0 auto;
}
.survey-card {
    position: absolute;
    width: 50px;
    height: 60px;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-gray-200);
    border-radius: 8px;
    left: 50%;
    top: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}
/* Líneas de la tarjeta */
.survey-card::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 13px;
    width: 27px;
    height: 4px;
    border-radius: 4px;
    background: var(--bs-gray-200);
    box-shadow:
        0 10px 0 var(--bs-gray-200),
        0 20px 0 var(--bs-gray-200);
}
/* Tarjeta posterior */
.survey-card-1 {
    animation: surveyCard1 1.5s infinite ease-in-out;
}
/* Tarjeta central */
.survey-card-2 {
    animation: surveyCard2 1.5s infinite ease-in-out;
}
/* Tarjeta delantera */
.survey-card-3 {
    animation: surveyCard3 1.5s infinite ease-in-out;
}


/* ==========================================
   ANIMACIONES
   ========================================== */
@keyframes surveyCard1 {
    0%, 100% {
        transform: translate(-50%, -50%) rotate(-8deg);
        opacity: 0.45;
    }
    50% {
        transform: translate(-50%, -50%) rotate(-3deg) translateY(-5px);
        opacity: 0.75;
    }
}

@keyframes surveyCard2 {
    0%, 100% {
        transform: translate(-50%, -50%);
        opacity: 0.75;
    }
    50% {
        transform: translate(-50%, -50%) translateY(-8px);
        opacity: 1;
    }
}

@keyframes surveyCard3 {
    0%, 100% {
        transform: translate(-50%, -50%) rotate(8deg);
        opacity: 0.45;
    }

    50% {
        transform: translate(-50%, -50%) rotate(3deg) translateY(-5px);
        opacity: 0.75;
    }
}

/* =========================================================
   ENCUESTAS - TARJETAS (ESTILO ROJO CORPORATIVO)
   ========================================================= */

.encuesta-lista {
    width: 100%;
}

.encuesta-item {
    position: relative;
    overflow: hidden;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-gray-200);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

/* Línea lateral en rojo corporativo */
.encuesta-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--encuesta-color, var(--hrgdv-red-primary, #d60000));
}

/* Hover con sutil borde y sombra en tono rojo */
.encuesta-item:hover {
    transform: translateY(-3px);
    border-color: rgba(214, 0, 0, 0.3);
    box-shadow: 0 8px 25px rgba(214, 0, 0, 0.10);
}

/* =========================================================
   CABECERA
   ========================================================= */

.encuesta-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 7px;
}

.encuesta-titulo {
    color: var(--bs-gray-900);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
    transition: color .2s ease;
}

/* Hover del título en rojo corporativo */
.encuesta-titulo:hover {
    color: var(--hrgdv-red-primary, #d60000);
}

/* Ícono de estado */
.encuesta-estado-icono {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Fondo alternativo en tono rojo suave */
    background: var(--encuesta-bg, var(--hrgdv-red-soft, #fef2f2));
}

/* =========================================================
   DESCRIPCIÓN
   ========================================================= */

.encuesta-descripcion {
    color: var(--bs-gray-600);
    font-size: .95rem;
    line-height: 1.7;
    margin-bottom: 15px;
	text-align:justify;
}

/* =========================================================
   INFORMACIÓN
   ========================================================= */

.encuesta-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px 22px;
    padding-top: 15px;
    border-top: 1px dashed var(--bs-gray-200);
    margin-bottom: 12px;
}

.encuesta-info-item {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--bs-gray-500);
    font-size: .8rem;
    font-weight: 500;
}

.encuesta-info-item i {
    font-size: 1.1rem;
	color: var(--hrgdv-red-primary, #d60000);
}

/* =========================================================
   PIE
   ========================================================= */

.encuesta-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.encuesta-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
/* =========================================================
   BADGES (ESTILO HRGDV)
   ========================================================= */

.encuesta-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 7px;
    font-size: .75rem;
    font-weight: 600;
}

/* Badge de Votos adaptado al Rojo Corporativo */
.encuesta-badge-votos {
    background: var(--hrgdv-red-soft, #fef2f2);
    color: var(--hrgdv-red-primary, #d60000);
}

.encuesta-badge-cargo {
    background: #f8f5ff;
    color: #7239ea;
}

.encuesta-badge-ubicacion {
    background: #fff8dd;
    color: #ffc700;
}

/* =========================================================
   BOTÓN
   ========================================================= */

.encuesta-boton {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all .2s ease;
}

.encuesta-boton:hover {
    transform: translateX(3px);
}

/* =========================================================
   ESTADO
   ========================================================= */

.encuesta-estado {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 7px;
    font-size: .75rem;
    font-weight: 700;
}

.encuesta-estado.activo {
    background: #e8fff3;
    color: #50cd89;
}

.encuesta-estado.finalizado {
    background: #fff5f8;
    color: #f1416c;
}

/* Adaptado a Rojo Corporativo (Vencido) */
.encuesta-estado.vencido {
    background: var(--hrgdv-red-soft, #fef2f2);
    color: var(--hrgdv-red-primary, #d60000);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 767.98px) {

    .encuesta-item {
        padding: 18px;
    }

    .encuesta-header {
        gap: 12px;
    }

    .encuesta-titulo {
        font-size: 1.1rem;
    }

    .encuesta-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .encuesta-boton {
        justify-content: center;
        width: 100%;
    }
}

/* =========================================================
   ESTADO VACÍO - ENCUESTAS
   ========================================================= */

.encuestas-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 280px;
    padding: 45px 25px;
    background: var(--bs-body-bg);
    border: 1px dashed var(--bs-gray-300);
    border-radius: 12px;
    transition: all .25s ease;
}

.encuestas-empty:hover {
    border-color: rgba(214, 0, 0, 0.3);
}

/* Ícono de Estado Vacío adaptado a Rojo */

.encuestas-empty-icon {
    width: 75px;
    height: 75px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 20px;

    border-radius: 50%;

    background: var(--hrgdv-red-soft, #fef2f2);
}

.encuestas-empty-icon i {
    font-size: 42px;
    color: var(--hrgdv-red-primary, #d60000);
}

/* Título */

.encuestas-empty-title {
    color: var(--bs-gray-800);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

/* Descripción */

.encuestas-empty-text {
    color: var(--bs-gray-500);
    font-size: .9rem;
    line-height: 1.7;
}

/* =========================================================
   ENCABEZADO - ENCUESTAS
   ========================================================= */

.encuesta-toolbar {
    position: relative;
    overflow: hidden;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-gray-200);
    border-radius: 12px;
    padding: 22px 25px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .03);
}

/* Línea decorativa superior con gradiente rojo */

.encuesta-toolbar::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(
        90deg,
        var(--hrgdv-red-primary, #d60000),
        var(--hrgdv-red-dark, #a80000),
        var(--hrgdv-red-primary, #d60000)
    );
    background-size: 200% 100%;
    animation: encuestaGradient 5s linear infinite;
}

@keyframes encuestaGradient {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

/* Contenido */

.encuesta-toolbar-content {
    display: flex;
    align-items: center;
    gap: 18px;
}

/* =========================================================
   ÍCONO
   ========================================================= */

.encuesta-toolbar-icon {
    flex: 0 0 auto;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--hrgdv-red-soft, #fef2f2);
    color: var(--hrgdv-red-primary, #d60000);
    transition: transform .25s ease,
                box-shadow .25s ease;
}

.encuesta-toolbar-icon i {
    font-size: 30px;
    color: var(--hrgdv-red-primary, #d60000);
}

.encuesta-toolbar:hover .encuesta-toolbar-icon {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(214, 0, 0, .18);
}

/* =========================================================
   TÍTULO
   ========================================================= */

.encuesta-toolbar-title h1 {
    color: var(--bs-gray-900);
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 4px;
}

/* =========================================================
   CONTADOR
   ========================================================= */

.encuesta-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 25px;
    padding: 0 9px;
    border-radius: 6px;
    background: var(--hrgdv-red-soft, #fef2f2);
    color: var(--hrgdv-red-primary, #d60000);
    font-size: .75rem;
    font-weight: 700;
}


/* =========================================================
   DESCRIPCIÓN
   ========================================================= */

.encuesta-toolbar-description {
    color: var(--bs-gray-500);
    font-size: .85rem;
    font-weight: 500;
    line-height: 1.5;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 575.98px) {
    .encuesta-toolbar {
        padding: 18px;
    }
    .encuesta-toolbar-content {
        gap: 13px;
    }
    .encuesta-toolbar-icon {
        width: 45px;
        height: 45px;
    }
    .encuesta-toolbar-icon i {
        font-size: 24px;
    }
    .encuesta-toolbar-title h1 {
        font-size: 1.2rem;
    }
    .encuesta-toolbar-description {
        font-size: .78rem;
    }
}

/* =========================================================
   ASIDE - ENCUESTAS
   Metronic 8
   ========================================================= */

.encuesta-aside {
    background: var(--bs-body-bg);
}

/* =========================================================
   HEADER
   ========================================================= */

.encuesta-aside-header {
    display: flex;
    align-items: center;
    padding: 10px 10px 18px 12px;
    gap: 7px;
}

/* Ícono principal */
.encuesta-aside-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--hrgdv-red-soft, #fef2f2);
    color: var(--hrgdv-red-primary, #d60000);
    transition: all .25s ease;
}

.encuesta-aside-icon i {
    font-size: 24px;
    color: var(--hrgdv-red-primary, #d60000);
}


/* Hover del encabezado */

.encuesta-aside-header:hover .encuesta-aside-icon {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(214, 0, 0, .18);
}


/* =========================================================
   TEXTO HEADER
   ========================================================= */

.encuesta-aside-title {
    color: var(--bs-gray-800);
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.2;
}


.encuesta-aside-subtitle {
    color: var(--bs-gray-500);
    font-size: .72rem;
    font-weight: 500;
    margin-top: 4px;
}


/* =========================================================
   SEPARADOR
   ========================================================= */

.encuesta-aside-separator {
    height: 1px;
    margin: 0 5px 12px 10px;
    background: var(--bs-gray-200);
}


/* =========================================================
   ITEM
   ========================================================= */

.encuesta-menu-item {
    margin-bottom: 4px;
}


/* =========================================================
   LINK
   ========================================================= */

.encuesta-menu-link {
    position: relative;
    display: flex !important;
    align-items: center;
    min-height: 46px;
    padding: 8px 10px !important;
    border-radius: 9px !important;
    transition:
        background-color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}


/* Hover */
.encuesta-menu-link:hover {
    background: var(--hrgdv-red-soft, #fef2f2) !important;
    transform: translateX(2px);
}

/* =========================================================
   ÍCONO
   ========================================================= */

.encuesta-menu-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 9px;
    border-radius: 8px;
    background: var(--bs-gray-100);
    color: var(--bs-gray-500);
    transition:
        background-color .2s ease,
        color .2s ease,
        transform .2s ease;
}

.encuesta-menu-icon i {
    font-size: 18px;
}

/* Hover icon */
.encuesta-menu-link:hover .encuesta-menu-icon {
    background: rgba(214, 0, 0, 0.12);
    color: var(--hrgdv-red-primary, #d60000);
    transform: scale(1.05);
}

/* =========================================================
   TEXTO
   ========================================================= */

.encuesta-menu-title {
    flex: 1;
    color: var(--bs-gray-600);
    font-size: .82rem;
    font-weight: 600;
    line-height: 1.3;
    transition: color .2s ease;
}

.encuesta-menu-link:hover .encuesta-menu-title {
    color: var(--hrgdv-red-primary, #d60000);
}

/* 1. Limpiar el contenedor del item activo y eliminar bordes/pseudo-elementos extra */
.encuesta-menu-link.active {
    background-color: #d9214e !important; /* Tu rojo personalizado */
    color: var(--hrgdv-red-primary, #d60000) !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(217, 33, 78, 0.25); /* Sombra suave coherente */
    position: relative;
    overflow: hidden;
}

/* Remover pseudo-elementos residuales de Metronic (la barra lateral azul/roja) */
.encuesta-menu-link.active::before,
.encuesta-menu-link.active::after {
    display: none !important;
}

/* 2. Ajustar el texto en estado activo */
.encuesta-menu-link.active .encuesta-menu-title {
    color: var(--hrgdv-red-primary, #d60000) !important;
    font-weight: 700;
}

/* 3. Ajustar el contenedor del ÍCONO cuando está activo */
.encuesta-menu-link.active .encuesta-menu-icon {
    background-color: rgba(255, 255, 255, 0.2) !important; /* Fondo blanco translúcido */
}

.encuesta-menu-link.active .encuesta-menu-icon i,
.encuesta-menu-link.active .encuesta-menu-icon span {
    color: var(--hrgdv-red-primary, #d60000) !important; /* Ícono blanco */
}

/* 4. Ajustar el BADGE contador cuando está activo */
.encuesta-menu-link.active .encuesta-menu-badge {
    background-color: #ffffff !important;
    color: #d9214e !important; /* Texto rojo sobre fondo blanco */
    font-weight: 700;
}

/* =========================================================
   BADGE
   ========================================================= */
.encuesta-menu-badge {
    min-width: 27px;
    height: 24px;
    padding: 0 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: var(--hrgdv-red-soft, #fef2f2);
    color: var(--hrgdv-red-primary, #d60000);
    font-size: .7rem;
    font-weight: 700;
    transition:
        background-color .2s ease,
        color .2s ease;
}


.encuesta-menu-link:hover .encuesta-menu-badge {
    background: var(--hrgdv-red-primary, #d60000);
    color: #ffffff;
}


/* =========================================================
   ITEM ACTIVO
   ========================================================= */
.encuesta-menu-link.active {
    background: var(--hrgdv-red-soft, #fef2f2) !important;
    box-shadow: inset 3px 0 0 var(--hrgdv-red-primary, #d60000);
}

.encuesta-menu-link.active .encuesta-menu-icon {
    background: var(--hrgdv-red-primary, #d60000);
    color: #ffffff;
}

.encuesta-menu-link.active .encuesta-menu-title {
    color: var(--hrgdv-red-primary, #d60000);
    font-weight: 700;
}

.encuesta-menu-link.active .encuesta-menu-badge {
    background: var(--hrgdv-red-primary, #d60000);
    color: #ffffff;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 991.98px) {
    .encuesta-aside-header {
        padding-top: 5px;
    }
}

/* =========================================================
   SIDEBAR ENCUESTAS
   ========================================================= */

.encuesta-sidebar {
    --encuesta-sidebar-radius: 14px;
}


/* =========================================================
   BUSCADOR
   ========================================================= */

.encuesta-sidebar-search {
    padding: 20px;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-gray-200);
    border-radius: var(--encuesta-sidebar-radius);
    transition: border-color .25s ease, box-shadow .25s ease;
}

.encuesta-sidebar-search:hover {
    border-color: var(--bs-gray-300);
    box-shadow: 0 8px 25px rgba(0, 0, 0, .04);
}


/* Cabecera del buscador */

.encuesta-sidebar-search-title {
    display: flex;
    align-items: center;
    gap: 12px;
}


/* Ícono adaptado a Rojo */

.encuesta-sidebar-search-icon {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: var(--hrgdv-red-soft, #fef2f2);
    color: var(--hrgdv-red-primary, #d60000);

    flex-shrink: 0;
}


/* Títulos */

.encuesta-sidebar-section-title {
    color: var(--bs-gray-800);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.encuesta-sidebar-section-subtitle {
    color: var(--bs-gray-500);
    font-size: .75rem;
    font-weight: 500;
    margin-top: 2px;
}


/* =========================================================
   INPUT BUSCADOR
   ========================================================= */

.encuesta-sidebar-search form {
    position: relative;
}

.encuesta-search-input {
    height: 44px;

    padding-left: 42px;
    padding-right: 12px;

    background: var(--bs-gray-100);
    border: 1px solid transparent;

    color: var(--bs-gray-700);

    border-radius: 10px;

    font-size: .8rem;

    transition:
        background .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.encuesta-search-input::placeholder {
    color: var(--bs-gray-500);
}

/* Enfoque del buscador en Rojo Corporativo */

.encuesta-search-input:focus {
    background: var(--bs-body-bg);
    border-color: var(--hrgdv-red-primary, #d60000);
    box-shadow: 0 0 0 3px rgba(214, 0, 0, .15);
}

.encuesta-search-input-icon {
    position: absolute;

    left: 14px;
    top: 50%;

    transform: translateY(-50%);

    color: var(--bs-gray-500);

    z-index: 2;

    pointer-events: none;
}


/* =========================================================
   MÁS VISITADOS
   ========================================================= */

.encuesta-populares {
    background: var(--bs-body-bg);

    border: 1px solid var(--bs-gray-200);

    border-radius: var(--encuesta-sidebar-radius);

    overflow: hidden;

    transition:
        border-color .25s ease,
        box-shadow .25s ease;
}

.encuesta-populares:hover {
    border-color: var(--bs-gray-300);
    box-shadow: 0 8px 25px rgba(0, 0, 0, .04);
}


/* =========================================================
   CABECERA
   ========================================================= */

.encuesta-populares-header {
    display: flex;
    align-items: center;

    gap: 12px;

    padding: 20px;

    border-bottom: 1px dashed var(--bs-gray-200);
}


/* Ícono de sección adaptado a Rojo */

.encuesta-populares-icon {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: var(--hrgdv-red-soft, #fef2f2);
    color: var(--hrgdv-red-primary, #d60000);

    flex-shrink: 0;
}


/* =========================================================
   LISTA
   ========================================================= */

.encuesta-populares-list {
    padding: 8px;
}


/* =========================================================
   ITEM
   ========================================================= */

.encuesta-popular-item {
    position: relative;

    display: flex;
    align-items: center;

    gap: 12px;

    padding: 13px 12px;

    margin-bottom: 3px;

    border-radius: 10px;

    text-decoration: none;

    background: transparent;

    transition:
        background .2s ease,
        transform .2s ease;
}

.encuesta-popular-item:last-child {
    margin-bottom: 0;
}


.encuesta-popular-item:hover {
    background: var(--bs-gray-100);

    transform: translateX(3px);
}


/* =========================================================
   NÚMERO
   ========================================================= */

.encuesta-popular-number {
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 8px;

    background: var(--bs-gray-100);

    color: var(--bs-gray-500);

    font-size: .7rem;
    font-weight: 800;

    transition:
        background .2s ease,
        color .2s ease;
}


/* Cambio de número al pasar el cursor */

.encuesta-popular-item:hover .encuesta-popular-number {
    background: var(--hrgdv-red-soft, #fef2f2);
    color: var(--hrgdv-red-primary, #d60000);
}


/* =========================================================
   CONTENIDO
   ========================================================= */

.encuesta-popular-content {
    min-width: 0;
    flex: 1;
}


.encuesta-popular-title {
    color: var(--bs-gray-700);

    font-size: .78rem;
    font-weight: 700;

    line-height: 1.45;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;

    transition: color .2s ease;
}


/* Hover del título en Rojo Corporativo */

.encuesta-popular-item:hover .encuesta-popular-title {
    color: var(--hrgdv-red-primary, #d60000);
}


/* =========================================================
   ENLACE
   ========================================================= */

.encuesta-popular-link {
    display: flex;
    align-items: center;
    gap: 5px;

    margin-top: 5px;

    color: var(--bs-gray-500);

    font-size: .68rem;
    font-weight: 600;

    transition: color .2s ease;
}


.encuesta-popular-item:hover .encuesta-popular-link {
    color: var(--hrgdv-red-primary, #d60000);
}


/* =========================================================
   FLECHA
   ========================================================= */

.encuesta-popular-arrow {
    width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 7px;

    color: var(--bs-gray-400);

    transition:
        background .2s ease,
        color .2s ease,
        transform .2s ease;
}


.encuesta-popular-item:hover .encuesta-popular-arrow {
    background: var(--hrgdv-red-soft, #fef2f2);
    color: var(--hrgdv-red-primary, #d60000);

    transform: translateX(2px);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 991.98px) {

    .encuesta-sidebar {
        padding: 20px !important;
    }

    .encuesta-sidebar-search {
        margin-bottom: 20px;
    }

}


@media (max-width: 575.98px) {

    .encuesta-sidebar {
        padding: 15px !important;
    }

    .encuesta-sidebar-search,
    .encuesta-populares {
        border-radius: 12px;
    }

}

/* =========================================================
   ENCUESTA - DETALLE
========================================================= */

.encuesta-detalle {
    width: 100%;
}


/* =========================================================
   HEADER
========================================================= */

.encuesta-detalle-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 24px;
    padding-bottom: 20px;

    border-bottom: 1px dashed var(--bs-gray-300);
}

.encuesta-detalle-header-main {
    display: flex;
    align-items: center;

    min-width: 0;
}

.encuesta-detalle-icono {
    width: 46px;
    height: 46px;
    min-width: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-right: 13px;

    border-radius: 10px;

    background: var(--hrgdv-red-soft, #fef2f2);
    color: var(--hrgdv-red-primary, #d60000);
}

.encuesta-detalle-icono i {
    font-size: 24px;
    color: var(--hrgdv-red-primary, #d60000);
}

.encuesta-detalle-titulo-wrap {
    min-width: 0;
}

.encuesta-detalle-titulo {
    margin: 0;

    color: var(--bs-gray-900);

    font-size: 1.45rem;
    font-weight: 700;

    line-height: 1.35;
}

.encuesta-detalle-subtitulo {
    margin-top: 3px;

    color: var(--bs-gray-500);

    font-size: .7rem;
}

.encuesta-detalle-estado {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    flex: 0 0 auto;

    padding: 7px 11px;

    border-radius: 7px;

    font-size: .7rem;
    font-weight: 700;
}

.encuesta-estado-punto {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: currentColor;
}

.encuesta-estado-activo {
    background: var(--bs-success-light);
    color: var(--bs-success);
}

.encuesta-estado-finalizado {
    background: var(--bs-danger-light);
    color: var(--bs-danger);
}

/* Estado vencido en gris cálido/neutro para no confundir con activo o finalizado */
.encuesta-estado-vencido {
    background: var(--bs-gray-200);
    color: var(--bs-gray-600);
}


/* =========================================================
   DESCRIPTION
========================================================= */

.encuesta-detalle-descripcion {
    display: flex;
    align-items: flex-start;

    gap: 12px;

    margin-bottom: 28px;
    padding: 15px 17px;

    border: 1px solid var(--bs-gray-200);
    border-radius: 10px;

    background: var(--bs-gray-100);
}

.encuesta-descripcion-icono {
    width: 34px;
    height: 34px;
    min-width: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: var(--bs-body-bg);
    color: var(--hrgdv-red-primary, #d60000);
}

.encuesta-descripcion-texto {
    color: var(--bs-gray-700);

    font-size: .8rem;
    line-height: 1.7;
}


/* =========================================================
   SECTION
========================================================= */

.encuesta-seccion-header {
    display: flex;
    align-items: center;

    gap: 11px;

    margin-bottom: 14px;
    padding: 10px 24px;
}

.encuesta-resultados-card .encuesta-seccion-header {
    width: 100%;
    padding: 4px 24px 16px;
    box-sizing: border-box;
}

.encuesta-seccion-icono {
    width: 40px;
    height: 40px;
    min-width: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: var(--hrgdv-red-soft, #fef2f2);
    color: var(--hrgdv-red-primary, #d60000);
}

.encuesta-seccion-icono i {
    color: var(--hrgdv-red-primary, #d60000);
}

.encuesta-seccion-titulo {
    margin: 0;

    color: var(--bs-gray-800);

    font-size: .98rem;
    font-weight: 700;
}

.encuesta-seccion-descripcion {
    margin-top: 3px;

    color: var(--bs-gray-500);

    font-size: .7rem;
}


/* =========================================================
   CANDIDATES
========================================================= */

.encuesta-candidatos {
    display: flex;

    flex-direction: column;

    gap: 8px;
}

.encuesta-candidato {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    min-height: 78px;

    padding: 10px 14px;

    border: 1px solid var(--bs-gray-200);
    border-radius: 10px;

    background: var(--bs-body-bg);

    transition:
        background-color .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.encuesta-candidato:hover {
    background: var(--bs-gray-100);

    border-color: rgba(214, 0, 0, 0.2);

    box-shadow: 0 4px 12px rgba(214, 0, 0, .06);
}

.encuesta-candidato-info {
    display: flex;

    align-items: center;

    flex: 1;

    min-width: 0;
}


/* =========================================================
   CANDIDATE IMAGES
========================================================= */

.encuesta-candidato-imagenes {
    position: relative;

    width: 58px;
    height: 58px;

    min-width: 58px;

    margin-right: 15px;
}

.encuesta-candidato-foto {
    width: 58px;
    height: 58px;

    overflow: hidden;

    border: 1px solid var(--bs-gray-200);

    border-radius: 9px;

    background: var(--bs-gray-100);
}

.encuesta-candidato-foto img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}


/* LOGO DEL PARTIDO */

.encuesta-candidato-partido-logo {
    position: absolute;

    right: -7px;
    bottom: -5px;

    width: 28px;
    height: 28px;

    padding: 2px;

    overflow: hidden;

    border: 2px solid var(--bs-body-bg);

    border-radius: 50%;

    background: var(--bs-body-bg);

    box-shadow: 0 2px 7px rgba(0, 0, 0, .14);
}

.encuesta-candidato-partido-logo img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 50%;
}


/* =========================================================
   CANDIDATE DATA
========================================================= */

.encuesta-candidato-datos {
    min-width: 0;
}

.encuesta-candidato-nombre {
    overflow: hidden;

    color: var(--bs-gray-800);

    font-size: .82rem;
    font-weight: 700;

    line-height: 1.4;

    text-overflow: ellipsis;
}

.encuesta-candidato-partido {
    margin-top: 3px;

    overflow: hidden;

    color: var(--bs-gray-500);

    font-size: .7rem;
    font-weight: 500;

    line-height: 1.4;

    text-overflow: ellipsis;
}


/* =========================================================
   VOTE BUTTON
========================================================= */

.encuesta-candidato-accion {
    flex: 0 0 auto;

    margin-left: 10px;
}

.encuesta-btn-votar {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 5px;

    min-width: 90px;
    height: 36px;

    padding: 0 13px;

    border-radius: 7px;

    font-size: .7rem;
    font-weight: 700;
}


/* =========================================================
   SPECIAL OPTIONS
========================================================= */

.encuesta-opcion-ninguno {
    background: var(--hrgdv-red-soft, #fef2f2);

    border-color: rgba(214, 0, 0, 0.2);
}

.encuesta-opcion-ninguno:hover {
    background: var(--hrgdv-red-soft, #fef2f2);

    border-color: var(--hrgdv-red-primary, #d60000);
}

.encuesta-opcion-noprecisa {
    background: var(--bs-gray-100);

    border-color: var(--bs-gray-300);
}

.encuesta-opcion-noprecisa:hover {
    background: var(--bs-gray-200);

    border-color: var(--bs-gray-400);
}

.encuesta-opcion-icono {
    width: 42px;
    height: 42px;

    min-width: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-right: 15px;

    border-radius: 9px;

    background: var(--bs-body-bg);

    color: var(--bs-gray-500);
}


/* =========================================================
   CAPTCHA
========================================================= */

.encuesta-captcha {
    display: flex;

    justify-content: center;

    margin-top: 22px;
    padding-top: 20px;

    border-top: 1px dashed var(--bs-gray-300);
}

/* =========================================================
   RESULTS
========================================================= */
/* ============================================================
   HRGDV - TABLA DE RESULTADOS
   ============================================================ */

.encuesta-resultados {
    margin-top: 5px;
}

.encuesta-resultados-card {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: hidden;

    border: 1px solid var(--bs-gray-200);
    border-radius: 10px;

    background: var(--bs-body-bg);
}


/* ============================================================
   CONTENEDOR DE LA TABLA
   ============================================================ */

.encuesta-resultados-card .table-responsive {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;

    overflow-x: auto;
}


/* ============================================================
   TABLA - 100% DEL CONTENEDOR
   ============================================================ */

.encuesta-tabla-resultados {
    width: 100% !important;
    max-width: 100% !important;

    min-width: 100%;

    margin: 0 !important;

    border-collapse: collapse;
    border-spacing: 0;
}


/* ============================================================
   ENCABEZADO
   ============================================================ */

.encuesta-tabla-resultados thead th {
    padding: 14px 12px !important;

    font-size: 12px;
    font-weight: 800 !important;

    text-transform: uppercase;
    letter-spacing: .5px;

    color: #181c32 !important;

    background-color: var(--bs-gray-100, #f9f9f9);

    border: 0 !important;
    border-bottom: 2px solid var(--bs-gray-300, #e4e6ef) !important;

    white-space: nowrap;
}


/* ============================================================
   ANCHO DE COLUMNAS
   ============================================================ */

.encuesta-tabla-resultados th:first-child,
.encuesta-tabla-resultados td:first-child {
    width: auto;
}

.encuesta-tabla-resultados th:nth-child(2),
.encuesta-tabla-resultados td:nth-child(2) {
    width: 110px;
    min-width: 110px;
}

.encuesta-tabla-resultados th:nth-child(3),
.encuesta-tabla-resultados td:nth-child(3) {
    width: 100px;
    min-width: 100px;
}


/* ============================================================
   CELDAS
   ============================================================ */

.encuesta-tabla-resultados tbody td {
    padding: 14px 12px;

    vertical-align: middle;

    border: 0 !important;
}

.encuesta-tabla-resultados tbody tr + tr td {
    border-top: 1px solid var(--bs-border-color-translucent) !important;
}


/* ============================================================
   RESULTADO
   ============================================================ */

.encuesta-resultado,
.encuesta-resultado-especial {
    display: flex;
    align-items: center;

    gap: 14px;

    width: 100%;
}

.encuesta-resultado-imagenes {
    display: flex;
    align-items: center;

    gap: 6px;

    flex-shrink: 0;
}

.card.card-flush {
        background-color: #ffffff;
        border: 1px solid #eff2f5;
        border-radius: 0.95rem;
        box-shadow: 0px 0px 20px 0px rgba(76, 87, 125, 0.02);
    }
    .card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1.5rem 2rem 0.5rem 2rem;
        border-bottom: none;
    }
    .badge-light-primary {
        background-color: #f1faff;
        color: #009ef7;
        font-family: inherit;
        border-radius: 6px;
}
    /* Mejoras estéticas para los tooltips y fuentes generadas por CanvasJS */
.canvasjs-chart-canvas {
        border-radius: 0.5rem;
}
/* ============================================================
   INFORMACIÓN DEL CANDIDATO
   ============================================================ */

.encuesta-resultado {
    width: 100%;
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 10px;
}

.encuesta-resultado-imagenes {
    position: relative;

    width: 46px;
    height: 46px;

    min-width: 46px;
    flex: 0 0 46px;
}

.encuesta-resultado-foto {
    width: 46px;
    height: 46px;

    overflow: hidden;
    border-radius: 50%;

    background: var(--bs-gray-100);
}

.encuesta-resultado-foto img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.encuesta-resultado-logo {
    position: absolute;

    right: -4px;
    bottom: -3px;

    width: 20px;
    height: 20px;

    padding: 2px;

    border-radius: 50%;

    background: var(--bs-body-bg);

    border: 1px solid var(--bs-border-color);

    overflow: hidden;
}

.encuesta-resultado-logo img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}

/* Contenedor del nombre */
.encuesta-resultado > div:last-child {
    min-width: 0;
    max-width: 100%;
}

/* Nombre */
.encuesta-resultado-nombre {
    max-width: 100%;

    font-size: 14px;
    font-weight: 600;

    color: var(--bs-gray-800);

    line-height: 1.3;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Partido */
.encuesta-resultado-partido {
    max-width: 100%;

    margin-top: 3px;

    font-size: 12px;

    color: var(--bs-gray-600);

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================================================
   TOTAL
   ============================================================ */

.encuesta-resultado-total {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 48px;

    padding: 5px 7px;

    border-radius: 6px;

    font-size: 13px;
    font-weight: 600;

    color: var(--bs-gray-700);
    background-color: var(--bs-gray-100);

    white-space: nowrap;
}

/* ============================================================
   PORCENTAJE (Rojo institucional)
   ============================================================ */

.encuesta-resultado-porcentaje {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 52px;

    padding: 5px 7px;

    border-radius: 6px;

    font-size: 13px;
    font-weight: 700;

    color: var(--hrgdv-red-primary, #d60000);
    background-color: var(--hrgdv-red-soft, #fef2f2);

    white-space: nowrap;
}

/* ============================================================
   OPCIONES ESPECIALES
   ============================================================ */

.encuesta-resultado-especial {
    width: 100%;
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 10px;
}

.encuesta-resultado-especial-icono {
    width: 42px;
    height: 42px;

    min-width: 42px;
    flex: 0 0 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: var(--bs-gray-600);
    background-color: var(--bs-gray-100);
}

/* ============================================================
   MÓVIL
   ============================================================ */

@media (max-width: 767.98px) {

    .encuesta-resultados-card .encuesta-seccion-header {
        padding: 4px 14px 14px;
    }

    .encuesta-resultados-card .table-responsive {
        overflow-x: hidden;
    }

    .encuesta-tabla-resultados {
        width: calc(100% - 20px) !important;
        max-width: calc(100% - 20px);

        margin: 0 10px !important;
    }

    .encuesta-tabla-resultados thead th {
        padding: 9px 5px;
        font-size: 11px;
    }

    .encuesta-tabla-resultados tbody td {
        padding: 12px 5px;
    }

    .encuesta-tabla-resultados th:nth-child(2),
    .encuesta-tabla-resultados td:nth-child(2) {
        width: 65px;
    }

    .encuesta-tabla-resultados th:nth-child(3),
    .encuesta-tabla-resultados td:nth-child(3) {
        width: 65px;
    }

    .encuesta-resultado {
        gap: 8px;
    }

    .encuesta-resultado-imagenes {
        width: 38px;
        height: 38px;

        min-width: 38px;
        flex-basis: 38px;
    }

    .encuesta-resultado-foto {
        width: 38px;
        height: 38px;
    }

    .encuesta-resultado-logo {
        width: 17px;
        height: 17px;

        right: -3px;
        bottom: -2px;
    }

    .encuesta-resultado-nombre {
        font-size: 12px;
    }

    .encuesta-resultado-partido {
        font-size: 10px;
    }

    .encuesta-resultado-total,
    .encuesta-resultado-porcentaje {
        min-width: auto;
        padding: 4px 5px;
        font-size: 11px;
    }

    .encuesta-resultado-especial {
        gap: 8px;
    }

    .encuesta-resultado-especial-icono {
        width: 36px;
        height: 36px;

        min-width: 36px;
        flex-basis: 36px;
    }
}

/* =========================================================
   CHART
========================================================= */

.encuesta-grafico {
    margin-top: 20px;
    padding: 18px;
    border: 1px solid var(--bs-gray-200);
    border-radius: 10px;
    background: var(--bs-body-bg);
}

.encuesta-chart {
    width: 100%;
    min-height: 380px;
}

/* Optimización táctil para pantallas pequeñas */
@media (max-width: 576px) {
    .encuesta-grafico {
        padding: 10px;
    }

    .encuesta-chart {
        min-height: 300px; /* Reducimos altura para evitar scroll excesivo */
    }
}
/* =========================================================
   ENCUESTA - HEADER
========================================================= */

.encuesta-detalle-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.encuesta-detalle-header-main {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.encuesta-detalle-icono {
    width: 52px;
    height: 52px;
    min-width: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background-color: var(--hrgdv-red-soft, #fef2f2);
    color: var(--hrgdv-red-primary, #d60000);
}

.encuesta-detalle-icono i {
    font-size: 27px;
}

.encuesta-detalle-titulo-wrap {
    min-width: 0;
}

.encuesta-detalle-etiqueta {
    margin-bottom: 3px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--bs-gray-500);
}

.encuesta-detalle-titulo {
    margin: 0;
    font-size: 25px;
    line-height: 1.25;
    font-weight: 700;
    color: var(--bs-gray-900);
}

.encuesta-detalle-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.encuesta-btn-header {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.encuesta-detalle-estado {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 8px 13px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.encuesta-estado-punto {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.encuesta-estado-activo {
    color: var(--bs-success);
    background-color: var(--bs-success-light);
}

.encuesta-estado-finalizado {
    color: var(--bs-danger);
    background-color: var(--bs-danger-light);
}

/* Ajustado a un gris neutro accesible */
.encuesta-estado-vencido {
    color: var(--bs-gray-600);
    background-color: var(--bs-gray-200);
}

/* ============================================================
   HRGDV - MODAL DE CONFIRMACIÓN DE VOTO
   ============================================================ */

.encuesta-modal-voto .modal-dialog {
    max-width: 500px;
    padding: 12px;
}

.encuesta-modal-voto .modal-content {
    border: 0;
    border-radius: 18px;
    overflow: hidden;
    background: var(--bs-body-bg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .18);
}


/* ============================================================
   HEADER
   ============================================================ */

.encuesta-modal-voto .modal-header {
    padding: 16px 20px 14px;
    border-bottom: 1px solid var(--bs-border-color);
}

.encuesta-modal-voto .modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--bs-body-color);
}

.encuesta-modal-voto .modal-header .btn {
    width: 34px;
    height: 34px;
    border-radius: 9px;
}


/* ============================================================
   BODY
   ============================================================ */

.encuesta-modal-voto .modal-body {
    padding: 18px 20px 20px;
}

.encuesta-modal-voto-intro {
    margin-bottom: 5px;
    color: var(--bs-secondary-color);
    font-size: 12px;
    line-height: 1.1;
	padding-left:12px;
}


/* ============================================================
   OPCIÓN SELECCIONADA
   ============================================================ */

.encuesta-modal-candidato {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;

    padding: 14px;

    border: 1px solid var(--bs-border-color);
    border-radius: 14px;

   

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.encuesta-modal-candidato:hover {
    border-color: rgba(214, 0, 0, .25);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
}


/* ============================================================
   IMÁGENES
   ============================================================ */

.encuesta-modal-imagenes {
    position: relative;
    width: 70px;
    height: 70px;
    flex: 0 0 70px;
}

.encuesta-modal-foto {
    width: 70px;
    height: 70px;

    overflow: hidden;

    border-radius: 13px;

    background: var(--bs-secondary-bg);
    border: 1px solid var(--bs-border-color);
}

.encuesta-modal-foto img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* ============================================================
   LOGO
   ============================================================ */

.encuesta-modal-logo {
    position: absolute;

    right: -6px;
    bottom: -6px;

    width: 32px;
    height: 32px;

    padding: 3px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: var(--bs-body-bg);
    border: 2px solid var(--bs-body-bg);

    box-shadow: 0 3px 10px rgba(0, 0, 0, .16);
}

.encuesta-modal-logo img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;

    border-radius: 5px;
}


/* ============================================================
   DATOS DEL CANDIDATO
   ============================================================ */

.encuesta-modal-datos {
    min-width: 0;
    flex: 1;
}

.encuesta-modal-nombre {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;

    color: var(--bs-body-color);

    word-break: break-word;
}

.encuesta-modal-partido {
    margin-top: 4px;

    font-size: 12px;
    line-height: 1.4;

    color: var(--bs-secondary-color);

    word-break: break-word;
}


/* ============================================================
   OPCIONES ESPECIALES
   ============================================================ */

.encuesta-modal-especial {
    display: flex;
    align-items: center;
    gap: 14px;

    padding: 14px;

    border: 1px solid var(--bs-border-color);
    border-radius: 14px;

    background: var(--bs-tertiary-bg);
}

.encuesta-modal-especial-icono {
    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 46px;

    border-radius: 12px;

    background: var(--hrgdv-red-soft, #fef2f2);
    color: var(--hrgdv-red-primary, #d60000);
}


/* ============================================================
   AVISO
   ============================================================ */

.encuesta-modal-aviso {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--bs-primary-bg-subtle);
    border: 1px solid var(--bs-primary-border-subtle);
    font-size: 12px;
    line-height: 1.4;
}

.encuesta-modal-aviso i {
    flex: 0 0 auto;
}


/* ============================================================
   CAPTCHA / TURNSTILE
   ============================================================ */

.encuesta-modal-captcha {
    margin-top: 16px;
    padding: 14px;

    text-align: center;

    border: 1px solid var(--bs-border-color);
    border-radius: 13px;

    background: var(--bs-body-bg);
}

.encuesta-modal-captcha-titulo {
    font-size: 13px;
    font-weight: 700;

    color: var(--bs-body-color);
}

.encuesta-modal-captcha-descripcion {
    margin-top: 3px;

    font-size: 11px;

    color: var(--bs-secondary-color);
}

.encuesta-turnstile {
    width: 100%;

    display: flex;
    justify-content: center;
    align-items: center;

    margin-top: 10px;

    min-height: 65px;
}


/* ============================================================
   FOOTER
   ============================================================ */

.encuesta-modal-voto .modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;

    padding: 12px 20px 16px;

    border-top: 1px solid var(--bs-border-color);
}

.encuesta-modal-voto .modal-footer .btn {
    min-height: 38px;
    padding-left: 16px;
    padding-right: 16px;

    border-radius: 9px;

    font-size: 13px;
    font-weight: 600;
}


/* ============================================================
   BOTÓN CONTINUAR
   ============================================================ */

#btnContinuarVoto {
    min-width: 118px;

    transition:
        opacity .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

#btnContinuarVoto:not(:disabled):hover {
    transform: translateY(-1px);

    box-shadow: 0 5px 14px rgba(0, 0, 0, .12);
}

#btnContinuarVoto:disabled {
    cursor: not-allowed;
    opacity: .55;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 575.98px) {

    .encuesta-modal-voto .modal-dialog {
        margin: 10px;
        padding: 0;
    }

    .encuesta-modal-voto .modal-header {
        padding: 14px 16px 12px;
    }

    .encuesta-modal-voto .modal-body {
        padding: 16px;
    }

    .encuesta-modal-voto .modal-footer {
        padding: 10px 16px 14px;
    }

    .encuesta-modal-candidato,
    .encuesta-modal-especial {
        padding: 12px;
    }

    .encuesta-modal-imagenes {
        width: 62px;
        height: 62px;
        flex-basis: 62px;
    }

    .encuesta-modal-foto {
        width: 62px;
        height: 62px;
    }

    .encuesta-modal-logo {
        width: 29px;
        height: 29px;
    }

    .encuesta-modal-nombre {
        font-size: 15px;
    }

    .encuesta-modal-partido {
        font-size: 11px;
    }

    .encuesta-modal-aviso {
        font-size: 11px;
    }

    .encuesta-modal-voto .modal-footer .btn {
        flex: 1;
    }
}

/* =========================================================
   FOOTER DE LA ENCUESTA
   ========================================================= */

.encuesta-detalle-footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 0 4px;
    border-top: 1px solid var(--bs-border-color);
}

.encuesta-footer-grupo {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    gap: 20px;
}

.encuesta-meta-item {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 10px;
    color: var(--bs-gray-700);
}

.encuesta-meta-item > i {
    flex: 0 0 auto;
    color: var(--hrgdv-red-primary, #d60000);
}

/* =========================================================
   DISEÑO MÓVIL COMPACTO A 2 COLUMNAS
   ========================================================= */
@media (max-width: 576px) {
    /* Convertimos el contenedor principal en una sola grilla de 2 columnas */
    .encuesta-detalle-footer {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 6px 12px; /* Espaciado vertical y horizontal reducido */
        padding-top: 10px;
    }

    /* Anulamos la estructura separada de los grupos internos en móvil */
    .encuesta-footer-grupo {
        display: contents; /* Hace que los elementos hijos se alineen directamente en la grilla principal */
    }

    .encuesta-meta-item {
        font-size: 10px; /* Tamaño de fuente más discreto */
        font-weight: 500;
        gap: 5px;
        line-height: 1.2;
    }

    /* Ajuste de tamaño proporcional para los íconos */
    .encuesta-meta-item > i {
        font-size: 13px !important;
    }
}

.encuesta-compartir {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px solid var(--bs-border-color);
}

.encuesta-compartir-titulo {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 500;
    color: var(--bs-gray-600);
}

.encuesta-compartir-titulo .bi {
    font-size: 16px;
    color: var(--hrgdv-red-primary, #d60000);
}

.encuesta-compartir-botones {
    display: flex;
    align-items: center;
    gap: 8px;
}

.encuesta-btn-compartir {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    background-color: var(--bs-body-bg);
    color: var(--bs-gray-600);
    cursor: pointer;
    transition: all .15s ease;
}

.encuesta-btn-compartir:hover {
    transform: translateY(-2px);
}

.encuesta-btn-compartir .bi {
    font-size: 17px;
}

.encuesta-btn-whatsapp:hover { color: #25D366; border-color: #25D366; }
.encuesta-btn-facebook:hover { color: #1877F2; border-color: #1877F2; }
.encuesta-btn-x:hover { color: var(--bs-gray-900); border-color: var(--bs-gray-900); }
.encuesta-btn-telegram:hover { color: #229ED9; border-color: #229ED9; }

.encuesta-icon-x {
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
}

.encuesta-btn-copiar:hover {
    color: var(--hrgdv-red-primary, #d60000);
    border-color: var(--hrgdv-red-primary, #d60000);
}

[data-bs-theme="dark"] .encuesta-btn-x:hover {
    color: var(--bs-gray-100);
    border-color: var(--bs-gray-100);
}

/* Configuración para vista móvil */
@media (max-width: 576px) {
    .encuesta-compartir {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 10px;
    }

    .encuesta-compartir-titulo {
        justify-content: center;
    }

    .encuesta-compartir-botones {
        justify-content: center;
        width: 100%;
    }
}

/* Estilos para el botón de volver en móvil */
@media (max-width: 767.98px) {
    .encuesta-volver-container {
        width: 100%;
        margin-top: 16px;
        display: flex;
        justify-content: center;
    }

    .btn-volver-mobile {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        max-width: 280px;
        padding: 10px 20px;
        background-color: var(--bs-body-bg);
        border: 1px solid var(--bs-border-color);
        border-radius: 50px; /* Estilo píldora moderno */
        color: var(--bs-gray-700);
        font-size: 14px;
        font-weight: 500;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .btn-volver-mobile .bi {
        font-size: 16px;
        color: var(--hrgdv-red-primary, #d60000);
    }

    .btn-volver-mobile:active {
        transform: scale(0.97);
        background-color: var(--bs-gray-100);
    }
}

/* Adaptación para modo oscuro */
[data-bs-theme="dark"] .btn-volver-mobile {
    color: var(--bs-gray-200);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] .btn-volver-mobile:active {
    background-color: var(--bs-gray-800);
}
/* ============================================================
   RESPONSIVE FOOTER Y HEADER
   ============================================================ */

@media (max-width: 767.98px) {

    .encuesta-detalle-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .encuesta-detalle-header-main {
        width: 100%;
    }

    .encuesta-detalle-header-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .encuesta-btn-header {
        flex: 1 1 auto;
        justify-content: center;
    }

    .encuesta-detalle-titulo {
        font-size: 21px;
    }

    .encuesta-detalle-icono {
        width: 46px;
        height: 46px;
        min-width: 46px;
    }

    .encuesta-footer-grupo {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .encuesta-compartir {
        flex-direction: column;
        align-items: flex-start;
    }

    .encuesta-compartir-botones {
        width: 100%;
    }
}