:root {
    --font-family-sans-serif: "Open Sans", -apple-system, BlinkMacSystemFont,
        "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif,
        "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
        "Noto Color Emoji";
}

*,
*::before,
*::after {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

html {
    font-family: sans-serif;
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}


nav {
    display: block;
}

body {
    margin: 0;
    font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji",
        "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #515151;
    text-align: left;
    background-color: #e9edf4;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

a {
    color: #125388;
    text-decoration: none;
    background-color: transparent;
}

a:hover {
    color: #125388;
    text-decoration: underline;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    font-family: "Nunito", sans-serif;
    margin-bottom: 0.5rem;
    font-weight: 500;
    line-height: 1.2;
}

h1,
.h1 {
    font-size: 2.5rem;
    font-weight: normal;
}

.card-contenido {
    position: relative;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 0;
}

.card-body-contenido {
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 auto;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    padding: 1.25rem;
}

.card-header-contenido {
    padding: 0.75rem 1.25rem;
    margin-bottom: 0;
    background-color: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    text-align: center;
}

main {
    min-height: 100vh;
}

.dashboard {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    min-height: 100vh;
}

.dashboard-app {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-flex: 2;
    -webkit-flex-grow: 2;
    -ms-flex-positive: 2;
    flex-grow: 2;
    margin-top: 84px;
}

.dashboard-content {
    -webkit-box-flex: 2;
    -webkit-flex-grow: 2;
    -ms-flex-positive: 2;
    flex-grow: 2;
    padding: 25px;
}

.dashboard-nav {
    min-width: 238px;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    overflow: visible;
    background-color: #125388;
}

.dashboard-compact .dashboard-nav {
    display: none;
}

.dashboard-nav header {
    min-height: 84px;
    padding: 8px 27px;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
}

.dashboard-nav header .menu-toggle {
    display: none;
    margin-right: auto;
}

.dashboard-nav a {
    color: #515151;
}

.dashboard-nav a:hover {
    text-decoration: none;
}

.dashboard-nav {
    background: linear-gradient(135deg, #0a2660, #125388);
}

.dashboard-nav a {
    color: #fff;
}

.brand-logo {
    font-family: "Nunito", sans-serif;
    font-weight: bold;
    font-size: 20px;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    color: #515151;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
}

.brand-logo:focus,
.brand-logo:active,
.brand-logo:hover {
    color: #dbdbdb;
    text-decoration: none;
}

.brand-logo i {
    color: #d2d1d1;
    font-size: 27px;
    margin-right: 10px;
}

.dashboard-nav-list {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
}

.dashboard-nav-item {
    min-height: 56px;
    padding: 8px 20px 8px 70px;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    letter-spacing: 0.02em;
    transition: ease-out 0.5s;
}

.dashboard-nav-item i {
    width: 36px;
    font-size: 19px;
    margin-left: -40px;
}

.dashboard-nav-item:hover {
    background: #6490b0;
}

.active {
    background: rgba(0, 0, 0, 0.1);
}

.dashboard-nav-dropdown {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
}

.dashboard-nav-dropdown.show {
    background: rgba(255, 255, 255, 0.04);
}

.dashboard-nav-dropdown.show > .dashboard-nav-dropdown-toggle {
    font-weight: bold;
}

.dashboard-nav-dropdown.show > .dashboard-nav-dropdown-toggle:after {
    -webkit-transform: none;
    -o-transform: none;
    transform: none;
}

.dashboard-nav-dropdown.show > .dashboard-nav-dropdown-menu {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
}

.dashboard-nav-dropdown-toggle:after {
    content: "";
    margin-left: auto;
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid rgba(81, 81, 81, 0.8);
    -webkit-transform: rotate(90deg);
    -o-transform: rotate(90deg);
    transform: rotate(90deg);
}

.dashboard-nav .dashboard-nav-dropdown-toggle:after {
    border-top-color: rgba(255, 255, 255, 0.72);
}

.dashboard-nav-dropdown-menu {
    display: none;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
}

.dashboard-nav-dropdown-item {
    min-height: 40px;
    padding: 8px 20px 8px 70px;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    transition: ease-out 0.5s;
}

.dashboard-nav-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.menu-toggle {
    position: relative;
    width: 42px;
    height: 42px;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    color: #150071;
}

.menu-toggle:hover,
.menu-toggle:active,
.menu-toggle:focus {
    text-decoration: none;
    color: #3c1dc5;
}

.menu-toggle i {
    font-size: 20px;
}

.dashboard-toolbar {
    min-height: 60px;
    background-color: #f7f7f7;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 5px 20px;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
}

.nav-item-divider {
    height: 1px;
    margin: 1rem 0;
    overflow: hidden;
    background-color: rgba(236, 238, 239, 0.3);
}

@media (min-width: 992px) {
    .dashboard-app {
        margin-left: 238px;
    }

    .dashboard-compact .dashboard-app {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .dashboard-content {
        padding: 15px 0px;
    }
}

@media (max-width: 992px) {
    .dashboard-nav {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        bottom: 0;
        z-index: 1070;
    }

    .dashboard-nav.mobile-show {
        display: block;
    }
}

@media (max-width: 992px) {
    .dashboard-nav header .menu-toggle {
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
    }
}

@media (min-width: 992px) {
    .dashboard-toolbar {
        left: 238px;
    }

    .dashboard-compact .dashboard-toolbar {
        left: 0;
    }
}
.colorize {
    width: 90px;
    padding: 15px;
    
}

/* --------------------------------- */
/* ------------------------------------------------- */
/* --------------------------------- */

/* Tarjeta */
.card {
    max-width: 450px; /* límite en desktop */
    background-color: rgba(5, 14, 26, 0.922) !important;
    border-radius: 10px;
}

/* LOGO */
.logo-form {
    max-width: 40%; /* que nunca sobresalga del contenedor */
    height: auto; /* que mantenga proporción */
}

@media (max-width: 576px) {
    .card {
        max-width: 70%; /* ocupa casi todo el ancho en móviles */
    }

    .logo-form {
        max-width: 35%; /* logo más pequeño */
    }
}

/* Header */
.card-header h3 {
    color: white;
    margin: 0;
}

/* Input group */
.input-group-text {
    width: 50px;
    background-color: #266ea5;
    color: rgb(255, 255, 255);
    border: 0 !important;
}

/* Focus limpio */
input:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Botón */
.login_btn {
    
    background-color: #266ea5;
    color: rgb(255, 255, 255);
    width: 100%;
    border: none;
    transition: background-color 0.3s;
}
.login_btn:hover {
    color: white;
    background: #6490b0;
}

/* Enlaces */
.enlace {
    color: rgb(2, 100, 198);
    margin-left: 4px;
}

.enlace:hover {
    color: rgb(118, 181, 230);
    margin-left: 4px;
}

/* --------------------------- */
/* ---------- FORM REVISION ----------*/
/* --------------------------- */

/* Tarjeta */
.card-revision {
    max-width: 450px; /* límite en desktop */
    background-color: rgba(0, 0, 0, 0.5) !important;
    border-radius: 10px;
}

/* LOGO */
.logo-form-revision {
    max-width: 20%; /* que nunca sobresalga del contenedor */
    height: auto; /* que mantenga proporción */
}

@media (max-width: 576px) {
    .card-revision {
        max-width: 70%; /* ocupa casi todo el ancho en móviles */
    }

    .logo-form-revision {
        max-width: 35%; /* logo más pequeño */
    }
}
/* Card de cada pregunta */
.pregunta-card {
    background-color: #dce3ea !important; /* Gris claro */
    width: 100%; /* Ocupa todo el ancho del contenedor */
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Opciones de respuesta */
.pregunta-card .opciones-container {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background-color: #e9ecef; /* Gris un poco más oscuro */
    border-radius: 0.25rem;
}

/* Botones pequeños */
.btn-sm {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
}

/* Pregunta en morado */
.pregunta-label {
    color: #6f42c1;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Input de la pregunta en rosado */
.pregunta-input {
    background-color: #ffe6f0; /* rosa claro */
}

/* Opciones en fila */
.opciones-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.opciones-container input {
    flex: 1;
}

.contenido-formulario {
    -webkit-box-flex: 2;
    -webkit-flex-grow: 2;
    -ms-flex-positive: 2;
    flex-grow: 2;
    margin: 50px;
    padding: 25px;
    background-color: #83569041;
    border-radius: 25px;
}

.btn-morado {
    background-color:  #386482 !important; /* Rosa */
    border-color: #6490b0 !important;
    color: white !important;
}

.btn-morado:hover {
    background-color: #6490b0 !important; /* Morado */
    border-color: #4d5f8e !important;
    color: white !important;
}

.titulo-azul {
    color: #4074a0;
    font-size: 1.8rem; /* o 24px */
    font-weight: 700;  /* más control que 'bold' */
}


/* Card para encuestas (fondo blanco) */
.card-encuesta {
    background-color: #f4f4f4;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.125);
}

.card-encuesta .card-body {
    padding: 1.25rem;
}

/* ========================================= */
/* ESTILOS ENCUESTA PÚBLICA                  */
/* ========================================= */


/* Header */
.encuesta-header {
    margin-bottom: 2rem;
}

.icono-encuesta {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #125388 0%, #4074a0 100%);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 8px 25px rgba(18, 83, 136, 0.3);
}

.icono-encuesta i {
    font-size: 2rem;
    color: white;
}

.subtitulo-encuesta {
    color: #6c757d;
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* Secciones */
.seccion-encuesta {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.seccion-header {
    background: linear-gradient(135deg, #125388 0%, #1a6aa8 100%);
    color: white;
    padding: 1rem 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.seccion-header-preguntas {
    background: linear-gradient(135deg, #386482 0%, #4a8ab0 100%);
}

.seccion-body {
    padding: 1.5rem;
}

/* Labels e inputs */
.label-encuesta {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.95rem;
}

.icono-label {
    color: #4074a0;
    width: 18px;
    margin-right: 5px;
}

.input-encuesta {
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.input-encuesta:focus {
    border-color: #4074a0;
    box-shadow: 0 0 0 3px rgba(64, 116, 160, 0.15);
}

.input-encuesta::placeholder {
    color: #adb5bd;
}

/* Preguntas */
.pregunta-item {
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.pregunta-item:hover {
    background-color: #f8f9fa;
}

.numero-pregunta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #125388 0%, #4074a0 100%);
    color: white;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.9rem;
    margin-right: 12px;
    flex-shrink: 0;
}

.pregunta-texto {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
    line-height: 1.5;
    padding-top: 4px;
}

/* Opciones de respuesta */
.opciones-respuesta {
    margin-left: 44px;
}

.opcion-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.opcion-item:hover {
    border-color: #4074a0;
    background: #f0f7fc;
}

.opcion-item .form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    cursor: pointer;
}

.opcion-item .form-check-input:checked {
    background-color: #125388;
    border-color: #125388;
}

.opcion-item .form-check-label {
    cursor: pointer;
    margin-bottom: 0;
    flex: 1;
}

/* Respuesta abierta */
.respuesta-abierta {
    margin-left: 44px;
}

.respuesta-abierta textarea {
    resize: vertical;
    min-height: 100px;
}

/* Botón enviar */
.btn-enviar-encuesta {
    background: linear-gradient(135deg, #125388 0%, #1a6aa8 100%);
    border: none;
    color: white;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 6px 20px rgba(18, 83, 136, 0.35);
    transition: all 0.3s ease;
}

.btn-enviar-encuesta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(18, 83, 136, 0.45);
    color: white;
    background: linear-gradient(135deg, #0d4068 0%, #125388 100%);
}

.btn-enviar-encuesta:active {
    transform: translateY(-1px);
}

.texto-confidencial {
    color: #6c757d;
    font-size: 0.875rem;
}

/* Alert personalizado */
.alert-custom {
    border-radius: 10px;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .encuesta-publica-container {
        padding: 1rem 0;
    }
    
    .icono-encuesta {
        width: 60px;
        height: 60px;
    }
    
    .icono-encuesta i {
        font-size: 1.5rem;
    }
    
    .seccion-body {
        padding: 1rem;
    }
    
    .opciones-respuesta,
    .respuesta-abierta {
        margin-left: 0;
        margin-top: 1rem;
    }
    
    .numero-pregunta {
        min-width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .btn-enviar-encuesta {
        width: 100%;
        padding: 1rem 2rem;
    }
}

/* Animación suave */
.seccion-encuesta {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


   /* ========== ESTILOS GENERALES PARA TABLAS ========== */
    .dashboard-content {
        background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
        min-height: 100vh;
        padding: 2rem;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

    /* ========== HEADER DE LA PÁGINA ========== */
    .page-header {
        text-align: center;
        margin-bottom: 3rem;
    }

    .page-header h2 {
        font-size: 2.2rem;
        font-weight: 700;
        color: #2c3e50;
        margin-bottom: 0.5rem;
    }

    .header-icon {
        width: 70px;
        height: 70px;
        background: linear-gradient(135deg, #0a2660 0%, #125388 100%);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 1rem;
        box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
    }

    .header-icon i {
        font-size: 1.8rem;
        color: white;
    }

    /* ========== CONTENEDOR TIPO TARJETA ========== */
    .table-card {
        background: white;
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
        border: none;
        margin-bottom: 2rem;
    }

    .card-top-accent {
        height: 6px;
        background: linear-gradient(90deg, #0a2660, #125388);
        width: 100%;
    }

    .card-body-custom {
        padding: 1.5rem;
    }

 /* ============================================================
   ESTILOS DE TABLA, FORMULARIO Y GRAFICA
   ============================================================ */

.dashboard-content {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    min-height: 100vh;
    padding: 2rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ========== HEADER DE LA PÁGINA ========== */
.page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.page-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.header-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #0a2660 0%, #125388 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.header-icon i {
    font-size: 1.8rem;
    color: white;
}

/* ========== BOTONES GRADIENT ========== */
.header-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}


.btn-gradient-primary {
    background: linear-gradient(135deg, #0a2660 0%, #125388 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(18, 83, 136, 0.3);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    text-decoration: none;
}

.btn-gradient-primary:hover {
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 6px 20px rgba(18, 83, 136, 0.4);
}

.btn-gradient-success {
    background: linear-gradient(135deg, #28a745, #45ce63); /* verde principal */
    color: white;
    border: none;
    padding: 0.5rem 1.2rem;
    font-size: 0.95rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.btn-gradient-success:hover {
    background: linear-gradient(135deg, #218838, #35b051); /* verde más oscuro */
    color: white;
    text-decoration: none;
}


.btn-gradient-danger {
    background: linear-gradient(135deg, #a71c1c, #cd2020); /* rojo oscuro a vino */
    color: white;
    border: none;
    padding: 0.5rem 1.2rem;
    font-size: 0.95rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none; /* quita el subrayado del enlace */
}

.btn-gradient-danger:hover {
    background: linear-gradient(135deg, #8B0000, #a71c1c); /* vino más intenso en hover */
    color: white;
    text-decoration: none;
}


.btn-gradient-secondary {
    background: white;
    color: #555;
    border: 2px solid #e9ecef;
    padding: 10px 20px;
    border-radius: 10px;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    text-decoration: none;
}

.btn-gradient-secondary:hover {
    border-color: #125388;
    color: #125388;
    transform: translateY(-2px);
}

/* Botones de acción (iconos pequeños) */
.action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    transition: all 0.3s ease;
    margin: 0 2px;
    color: white;
    box-shadow: 0 3px 5px rgba(0,0,0,0.1);
}

.btn-view {
    background: linear-gradient(135deg, #667eea 0%, #125388 100%);
}

.btn-edit {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
}

.btn-delete {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5253 100%);
}

.btn-icon-small {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 3px 10px rgba(118, 75, 162, 0.3);
    transition: all 0.2s;
}

.btn-icon-small:hover {
    transform: scale(1.1);
    color: white;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.15);
    color: white;
}

/* ========== CONTENEDOR TIPO TARJETA ========== */
.table-card,
.custom-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: none;
    margin-bottom: 2rem;
    position: relative;
}

.card-top-accent {
    height: 6px;
    background: linear-gradient(90deg, #0a2660, #125388);
    width: 100%;
}

.card-body-custom {
    padding: 1.5rem;
}

/* ========== ESTILOS DE LA TABLA ========== */
.custom-table {
    width: 100% !important;
    border-collapse: collapse;
}

.custom-table thead {
    background-color: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
}

.custom-table th {
    color: #2c3e50;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    padding: 1rem 0.75rem;
    letter-spacing: 0.5px;
    border: none;
    white-space: nowrap;
}

.custom-table td {
    padding: 0.85rem 0.75rem;
    vertical-align: middle;
    color: #555;
    border-bottom: 1px solid #f1f1f1;
    font-size: 0.9rem;
}

.custom-table tbody tr {
    transition: all 0.2s ease;
}

.custom-table tbody tr:hover {
    background-color: #f1f7fc;
}

.custom-table tbody tr:last-child td {
    border-bottom: none;
}

/* ========== DATATABLES PERSONALIZADOS ========== */
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 1rem;
}

.dataTables_wrapper .dataTables_filter input {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.5rem 1rem;
    margin-left: 0.5rem;
    transition: all 0.3s ease;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: #125388;
    box-shadow: 0 0 0 3px rgba(18, 83, 136, 0.1);
    outline: none;
}

.dataTables_wrapper .dataTables_length select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.4rem 2rem 0.4rem 0.75rem;
    margin: 0 0.5rem;
}

.dataTables_wrapper .dataTables_info {
    color: #6c757d;
    font-size: 0.875rem;
    padding-top: 1rem;
}

.dataTables_wrapper .dataTables_paginate {
    padding-top: 1rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border: none !important;
    background: transparent !important;
    color: #555 !important;
    padding: 0.5rem 0.85rem;
    margin: 0 2px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #f1f7fc !important;
    color: #125388 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: linear-gradient(135deg, #0a2660 0%, #125388 100%) !important;
    color: white !important;
    font-weight: 600;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    color: #ccc !important;
}

/* ========== BADGES ========== */
.badge-encuesta {
    background-color: #f8f9fa;
    color: #2c3e50;
    border: 1px solid #e9ecef;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ========== SIDEBAR DE PREGUNTAS (Resultados) ========== */
.question-list {
    border: none;
    padding: 0;
}

.question-item {
    border: none;
    border-radius: 12px !important;
    margin-bottom: 8px;
    padding: 15px;
    transition: all 0.3s ease;
    color: #555;
    font-weight: 500;
    background-color: #f8f9fa;
}

.question-item:hover {
    background-color: #eef2f7;
    transform: translateX(5px);
    color: #125388;
}

.question-item.active {
    background: linear-gradient(135deg, #0a2660 0%, #125388 100%) !important;
    color: white !important;
    box-shadow: 0 5px 15px rgba(10, 38, 96, 0.3);
}

.question-item.active .badge {
    background-color: rgba(255,255,255,0.2) !important;
    color: white;
}

/* ========== ESTADO VACÍO ========== */
.empty-state {
    text-align: center;
    padding: 3rem;
}

.empty-state i {
    font-size: 3rem;
    color: #cbd5e0;
    margin-bottom: 1rem;
}


        /* ========== ESTILOS DEL FORMULARIO ========== */
        .form-section {
            margin-bottom: 2rem;
            padding-bottom: 1.5rem;
            border-bottom: 1px solid #e9ecef;
        }

        .form-section:last-of-type {
            border-bottom: none;
            margin-bottom: 1rem;
        }

        .form-section-title {
            font-size: 1.1rem;
            font-weight: 600;
            color: #2c3e50;
            margin-bottom: 1.5rem;
            display: flex;
            align-items: center;
        }

        .form-section-title i {
            color: #125388;
        }

        .form-label-custom {
            font-weight: 600;
            color: #2c3e50;
            font-size: 0.9rem;
            margin-bottom: 0.5rem;
            display: block;
        }

        .input-group-custom {
            position: relative;
            display: flex;
            align-items: center;
        }

        .input-icon {
            position: absolute;
            left: 15px;
            color: #6c757d;
            z-index: 10;
            font-size: 0.9rem;
        }

        .form-control-custom {
            padding: 0.75rem 1rem 0.75rem 45px;
            border: 2px solid #e9ecef;
            border-radius: 10px;
            font-size: 0.95rem;
            transition: all 0.3s ease;
            background-color: #fafbfc;
        }

        .form-control-custom:focus {
            border-color: #125388;
            box-shadow: 0 0 0 3px rgba(18, 83, 136, 0.1);
            background-color: white;
            outline: none;
        }

        .form-control-custom::placeholder {
            color: #adb5bd;
        }

        select.form-control-custom {
            cursor: pointer;
            appearance: none;
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
            background-repeat: no-repeat;
            background-position: right 1rem center;
            background-size: 12px;
            padding-right: 2.5rem;
        }




        .form-actions {
            display: flex;
            gap: 1rem;
            justify-content: center;
            padding-top: 1rem;
            flex-wrap: wrap;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .form-actions {
                flex-direction: column;
            }

            .form-actions .btn-gradient-success,
            .form-actions .btn-gradient-secondary {
                width: 100%;
                justify-content: center;
            }
        }

/* ========== ANIMACIONES ========== */
.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
    .table-responsive-custom {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .custom-table {
        min-width: 900px;
    }
}

@media (max-width: 768px) {
    .dashboard-content {
        padding: 1rem;
    }

    .custom-table th,
    .custom-table td {
        font-size: 0.8rem;
        padding: 0.6rem 0.5rem;
    }
    
    .action-btn {
        width: 28px;
        height: 28px;
    }
    
    .page-header h2 {
        font-size: 1.6rem;
    }
    
    .header-icon {
        width: 55px;
        height: 55px;
    }
    
    .header-icon i {
        font-size: 1.4rem;
    }

    .header-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-gradient-primary,
    .btn-gradient-success,
    .btn-gradient-secondary {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
}

/* --------------------------- */
/* ---------- Footer ----------*/
/* --------------------------- */

footer {
    background: linear-gradient(225deg, #125388 25%, transparent 25%) 0px 0/ 46px
            46px,
        linear-gradient(315deg, #f7f4f8 100%, transparent 25%) 0px 0/ 46px 46px;
    background-size: cover; /* Hace que la imagen cubra todo el nav */

    color: rgb(35, 0, 54);
    text-align: center;
    padding: 0.2rem;
    transition: margin-left 0.35s ease;
}

/* Media query para pantallas pequeñas */
@media (max-width: 768px) {
    /* Main y footer dejan espacio para la barra colapsada */
    #main,
    footer {
        transition: margin-left 0.35s ease;
    }
}

