@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

.btn-iem {
    background-color: #9f2380 !important;
    color: #fff !important;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(159, 35, 128, 0.2);
}

.btn-iem:hover {
    background-color: #831d69 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(159, 35, 128, 0.3);
}

.bg-iem {
    background-color: #9f2380 !important;
    color: #fff !important;
}

.link-yem {
    color: #9f2380 !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    display: inline-block;
}

.link-yem:hover {
    color: #831d69 !important;
    transform: scale(1.05);
}

/* Premium Card Styles */
.card-survey {
    background: #ffffff;
    border-radius: 16px;
    border: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    height: 100%;
}

.card-survey:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.card-survey img {
    transition: transform 0.5s ease;
}

.card-survey:hover img {
    transform: scale(1.1);
}

.survey-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: #333;
    margin-top: 1rem;
}

/* Form inputs */
.form-control {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #9f2380;
    box-shadow: 0 0 0 0.25rem rgba(159, 35, 128, 0.25);
}

/* Header/Footer Sections */
.hero-section {
    background-color: #ffffff;
    padding: 2rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.instruction-section {
    padding: 3rem 0;
}

/* Footer Social Pill */
.social-footer-pill {
    background-color: #9f2380;
    border-radius: 50px;
    padding: 12px 25px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px 25px;
    color: white;
    box-shadow: 0 4px 15px rgba(159, 35, 128, 0.3);
    margin: 0 auto;
    width: fit-content;
    max-width: 100%;
}

.social-item {
    color: white !important;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.social-item:hover {
    color: #ffd1f2 !important;
    transform: scale(1.05);
}

.social-item i, .social-item svg {
    font-size: 20px;
}
/* Accessible Text Replacements for Images */
.header-text-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
}
.header-text-container .dots-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.header-text-container .dot {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: inline-block;
}
.header-text-container .text-column {
    font-family: 'Inter', sans-serif;
}
.header-text-container .line1 {
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
}
.header-text-container .line2 {
    font-size: 2.2rem;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.1;
    letter-spacing: -0.5px;
}
.header-text-container .line3 {
    font-size: 1.1rem;
    font-weight: 500;
}

.section-title-btn {
    display: inline-block;
    padding: 10px 40px;
    border-radius: 50px;
    color: white;
    font-weight: 800;
    font-size: 1.5rem;
    text-transform: uppercase;
    box-shadow: 0 4px 0 rgba(0,0,0,0.2);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.section-banner {
    color: white;
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    margin: 30px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Theme Colors */
.theme-rojo .dot, .theme-rojo.section-title-btn, .theme-rojo.section-banner {
    background-color: #ca394b;
}
.theme-rojo .text-column { color: #ca394b; }
.theme-rojo.section-title-btn { box-shadow: 0 6px 0 #9c2736; }

.theme-verde .dot, .theme-verde.section-title-btn, .theme-verde.section-banner {
    background-color: #9ec276;
}
.theme-verde .text-column { color: #9ec276; }
.theme-verde.section-title-btn { box-shadow: 0 6px 0 #7a9c54; }

.theme-amarillo .dot, .theme-amarillo.section-title-btn, .theme-amarillo.section-banner {
    background-color: #efca43;
}
.theme-amarillo .text-column { color: #efca43; }
.theme-amarillo.section-title-btn { box-shadow: 0 6px 0 #c2a12a; }

.theme-azul .dot, .theme-azul.section-title-btn, .theme-azul.section-banner {
    background-color: #23a0ce;
}
.theme-azul .text-column { color: #23a0ce; }
.theme-azul.section-title-btn { box-shadow: 0 6px 0 #18779c; }

/* ===================================================
   Header Institucional para vistas de consultas
=================================================== */
.header-consultas-brand {
    background: #ffffff;
    border-bottom: 2px solid rgba(159, 35, 128, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.brand-logos-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.brand-logo-item {
    max-height: 75px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.brand-logo-item:hover {
    transform: scale(1.03);
}

/* ===================================================
   Barra de Credenciales de Usuario
=================================================== */
.user-credential-bar {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(159, 35, 128, 0.12);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    padding: 1.25rem 1.75rem;
    transition: all 0.3s ease;
}

.user-credential-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(159, 35, 128, 0.12), rgba(159, 35, 128, 0.22));
    color: #9f2380;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

/* ===================================================
   Tarjetas Modernas de Selección de Cuestionarios
=================================================== */
.card-questionnaire {
    background: #ffffff;
    border-radius: 18px;
    border: 1.5px solid rgba(159, 35, 128, 0.12);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.card-questionnaire::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #9f2380, #c42b9c);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-questionnaire:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 35px rgba(159, 35, 128, 0.14);
    border-color: rgba(159, 35, 128, 0.35);
}

.card-questionnaire:hover::before {
    opacity: 1;
}

.card-questionnaire.is-completed {
    background: #fbfdfb;
    border-color: rgba(40, 167, 69, 0.3);
}

.card-questionnaire.is-completed::before {
    background: linear-gradient(90deg, #28a745, #20c997);
    opacity: 1;
}

.card-questionnaire-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c2c2c;
    line-height: 1.35;
}

.card-questionnaire-desc {
    font-size: 0.92rem;
    color: #6c757d;
    line-height: 1.5;
}

.card-questionnaire-logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.25rem;
}

.questionnaire-logo-container {
    width: 105px;
    height: 105px;
    border-radius: 50%;
    background: #ffffff;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(159, 35, 128, 0.08);
    border: 2px solid rgba(159, 35, 128, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card-questionnaire:hover .questionnaire-logo-container {
    transform: scale(1.06);
    box-shadow: 0 8px 22px rgba(159, 35, 128, 0.18);
    border-color: #9f2380;
}

.questionnaire-logo-img {
    max-height: 85px;
    max-width: 85px;
    width: auto;
    height: auto;
    border-radius: 50%;
    object-fit: contain;
}


/* ===================================================
   Tarjetas de Selección de Método de Ingreso
=================================================== */
.card-method-choice {
    background: #ffffff;
    border-radius: 18px;
    border: 1.5px solid #ececf1;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
}

.card-method-choice:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 35px rgba(159, 35, 128, 0.12);
    border-color: rgba(159, 35, 128, 0.3);
}

.method-icon-wrapper {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(159, 35, 128, 0.08), rgba(159, 35, 128, 0.18));
    color: #9f2380;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.25rem;
    transition: all 0.3s ease;
}

.card-method-choice:hover .method-icon-wrapper {
    background: linear-gradient(135deg, #9f2380, #c42b9c);
    color: #ffffff;
    transform: scale(1.08);
}

/* ===================================================
   Cabecera Oficial y Pleca Dinámica de Cuestionarios
=================================================== */
.cuestionario-header-bar {
    background: #ffffff;
    border-bottom: 2px solid rgba(159, 35, 128, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.cuestionario-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 155px;
    position: relative;
}

.cuestionario-iem-brand {
    padding: 1rem 0;
    z-index: 2;
}

.cuestionario-iem-logo {
    max-height: 92px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.cuestionario-iem-logo:hover {
    transform: scale(1.02);
}

.cuestionario-pleca-container {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 580px;
    max-width: 65vw;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    z-index: 1;
}

.cuestionario-pleca-svg {
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.cuestionario-logo-badge {
    position: relative;
    z-index: 3;
    width: 138px;
    height: 138px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.22), 0 0 0 6px #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    margin-right: 32px;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.cuestionario-logo-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.28), 0 0 0 6px #ffffff;
}

.cuestionario-admin-logo-img {
    max-height: 160px;
    max-width: 160px;
    width: auto;
    height: auto;
    border-radius: 50%;
    object-fit: contain;
}

/* ===================================================
   Estilos Modernizados para Formularios de Cuestionarios
=================================================== */
.card-cuestionario-form {
    border-radius: 18px !important;
    border: 1.5px solid rgba(159, 35, 128, 0.12) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04) !important;
    overflow: hidden;
    background: #ffffff;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.card-cuestionario-form .card-header {
    background: linear-gradient(135deg, #9f2380 0%, #b82b94 100%) !important;
    color: #ffffff !important;
    padding: 1.25rem 1.75rem !important;
    font-weight: 700;
    font-size: 1.2rem;
    border: none;
}

.card-cuestionario-form .card-body {
    background: #ffffff !important;
    padding: 2rem 2.25rem !important;
}

/* Preguntas del cuestionario */
.cuestionario-pregunta-card {
    border-radius: 18px !important;
    border: 1.5px solid #ececf1 !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04) !important;
    overflow: hidden;
    background: #ffffff;
    margin-bottom: 2rem;
}

.cuestionario-pregunta-card .card-body {
    background: #ffffff !important;
    padding: 2.25rem !important;
}

/* Opciones de respuesta */
.cuestionario-pregunta-card .form-check {
    padding: 0.75rem 1.25rem 0.75rem 2.5rem;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: all 0.25s ease;
    cursor: pointer;
    margin-bottom: 0.5rem;
}

.cuestionario-pregunta-card .form-check:hover {
    background-color: rgba(159, 35, 128, 0.04);
    border-color: rgba(159, 35, 128, 0.15);
}

.cuestionario-pregunta-card .form-check-input {
    cursor: pointer;
    font-size: 1.15rem;
    margin-top: 0.2rem;
}

.cuestionario-pregunta-card .form-check-input:checked {
    background-color: #9f2380;
    border-color: #9f2380;
}

/* Adaptación responsive para pantallas medianas */
@media (max-width: 991.98px) {
    .cuestionario-header-inner {
        min-height: 130px;
    }

    .cuestionario-logo-badge {
        width: 110px;
        height: 110px;
        margin-right: 20px;
    }

    .cuestionario-admin-logo-img {
        max-height: 96px;
        max-width: 96px;
    }
}

/* Adaptación responsive para móvil */
@media (max-width: 767.98px) {
    .cuestionario-header-inner {
        min-height: 110px;
    }

    .cuestionario-iem-logo {
        max-height: 60px;
    }

    .cuestionario-pleca-container {
        width: 280px;
        max-width: 58vw;
        padding-right: 10px;
    }

    .cuestionario-logo-badge {
        width: 90px;
        height: 90px;
        margin-right: 10px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22), 0 0 0 4px #ffffff;
        padding: 5px;
    }

    .cuestionario-admin-logo-img {
        max-height: 80px;
        max-width: 80px;
    }

    .card-cuestionario-form .card-body,
    .cuestionario-pregunta-card .card-body {
        padding: 1.25rem !important;
    }
}

/* Banner de Título */
.cuestionario-title-banner {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem 1.75rem;
    border: 1px solid rgba(159, 35, 128, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

/* Bloques individuales de preguntas */
.cuestionario-pregunta-block {
    background: #fafafc;
    border: 1px solid #e9ecef;
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.cuestionario-pregunta-block:hover {
    border-color: rgba(159, 35, 128, 0.25);
    box-shadow: 0 4px 12px rgba(159, 35, 128, 0.04);
}

.cuestionario-pregunta-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #212529;
    line-height: 1.5;
    margin-bottom: 1rem;
}

/* Badges para secuencia de preguntas (Lectura Fácil) */
.badge-secuencia-pregunta {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: 0.35rem 0.85rem;
    border-radius: 50rem;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

/* Manifiesto y Firma */
.cuestionario-manifiesto-box {
    background: linear-gradient(135deg, rgba(159, 35, 128, 0.04) 0%, rgba(159, 35, 128, 0.08) 100%);
    border: 1.5px solid rgba(159, 35, 128, 0.2);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
}

.cuestionario-manifiesto-box .form-check-input {
    width: 1.35em;
    height: 1.35em;
    margin-top: 0.15em;
    cursor: pointer;
}

.cuestionario-manifiesto-box .form-check-label {
    font-size: 1rem;
    color: #333333;
    font-weight: 600;
    cursor: pointer;
    line-height: 1.45;
}

/* Aviso de Privacidad */
.cuestionario-aviso-card {
    background: #fdfdfd;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

/* ===================================================
   Tema Azul para Consultas (Discapacitados)
=================================================== */
.theme-azul .card-cuestionario-form {
    border: 1.5px solid rgba(0, 119, 182, 0.2) !important;
}

.theme-azul .card-cuestionario-form .card-header {
    background: linear-gradient(135deg, #023e8a 0%, #0077b6 100%) !important;
    color: #ffffff !important;
}

.theme-azul .btn-iem {
    background: linear-gradient(135deg, #023e8a 0%, #0077b6 100%) !important;
    border-color: #0077b6 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(2, 62, 138, 0.25) !important;
    transition: all 0.3s ease;
}

.theme-azul .btn-iem:hover,
.theme-azul .btn-iem:focus {
    background: linear-gradient(135deg, #03045e 0%, #023e8a 100%) !important;
    border-color: #023e8a !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(2, 62, 138, 0.35) !important;
    transform: translateY(-1px);
}

.theme-azul .bg-iem {
    background: linear-gradient(135deg, #023e8a 0%, #0077b6 100%) !important;
    color: #ffffff !important;
}

.theme-azul .text-iem {
    color: #0077b6 !important;
}

.theme-azul .cuestionario-title-banner {
    border-left: 5px solid #0077b6;
    border-color: rgba(0, 119, 182, 0.15);
}

.theme-azul .cuestionario-pregunta-block:hover {
    border-color: rgba(0, 119, 182, 0.3);
    box-shadow: 0 4px 12px rgba(0, 119, 182, 0.05);
}

.theme-azul .cuestionario-manifiesto-box {
    background: linear-gradient(135deg, rgba(0, 119, 182, 0.04) 0%, rgba(2, 62, 138, 0.08) 100%);
    border: 1.5px solid rgba(0, 119, 182, 0.25);
}

.theme-azul .form-check-input:checked {
    background-color: #0077b6;
    border-color: #0077b6;
}

.theme-azul .form-control:focus,
.theme-azul .form-select:focus {
    border-color: #0077b6;
    box-shadow: 0 0 0 0.25rem rgba(0, 119, 182, 0.2);
}

/* Selector de Versión (Normal vs Lectura Fácil) */
.version-selector-card {
    background: #ffffff;
    border-radius: 18px;
    border: 2px solid #0077b6;
    box-shadow: 0 8px 30px rgba(0, 119, 182, 0.12);
    overflow: hidden;
    margin-bottom: 2rem;
}

.version-selector-header {
    background: linear-gradient(135deg, #023e8a 0%, #0077b6 100%);
    color: #ffffff;
    padding: 1.1rem 1.5rem;
    font-weight: 700;
    font-size: 1.15rem;
}

.version-option-btn {
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.25rem 1rem;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.version-option-btn:hover {
    border-color: #0077b6;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 119, 182, 0.15);
}

.version-option-btn.active {
    border-color: #0077b6;
    background: #f0f7fc;
    box-shadow: 0 6px 20px rgba(0, 119, 182, 0.2);
}

.version-option-btn .version-badge-active {
    display: none;
    position: absolute;
    top: 10px;
    right: 12px;
    color: #0077b6;
    font-size: 1.3rem;
}

.version-option-btn.active .version-badge-active {
    display: block;
}

/* Grid y Tarjetas para Pictogramas (Lectura Fácil) */
.pictograma-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 1.1rem;
    margin-top: 1rem;
}

.pictograma-grid-2col {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.2rem;
    margin-top: 1rem;
}

.pictograma-card {
    position: relative;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    background: #ffffff;
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
    user-select: none;
    min-height: 160px;
    justify-content: space-between;
}

.pictograma-card:hover {
    border-color: #0096c7;
    box-shadow: 0 6px 18px rgba(0, 119, 182, 0.12);
    transform: translateY(-2px);
}

.pictograma-card.selected,
.pictograma-card:has(input:checked) {
    border-color: #0077b6 !important;
    background: #f0f8ff !important;
    box-shadow: 0 8px 24px rgba(0, 119, 182, 0.2) !important;
}

.pictograma-img-wrap {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.pictograma-img {
    max-height: 85px;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.pictograma-card:hover .pictograma-img {
    transform: scale(1.05);
}

.pictograma-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.35;
    margin-bottom: 0;
}

.pictograma-card.selected .pictograma-label,
.pictograma-card:has(input:checked) .pictograma-label {
    color: #023e8a;
    font-weight: 700;
}

.pictograma-indicator {
    position: absolute;
    top: 10px;
    right: 12px;
}

.pictograma-indicator input[type="radio"],
.pictograma-indicator input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
}

/* Banner de ayuda accesible para Lectura Fácil */
.lectura-facil-intro-card {
    background: #eef7fc;
    border-left: 5px solid #0077b6;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.75rem;
}

/* ===================================================
   Tema Mango para Consultas (Diversidad Sexual)
=================================================== */
.theme-mango .card-cuestionario-form {
    border: 1.5px solid rgba(247, 127, 0, 0.22) !important;
}

.theme-mango .card-cuestionario-form .card-header {
    background: linear-gradient(135deg, #d35400 0%, #e65100 40%, #f77f00 100%) !important;
    color: #ffffff !important;
}

.theme-mango .btn-iem {
    background: linear-gradient(135deg, #e65100 0%, #f77f00 100%) !important;
    border-color: #f77f00 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(230, 81, 0, 0.25) !important;
    transition: all 0.3s ease;
}

.theme-mango .btn-iem:hover,
.theme-mango .btn-iem:focus {
    background: linear-gradient(135deg, #bf360c 0%, #e65100 100%) !important;
    border-color: #d84315 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(230, 81, 0, 0.35) !important;
    transform: translateY(-1px);
}

.theme-mango .bg-iem {
    background: linear-gradient(135deg, #e65100 0%, #f77f00 100%) !important;
    color: #ffffff !important;
}

.theme-mango .text-iem {
    color: #e65100 !important;
}

.theme-mango .cuestionario-title-banner {
    border-left: 5px solid #f77f00;
    border-color: rgba(247, 127, 0, 0.18);
}

.theme-mango .cuestionario-pregunta-block:hover {
    border-color: rgba(247, 127, 0, 0.35);
    box-shadow: 0 4px 14px rgba(247, 127, 0, 0.07);
}

.theme-mango .cuestionario-manifiesto-box {
    background: linear-gradient(135deg, rgba(247, 127, 0, 0.04) 0%, rgba(230, 81, 0, 0.08) 100%);
    border: 1.5px solid rgba(247, 127, 0, 0.25);
}

.theme-mango .form-check-input:checked {
    background-color: #f77f00;
    border-color: #f77f00;
}

.theme-mango .form-control:focus,
.theme-mango .form-select:focus {
    border-color: #f77f00;
    box-shadow: 0 0 0 0.25rem rgba(247, 127, 0, 0.22);
}

/* Tarjetas de Formatos de Autoadscripción (Simple y Calificada) */
.formato-autoadscripcion-card {
    background: #ffffff;
    border: 1.5px solid #fed7aa;
    border-left: 5px solid #f77f00 !important;
    border-radius: 12px;
    padding: 1.5rem;
    font-size: 0.9rem;
    color: #2b2d42;
    box-shadow: 0 4px 15px rgba(247, 127, 0, 0.06);
    line-height: 1.6;
}

.formato-autoadscripcion-header {
    background: #fff7ed;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    border: 1px dashed #f97316;
}

.nota-explicativa-item {
    font-size: 0.82rem;
    color: #64748b;
    margin-left: 1.85rem;
    display: block;
    line-height: 1.35;
    margin-top: 0.2rem;
}

/* ===================================================
   Tema Verde para Consultas (Población Indígena)
=================================================== */
.theme-verde .card-cuestionario-form {
    border: 1.5px solid rgba(45, 106, 79, 0.22) !important;
}

.theme-verde .card-cuestionario-form .card-header {
    background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 50%, #40916c 100%) !important;
    color: #ffffff !important;
}

.theme-verde .btn-iem {
    background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 60%, #40916c 100%) !important;
    border-color: #2d6a4f !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(45, 106, 79, 0.25) !important;
    transition: all 0.3s ease;
}

.theme-verde .btn-iem:hover,
.theme-verde .btn-iem:focus {
    background: linear-gradient(135deg, #081c15 0%, #1b4332 60%, #2d6a4f 100%) !important;
    border-color: #1b4332 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(45, 106, 79, 0.35) !important;
    transform: translateY(-1px);
}

.theme-verde .bg-iem {
    background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 100%) !important;
    color: #ffffff !important;
}

.theme-verde .text-iem {
    color: #2d6a4f !important;
}

.theme-verde .cuestionario-title-banner {
    border-left: 5px solid #2d6a4f;
    border-color: rgba(45, 106, 79, 0.18);
}

.theme-verde .cuestionario-pregunta-block:hover {
    border-color: rgba(45, 106, 79, 0.35);
    box-shadow: 0 4px 14px rgba(45, 106, 79, 0.07);
}

.theme-verde .cuestionario-manifiesto-box {
    background: linear-gradient(135deg, rgba(45, 106, 79, 0.04) 0%, rgba(27, 67, 50, 0.08) 100%);
    border: 1.5px solid rgba(45, 106, 79, 0.25);
}

.theme-verde .form-check-input:checked {
    background-color: #2d6a4f;
    border-color: #2d6a4f;
}

.theme-verde .form-control:focus,
.theme-verde .form-select:focus {
    border-color: #2d6a4f;
    box-shadow: 0 0 0 0.25rem rgba(45, 106, 79, 0.22);
}

/* ===================================================
   Tema Rojo para Consultas (Población Migrante)
=================================================== */
.theme-rojo .card-cuestionario-form {
    border: 1.5px solid rgba(164, 19, 60, 0.22) !important;
}

.theme-rojo .card-cuestionario-form .card-header {
    background: linear-gradient(135deg, #590d22 0%, #800f2f 50%, #a4133c 100%) !important;
    color: #ffffff !important;
}

.theme-rojo .btn-iem {
    background: linear-gradient(135deg, #590d22 0%, #800f2f 60%, #a4133c 100%) !important;
    border-color: #800f2f !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(128, 15, 47, 0.25) !important;
    transition: all 0.3s ease;
}

.theme-rojo .btn-iem:hover,
.theme-rojo .btn-iem:focus {
    background: linear-gradient(135deg, #38040e 0%, #590d22 60%, #800f2f 100%) !important;
    border-color: #590d22 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(128, 15, 47, 0.35) !important;
    transform: translateY(-1px);
}

.theme-rojo .bg-iem {
    background: linear-gradient(135deg, #590d22 0%, #800f2f 100%) !important;
    color: #ffffff !important;
}

.theme-rojo .text-iem {
    color: #800f2f !important;
}

.theme-rojo .cuestionario-title-banner {
    border-left: 5px solid #800f2f;
    border-color: rgba(164, 19, 60, 0.18);
}

.theme-rojo .cuestionario-pregunta-block:hover {
    border-color: rgba(164, 19, 60, 0.35);
    box-shadow: 0 4px 14px rgba(164, 19, 60, 0.07);
}

.theme-rojo .cuestionario-manifiesto-box {
    background: linear-gradient(135deg, rgba(164, 19, 60, 0.04) 0%, rgba(89, 13, 34, 0.08) 100%);
    border: 1.5px solid rgba(164, 19, 60, 0.25);
}

.theme-rojo .form-check-input:checked {
    background-color: #800f2f;
    border-color: #800f2f;
}

.theme-rojo .form-control:focus,
.theme-rojo .form-select:focus {
    border-color: #800f2f;
    box-shadow: 0 0 0 0.25rem rgba(164, 19, 60, 0.22);
}


