/* Dilema Ético - Premium Design System */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@100..900&display=swap');

:root {
    --de-purple: #5D3FD3;
    --de-purple-light: #7B68EE;
    --de-yellow: #FDE047;
    --de-yellow-hover: #FACC15;
    --de-white: #FFFFFF;
    --de-gray-bg: #F3F4F6;
    --de-gray-text: #4B5563;
    --de-dark-text: #1F2937;

    --de-carencia: #FBBF24;
    --de-carencia-bg: #FEF3C7;
    --de-equilibrio: #34D399;
    --de-equilibrio-bg: #D1FAE5;
    --de-exceso: #F87171;
    --de-exceso-bg: #FEE2E2;

    --de-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --de-card-radius: 24px;
}

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

body.dilema-etico.game-active {
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    height: 100vh !important;
    width: 100vw !important;
    background: url(../images/fondo_juego.webp) no-repeat center center fixed !important;
}

.ad-container.dilema-etico {
    font-family: 'Inter', sans-serif;
    width: 100%;
    /* height: 100vh; */
    background: url('../images/fondo_juego.webp') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* Intro Overlay */
.ad-intro-overlay {
    position: absolute;
    inset: 0;
    background: url('../images/fondo_juego.webp') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.ad-intro-card-new {
    width: 90%;
    max-width: 900px;
    background-color: var(--de-purple);
    border-radius: 30px;
    padding: 40px;
    color: white;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ad-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.fge-logo {
    font-weight: 900;
    font-size: 2rem;
    letter-spacing: -1px;
}

.org-logo-container {
    background: white;
    color: var(--de-dark-text);
    padding: 15px 25px;
    border-radius: 0 0 0 40px;
    border-radius: 10px 40px 10px 40px;
    /* Custom leaf-like shape */
    font-weight: 600;
    font-size: 0.8rem;
    position: absolute;
    top: 40px;
    right: 40px;
}

.ad-intro-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 0;
}

.ad-balance-visual {
    width: 240px;
    margin-bottom: 20px;
}

.balance-scale-svg {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.ad-intro-title-new {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 30px;
    letter-spacing: -2px;
}

.ad-login-form {
    width: 100%;
    max-width: 400px;
}

.ad-form-label {
    font-size: 0.9rem;
    margin-bottom: 10px;
    opacity: 0.9;
}

.ad-input {
    width: 100%;
    padding: 15px 20px;
    border-radius: 12px;
    border: none;
    margin-bottom: 15px;
    font-size: 1rem;
    font-family: inherit;
}

.btn-continue,
.btn-start,
.btn-retry {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    border: none;
    background-color: var(--de-yellow);
    color: var(--de-dark-text);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.btn-continue:hover,
.btn-start:hover,
.btn-retry:hover {
    background-color: var(--de-yellow-hover);
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 15px 30px rgba(250, 204, 21, 0.4);
}

/* Instructions Screen */
.ad-instructions-overlay {
    position: absolute;
    inset: 0;
    background: url('../images/fondo_juego.webp') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 90;
}

.ad-white-card {
    width: 90%;
    max-width: 900px;
    background-color: white;
    border-radius: 40px;
    padding: 35px;
    color: var(--de-dark-text);
    position: relative;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

/* Transitions handled by jQuery fadeIn to avoid jumpy effects */

.ad-top-bar-light {
    position: absolute;
    top: 40px;
    left: 40px;
    font-size: 0.8rem;
    color: var(--de-gray-text);
}

.ad-section-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 30px;
    /* Reduced margin */
}

.ad-instruction-visuals {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
    /* Reduced margin */
}

.instruction-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.balance-icon-small {
    width: 160px;
    height: 90px;
    margin-bottom: 10px;
    margin-left: 15px;
}

.balance-icon-small svg {
    width: 100%;
    height: 100%;
}

.state-label {
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 15px;
}

.state-label.carencia {
    background-color: var(--de-carencia-bg);
    color: #B45309;
}

.state-label.equilibrio {
    background-color: var(--de-equilibrio-bg);
    color: #065F46;
}

.state-label.exceso {
    background-color: var(--de-exceso-bg);
    color: #991B1B;
}

.state-desc {
    padding: 15px;
    border-radius: 12px;
    font-size: 0.8rem;
    text-align: center;
    line-height: 1.4;
}

.carencia-bg {
    background-color: #FEF9C3;
    border: 1px solid #FDE68A;
}

.equilibrio-bg {
    background-color: #ECFDF5;
    border: 1px solid #A7F3D0;
}

.exceso-bg {
    background-color: #FEF2F2;
    border: 1px solid #FECACA;
}

.ad-instruction-list {
    background-color: var(--de-gray-bg);
    padding: 30px;
    border-radius: 20px;
}

.ad-instruction-list ul {
    list-style: none;
    margin-bottom: 25px;
}

.ad-instruction-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.ad-instruction-list li span {
    background-color: var(--de-purple);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* Non-floating Footer inside Fixed-Height Wrapper */
.ad-game-footer-new {
    width: 100%;
    padding: 20px 40px;
    position: absolute;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 100;
}

.ad-game-footer-new .fge-logo-footer {
    font-weight: 900;
    font-size: 1.8rem;
    letter-spacing: -1.5px;
    color: rgba(255, 255, 255, 0.5);
}

.final-active .ad-game-footer-new .fge-logo-footer {
    color: #1e293b;
    opacity: 0.15;
}

/* Ensure content leaves space for footer */
#ad-modal-content-new {
    padding-bottom: 60px;
    flex: 1;
    overflow-y: auto;
}

.ad-instruction-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 40px;
}

.btn-start {
    width: 200px;
}

.fge-logo-dark {
    font-weight: 900;
    font-size: 1.8rem;
    color: #1E293B;
}

.btn-skip {
    position: absolute;
    bottom: 40px;
    left: 40px;
    background: white;
    border: 1px solid #CBD5E1;
    padding: 10px 25px;
    border-radius: 25px;
    color: var(--de-gray-text);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.btn-skip:hover {
    background: #F8FAFC;
    border-color: #94A3B8;
    color: var(--de-dark-text);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Game Wrapper Layout - MATCHING LOGIN BOX SIZE EXACTLY */
.ad-game-wrapper {
    width: 1250px;
    height: 700px;
    background: url('../images/fondo_modal.webp') no-repeat center center;
    background-size: cover;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    position: relative;
    /* Base for absolute footer */
    transition: background 0.5s ease;
}

.ad-game-wrapper.final-active {
    background: #FFFFFF !important;
}

.ad-game-wrapper .ad-top-game-bar {
    background: transparent;
    padding: 20px 40px;
    margin-bottom: 0;
}

.ad-top-game-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0px;
}

.ad-game-stats {
    display: flex;
    gap: 15px;
}

.stat-pill {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.stat-pill.dilemma-count {
    background-color: #5636E3;
    color: white;
    flex-direction: column;
    align-items: flex-start;
    padding: 6px 16px;
    gap: 4px;
    min-width: 120px;
}

.stat-pill.dilemma-count .pill-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-pill.dilemma-count .material-symbols-outlined {
    color: #F87171;
    font-size: 1.1rem;
}

.stat-pill.score-count {
    background-color: white;
    color: #5636E3;
}

.stat-pill.score-count .material-symbols-outlined {
    color: #F6DF82;
    font-size: 1.1rem;
    font-variation-settings: 'FILL' 1;
}

.progress-bar-mini {
    width: 100%;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 1px;
}

.progress-bar-mini .fill {
    height: 100%;
    background-color: #F6DF82;
    transition: width 0.4s ease;
}

/* Dilemma Grid Layout (Main Area) */
.ad-main-game-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    border-radius: 0 0 40px 40px;
    width: 100%;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 600px;
}

.grid-item {
    aspect-ratio: 1;
    background-color: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #94A3B8;
}

.grid-item:hover:not(.locked) {
    background-color: white;
    border-color: var(--de-purple);
    color: var(--de-purple);
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.grid-item.completed {
    background-color: var(--de-purple);
    color: white;
    border-color: var(--de-purple);
}

.grid-item.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-new {
    margin-top: 30px;
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Dilemma Modal (Specific design from Image 5) */
.ad-modal {
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.ad-modal.visible {
    opacity: 1;
    visibility: visible;
}

.ad-modal-content-new {
    width: 100%;
    background: transparent;
    display: flex;
}

.ad-modal.visible {
    opacity: 1;
    visibility: visible;
}

.ad-modal-content-new {
    width: 100%;
    background: transparent;
    display: flex;
}

.no-shadow {
    box-shadow: none !important;
}

.dilemma-view {
    display: flex;
    height: 100%;
}

.dilemma-view {
    display: flex;
    width: 100%;
    margin: 0 auto;
    background: transparent;
    border-radius: 40px;
    gap: 20px;
    padding: 10px;
    padding-left: 120px;
    /* Added padding-left as requested */
}

.dilemma-left {
    flex: 1.1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: #e5edf8;
    /* Specific blueish background */
    border-radius: 40px;
    border: 1px solid #e5edf8;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.dilemma-header-new {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    position: relative;
    width: 100%;
}

.dilemma-header-new h3 {
    font-size: 2rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.balance-icon-small {
    width: 220px;
    height: 140px;
    position: absolute;
    top: -50px;
    right: -48px;
    z-index: 5;
    pointer-events: none;
}

/* Static Balance in Dilemma: Tilted left, Centered ball */
.balance-static-game .scale-move {
    transform: rotate(-6deg);
    transform-origin: 100px 75px;
}

.balance-static-game .ball-rolling {
    transform: translateX(0);
    /* Centered ball position */
}

.dilemma-case-wrap {
    flex: 1;
    position: relative;
    margin-bottom: 0px;
    min-height: 0;
}

.dilemma-case-wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(to bottom, transparent 0%, rgba(229,237,248,0.85) 60%, #e5edf8 100%);
    pointer-events: none;
    transition: opacity 0.3s ease;
    opacity: 1;
}

.dilemma-case-wrap.at-bottom::after {
    opacity: 0;
}

/* Row that holds both scroll controls */
.dilemma-scroll-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 6px 0 0;
    min-height: 30px;
}

/* Bouncing scroll-hint arrow */
.dilemma-scroll-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: rgba(96,75,222,0.15);
    border: 1.5px solid rgba(96,75,222,0.35);
    border-radius: 50%;
    cursor: pointer;
    transition: opacity 0.3s ease, background 0.2s ease, width 0.2s ease, border-radius 0.2s ease, padding 0.2s ease;
    animation: de-scroll-bounce 1.4s ease-in-out infinite;
    white-space: nowrap;
    overflow: hidden;
}

.dilemma-scroll-hint:hover {
    width: auto;
    padding: 0 10px 0 8px;
    border-radius: 14px;
    background: rgba(96,75,222,0.22);
    animation: none;
}

.dilemma-scroll-hint svg {
    flex-shrink: 0;
    width: 13px;
    height: 13px;
    stroke: rgba(96,75,222,0.8);
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dilemma-scroll-hint-label {
    display: none;
    font-size: 11px;
    font-weight: 700;
    color: rgba(96,75,222,0.9);
    margin-left: 4px;
    letter-spacing: 0.02em;
}

.dilemma-scroll-hint:hover .dilemma-scroll-hint-label {
    display: inline;
}

.dilemma-case-wrap.at-bottom ~ .dilemma-scroll-row .dilemma-scroll-hint {
    opacity: 0;
    pointer-events: none;
}

@keyframes de-scroll-bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(4px); }
}

/* Back-to-top button */
.dilemma-scroll-top {
    display: none;
    align-items: center;
    gap: 5px;
    padding: 4px 12px 4px 8px;
    background: rgba(96,75,222,0.1);
    border: 1.5px solid rgba(96,75,222,0.3);
    border-radius: 14px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    color: rgba(96,75,222,0.85);
    letter-spacing: 0.02em;
    transition: background 0.2s ease;
}

.dilemma-scroll-top:hover {
    background: rgba(96,75,222,0.18);
}

.dilemma-scroll-top svg {
    width: 13px;
    height: 13px;
    stroke: rgba(96,75,222,0.8);
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.dilemma-case-wrap.is-scrolled ~ .dilemma-scroll-row .dilemma-scroll-top {
    display: flex;
}

.dilemma-case {
    font-size: 17px;
    text-align: justify;
    line-height: 1.3;
    color: #475569;
    padding: 4px 6px 0 0;
    background: transparent;
    max-height: 345px;
    overflow-y: auto;
    font-weight: normal;
    border-radius: 0px;
    scrollbar-width: thin;
    scrollbar-color: rgba(96,75,222,0.35) transparent;
}

.dilemma-case::-webkit-scrollbar {
    width: 4px;
}

.dilemma-case::-webkit-scrollbar-track {
    background: transparent;
}

.dilemma-case::-webkit-scrollbar-thumb {
    background: rgba(96,75,222,0.35);
    border-radius: 2px;
}

.question-text {
    font-size: 2.2rem;
    font-weight: 600;
    color: #5636E3;
    text-align: center;
    margin-top: auto;
    padding-top: 10px;
}

.dilemma-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-right: 30px;
}

.cards-stack {
    width: 290px;
    height: 380px;
    position: relative;
    perspective: 1000px;
    margin-bottom: 50px;
}

.option-card {
    position: absolute;
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 35px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
}

.option-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.16);
    background: #F8FAFC !important;
    border-color: rgba(93, 63, 211, 0.2) !important;
}

.option-card:active {
    transform: scale(0.98) translateY(0);
}

.option-card h4,
.card-letter-circle {
    background-color: var(--de-purple);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
    font-weight: 900;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(93, 63, 211, 0.3);
}

.dilema-etico .option-card p,
.dilema-etico .opt-text {
    font-size: 12px !important;
    line-height: 1.3 !important;
    color: #4338CA !important;
    font-weight: 600 !important;;
    text-shadow: none !important;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bottom-card-action {
    width: 100%;
    padding-top: 20px;
}

.btn-select-option {
    width: auto;
    background-color: var(--de-purple);
    color: white;
    padding: 8px 18px;
    border-radius: 25px;
    border: none;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    margin: 0 auto;
}

.btn-select-option:hover {
    background: #5D3FD3;
    box-shadow: 0 10px 25px rgba(93, 63, 211, 0.4);
    transform: translateY(-2px);
}

.btn-select-option:hover .material-symbols-outlined {
    transform: translateX(4px);
    transition: transform 0.3s ease;
}

.btn-select-option .material-symbols-outlined {
    transition: transform 0.3s ease;
}

.card-indicators {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 0px;
}

.indicator-hint {
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
    margin: 5px 0 0 0;
    background: transparent;
    padding: 0;
    border-radius: 0;
}

/* Version 3 Clean: No icons before hint for better minimal look */
.indicator-hint::before {
    display: none !important;
}

.dots-container {
    display: flex;
    gap: 12px;
    background: #FFFFFF;
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.12);
}

.card-indicators .dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #F1F5F9;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 800;
    color: #94A3B8;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.card-indicators .dot.active {
    background-color: #5636E3;
    color: #FFFFFF;
    transform: scale(1.15);
    box-shadow: 0 5px 15px rgba(86, 54, 227, 0.3);
}

.card-indicators .dot:hover {
    background-color: #E2E8F0;
    transform: translateY(-2px);
    color: #1e293b;
}

.card-indicators .dot.active:hover {
    background-color: #4C1D95;
    transform: scale(1.15) translateY(-2px);
    color: #FFFFFF;
}

/* Side Arrows */
.nav-arrows-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    transition: all 0.3s ease;
    color: var(--de-purple);
}

.nav-arrow:hover {
    background: var(--de-purple);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.nav-arrow.prev {
    left: -70px;
}

.nav-arrow.next {
    right: -70px;
}

.nav-arrow .material-symbols-outlined {
    font-size: 32px;
    font-weight: 700;
}

.corner {
    position: absolute;
    bottom: 30px;
    right: 40px;
    font-size: 2rem;
    font-weight: 900;
    color: #1e293b;
}

/* Feedback Card (Images 2 & 4) */
.ad-feedback-card {
    width: 90%;
    max-width: 650px;
    background: url('../images/bg-card-ethical.webp') no-repeat center center;
    background-size: cover;
    border-radius: 30px;
    padding: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    position: relative;
    text-align: center;
}

.feedback-balance {
    width: 100%;
    max-width: 300px;
    margin-bottom: 30px;
    position: relative;
}

.feedback-state-tag {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.feedback-state-tag.carencia {
    background-color: var(--de-carencia);
    color: white;
}

.feedback-state-tag.equilibrio {
    background-color: var(--de-equilibrio);
    color: white;
}

.feedback-state-tag.exceso {
    background-color: var(--de-exceso);
    color: white;
}

.feedback-content h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.feedback-content h2.incorrect {
    color: #F59E0B;
}

.feedback-content h2.equilibrado {
    color: #10B981;
}

.feedback-value {
    margin-bottom: 15px;
}

.feedback-value .label {
    color: var(--de-gray-text);
    font-weight: 500;
}

.feedback-value #feedback-value-name {
    font-weight: 700;
    color: var(--de-dark-text);
}

.feedback-content p {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--de-gray-text);
    margin-bottom: 30px;
}

.btn-retry {
    max-width: 250px;
    margin: 0 auto;
}

/* Game Over Card */
.ad-white-card.game-over {
    text-align: center;
    padding: 60px;
}

.final-score {
    margin: 40px 0;
}

.score-num {
    font-size: 5rem;
    font-weight: 900;
    color: var(--de-purple);
}

.score-label {
    text-transform: uppercase;
    font-weight: 700;
    color: var(--de-gray-text);
    letter-spacing: 2px;
}

/* Utils */
.hidden {
    display: none !important;
}

/* Animations */
.plank-group {
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.plank-group-feedback {
    transition: transform 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.result-view {
    width: 100%;
    height: 100%;
    position: relative;
    padding: 10px 40px 40px;
    display: none;
    flex-direction: column;
    align-items: center;
    border-radius: 0 0 40px 40px;
}

.result-view.visible {
    display: flex;
}

.feedback-top-visual {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.large-balance {
    width: 280px;
    height: 150px;
}

.feedback-state-tag-large {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 30px;
    border-radius: 25px;
    color: white;
    font-weight: 800;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-20px);
}

.feedback-state-tag-large.carencia {
    background-color: #EBC45A;
}

.feedback-state-tag-large.equilibrio {
    background-color: #72C5B3;
}

.feedback-state-tag-large.exceso {
    background-color: #D8786B;
}

.result-box-container {
    width: 100%;
    max-width: 650px;
    background: white;
    border-radius: 35px;
    overflow: hidden;
    border: 4px solid transparent;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.06);
}

.result-box-container.exceso {
    border-color: #D8786B;
}

.result-box-container.carencia {
    border-color: #EBC45A;
}

.result-box-container.equilibrio {
    border-color: #72C5B3;
}

.result-header {
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-weight: 900;
    font-size: 1.5rem;
    text-transform: none;
}

.result-box-container.exceso .result-header {
    background-color: #FDF2F1;
    color: #D8786B;
}

.result-box-container.carencia .result-header {
    background-color: #FFFBEB;
    color: #EBC45A;
}

.result-box-container.equilibrio .result-header {
    background-color: #F0F9F7;
    color: #72C5B3;
}

.result-body {
    padding: 25px 40px 30px;
    text-align: center;
}

.result-body .val-label {
    font-weight: 600;
    color: #64748b;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.result-body p {
    color: #475569;
    font-size: 1rem;
    line-height: 1.2;
    font-weight: 500;
    margin-bottom: 15px;
}

.btn-action-result {
    background-color: #F6DF82;
    color: #1e293b;
    padding: 12px 45px;
    border-radius: 25px;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(246, 223, 130, 0.3);
}

.btn-action-result:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 25px rgba(246, 223, 130, 0.5);
    background-color: #FDE047;
}

/* Default Dilemma Styles (formerly v-soft) */
.dilemma-left {
    padding: 20px;
    margin: -10px 35px 35px 35px;
}

.dilemma-header-new {
    background: transparent;
    padding: 0;
    margin-bottom: 25px;
}

.corner {
    position: absolute;
    bottom: 30px;
    right: 40px;
    font-weight: 900;
    font-size: 1.8rem;
    color: #1e293b;
    opacity: 0.8;
}


.balance-scale-svg {
    animation: float 4s infinite ease-in-out;
}

/* Animations */
.anim-fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* FINAL SCORE PAGE STYLES */
.final-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0px 15px;
    text-align: center;
}

.final-header h1 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #4F46E5;
    margin-bottom: 0px;
    letter-spacing: -0.5px;
    line-height: 1;
}

.equilibrium-pill-large {
    max-width: 400px;
    margin: 2px auto 8px;
}

.pill-track {
    background: #F1F5F9;
    height: 34px;
    border-radius: 40px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.pill-fill {
    height: 100%;
    background: linear-gradient(90deg, #4FD1C5, #fcfcfc);
    border-radius: 40px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.pill-text {
    position: absolute;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 5px;
    color: white !important;
    font-weight: 700;
    font-size: 0.95rem;
    z-index: 2;
    pointer-events: none;
}

.pill-icon-circle {
    width: 25px;
    height: 25px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pill-icon-circle .material-symbols-outlined {
    color: #4FD1C5;
    font-size: 1.2rem !important;
    font-weight: 900 !important;
}

.pill-label-results {
    margin-top: 1px;
}

.feedback-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    display: grid;
    margin-top: 30px;
}

.feedback-card {
    background: white;
    padding: 8px 12px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.05);
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-icon-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2px;
}

.card-icon-title h2 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #5636E3;
    margin: 0;
}

.feedback-card p {
    color: #64748b;
    font-weight: 500;
    font-size: 0.78rem;
    margin: 0;
}

.feedback-card textarea {
    width: 100%;
    height: 60px;
    background: #F1F5F9;
    border: none;
    border-radius: 12px;
    padding: 10px 15px;
    font-family: inherit;
    font-size: 0.85rem;
    resize: none;
    color: #1e293b;
    margin-bottom: 10px;
}

.tag-selector {
    display: flex;
    gap: 12px;
    margin: 10px 0;
}

.feedback-tag {
    background: #F1F5F9;
    border: none;
    padding: 8px 18px;
    border-radius: 10px;
    color: #64748b;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.feedback-tag.active {
    background: #E0E7FF;
    color: #5636E3;
}

.btn-send-feedback {
    background: #5636E3;
    color: white;
    border: none;
    padding: 5px 35px;
    /* Smaller as requested */
    border-radius: 30px;
    display: block;
    margin: 10px auto 0;
    /* Centered */
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-send-feedback:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 20px rgba(86, 54, 227, 0.4);
    background: #6366f1;
}

/* Social rating/feedback area spacing */
.star-rating-final {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 10px 0;
}

.star-btn {
    font-size: 2.8rem;
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.star-btn.active,
.star-btn:hover {
    color: #FBBF24;
    font-variation-settings: 'FILL' 1;
    transform: scale(1.1);
}

.hidden {
    display: none !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Unified Fixed Containers - Match exactly to satisfy UI stability */
.platform-card,
.ad-game-wrapper {
    width: 1250px !important;
    height: 700px !important;
    max-width: 1250px !important;
    min-height: 700px !important;
    border-radius: 40px !important;
    overflow: hidden;
    position: relative;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.4);
}

/* Ensure Internal Views fill the 700px height without jumping */
.view-content {
    width: 100%;
    height: 100% !important;
    display: flex;
    flex-direction: column;
    padding: 40px;
    box-sizing: border-box;
}

#ad-modal-content-new {
    width: 100%;
    height: 100% !important;
    position: relative;
    display: flex;
    flex-direction: column;
}

.ad-game-footer-new {
    position: absolute;
    bottom: 20px;
    right: 40px;
    z-index: 999;
}

/* ---- CONFETTI ---- */
@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(720px) rotate(720deg);
        opacity: 0;
    }
}

/* ---- SCORE POPUP ---- */
.score-popup {
    background: linear-gradient(135deg, #FBBF24, #F59E0B);
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 900;
    padding: 6px 18px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.5);
    pointer-events: none;
    user-select: none;
    letter-spacing: -0.5px;
}

/* ---- FINAL SCORE VIEW background ---- */
#final-score-view {
    background-size: cover !important;
    background-position: center !important;
    overflow-y: auto;
}

/* ---- PILL TEXT CONTRAST FIX ---- */
.pill-text {
    position: absolute;
    width: 100%;
    text-align: center;
    color: #1e293b;
    font-weight: 900;
    font-size: 0.9rem;
}

.pill-text {
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    z-index: 2;
}

/* ---- FEEDBACK CARD SPACING & SHADOW ---- */
.feedback-card {
    margin: 3px 0 !important;
    padding: 12px 18px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.feedback-card .form-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

#user-dilemma-text {
    height: 124px !important;
}

#game-feedback-comment {
    height: 60px !important;
}

.feedback-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12) !important;
}

.feedback-grid {
    padding: 5px 0;
    gap: 12px !important;
}

/* ---- SHARE LABEL: amarillo + azul ---- */
.share-label {
    display: inline-block;
    background: #F6DF82;
    color: #1e293b;
    font-weight: 800;
    font-size: 0.75rem;
    padding: 4px 14px;
    border-radius: 15px;
    letter-spacing: 0.01em;
    margin-bottom: 6px;
}

/* ---- SOCIAL BUTTONS REDESIGN ---- */
.share-icons-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.share-icon-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.75rem;
    transition: all 0.25s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    color: white;
    text-decoration: none;
}

.share-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #5636E3;
    box-shadow: 0 4px 12px rgba(86, 54, 227, 0.2);
    padding: 0;
}

.share-icon-btn:hover {
    transform: translateY(-3px) scale(1.05);
    background: #4629c5;
    box-shadow: 0 6px 15px rgba(86, 54, 227, 0.3);
}

.share-icon-btn svg {
    width: 16px;
    height: 16px;
    fill: white !important;
}

/* ---- SUCCESS MESSAGE PREMIUM ---- */
.success-msg {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px 20px;
    min-height: 200px;
    text-align: center;
    background: transparent;
    animation: successAppear 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.success-msg p {
    color: #166534 !important;
    font-weight: 800 !important;
    font-size: 0.95rem !important;
    text-align: center;
    margin: 0 !important;
}

.success-msg .material-symbols-outlined {
    font-size: 4.5rem !important;
    color: #10B981 !important;
    margin-bottom: 15px;
    display: block;
    font-variation-settings: 'FILL' 1;
}

@keyframes successAppear {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ---- SKIP BUTTON: always on top ---- */
#btn-skip-instructions {
    z-index: 500 !important;
    position: absolute !important;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-10px);
    }

    75% {
        transform: translateX(10px);
    }
}

/* NEW ANIMATIONS FOR RESULT BALANCE */
.animate-res-carencia #res-scale-move {
    animation: res-swing-carencia 3s cubic-bezier(0.45, 0, 0.55, 1) forwards;
    transform-origin: 100px 75px;
}

.animate-res-carencia #res-ball-rolling {
    animation: res-ball-carencia 3s cubic-bezier(0.45, 0, 0.55, 1) forwards;
}

.animate-res-exceso #res-scale-move {
    animation: res-swing-exceso 3s cubic-bezier(0.45, 0, 0.55, 1) forwards;
    transform-origin: 100px 75px;
}

.animate-res-exceso #res-ball-rolling {
    animation: res-ball-exceso 3s cubic-bezier(0.45, 0, 0.55, 1) forwards;
}

.animate-res-equilibrio #res-scale-move {
    animation: res-swing-equilibrio 3s cubic-bezier(0.45, 0, 0.55, 1) forwards;
    transform-origin: 100px 75px;
}

.animate-res-equilibrio #res-ball-rolling {
    animation: res-ball-equilibrio 3s cubic-bezier(0.45, 0, 0.55, 1) forwards;
}

@keyframes res-swing-carencia {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(12deg);
    }

    50% {
        transform: rotate(-12deg);
    }

    75% {
        transform: rotate(5deg);
    }

    100% {
        transform: rotate(-17deg);
    }
}

@keyframes res-ball-carencia {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(30px);
    }

    50% {
        transform: translateX(-30px);
    }

    75% {
        transform: translateX(10px);
    }

    100% {
        transform: translateX(-44px);
    }
}

@keyframes res-swing-exceso {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(12deg);
    }

    50% {
        transform: rotate(-12deg);
    }

    75% {
        transform: rotate(-5deg);
    }

    100% {
        transform: rotate(17deg);
    }
}

@keyframes res-ball-exceso {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(30px);
    }

    50% {
        transform: translateX(-30px);
    }

    75% {
        transform: translateX(-10px);
    }

    100% {
        transform: translateX(44px);
    }
}

@keyframes res-swing-equilibrio {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(12deg);
    }

    50% {
        transform: rotate(-12deg);
    }

    75% {
        transform: rotate(6deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

@keyframes res-ball-equilibrio {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(30px);
    }

    50% {
        transform: translateX(-30px);
    }

    75% {
        transform: translateX(12px);
    }

    100% {
        transform: translateX(0);
    }
}

/* ---- FINAL EXIT MESSAGE PILL ---- */
.final-exit-section {
    margin: 25px auto 0;
    padding: 8px 20px;
    border-radius: 20px;
    background: #F0FDF4;
    border: 1px solid rgba(16, 185, 129, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 600px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.05);
}

.final-exit-section p {
    color: #065F46 !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 !important;
}

.final-exit-section .material-symbols-outlined {
    font-size: 1.4rem !important;
    color: #10B981 !important;
}

/* ERROR MESSAGES IN CARDS */
.form-error-msg {
    color: #EF4444 !important;
    background: #FEF2F2;
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
    width: 100%;
    animation: errorEnter 0.3s ease-out;
}

@keyframes errorEnter {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Integrated from inline styles */
.org-logo-img img {
    height: 80px;
    width: 80px;
    min-width: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.org-logo-placeholder {
    color: #1e293b;
    font-weight: 800;
    font-size: 0.8rem;
}

.balance-static-game {
    height: 100px;
    width: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

.cards-stack-wrapper {
    position: relative;
}

/* Final Share & Results Section - Variante 1 */
.final-share-section {
    width: 100%;
    margin-top: 10px;
}

.btn-download-hero {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-download-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(86, 54, 227, 0.35);
    filter: brightness(1.1);
}

.btn-download-hero:active {
    transform: translateY(0);
}

.share-icon-btn {
    transition: all 0.25s ease;
}

.share-icon-btn:hover {
    background: #e2e8f0 !important;
    transform: translateY(-3px);
    color: #5636E3 !important;
}

.final-actions-column {
    animation: deFadeInUp 0.6s ease-out forwards;
}

@keyframes deFadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo FGE crédito mobile — oculto en desktop */
.de-fge-credit-mobile {
    display: none;
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE — Dilema Ético · Mobile ≤ 768px
   Desktop (> 768px) queda sin cambios
   ══════════════════════════════════════════════════════ */
@media (max-width: 768px) {

    /* 1. Contenedor principal: ocupa toda la pantalla y permite scroll */
    .ad-container.dilema-etico {
        align-items: flex-start;
        overflow: visible;
    }

    .platform-card,
    .ad-game-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 100vh !important;
        min-height: 100dvh !important;
        border-radius: 0 !important;
        overflow-y: auto !important;
        box-shadow: none !important;
    }

    /* 2. Top bar compacto */
    .ad-game-wrapper .ad-top-game-bar {
        padding: 10px 14px;
    }

    .org-logo-img img {
        height: 46px;
        width: 46px;
        min-width: 46px;
    }

    .ad-game-stats { gap: 6px; }

    .stat-pill {
        font-size: 0.72rem;
        padding: 5px 10px;
    }

    .stat-pill.dilemma-count {
        min-width: 140px;
        padding: 10px 15px;
    }

    /* 3. Área de juego: altura automática */
    .ad-main-game-area {
        flex: none;
        height: auto;
    }

    .ad-modal-content-new {
        height: auto !important;
    }

    /* 4. Vista dilema: columnas apiladas verticalmente */
    .dilemma-view {
        flex-direction: column;
        padding: 10px 16px 20px;
        height: auto;
        gap: 20px;
    }

    .dilemma-left {
        flex: none;
        margin: 0 !important;
        padding: 20px 18px;
        border-radius: 20px;
    }

    .dilemma-header-new { margin-bottom: 12px; }

    .dilemma-header-new h3 { font-size: 1.3rem; }

    .balance-icon-small {
        width: 90px;
        height: 60px;
        top: -22px;
        right: -10px;
    }

    .dilemma-case-wrap::after {
        background: linear-gradient(to bottom, transparent 0%, rgba(229,237,248,0.85) 60%, #e5edf8 100%);
    }

    .dilemma-case {
        font-size: 14px;
        line-height: 1.5;
        max-height: 400px;
        margin-bottom: 0;
        text-align: left;
    }

    .question-text {
        font-size: 1.35rem;
        padding-top: 10px;
    }

    /* 5. Panel derecho: cards más anchas y con mejor espaciado */
    .dilemma-right {
        flex: none;
        padding: 10px 0 20px;
        width: 100%;
    }

    .cards-stack-wrapper {
        display: flex;
        justify-content: center;
    }

    .cards-stack {
        width: 260px;
        height: 360px;
        margin-bottom: 28px;
    }

    /* Las option-card son position:absolute/height:100% — necesitan padre con altura fija */
    .option-card {
        padding: 28px 22px 22px;
        border-radius: 24px;
    }

    .card-letter-circle,
    .option-card h4 {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        margin-bottom: 14px;
        flex-shrink: 0;
    }

    .dilema-etico .option-card p,
    .dilema-etico .opt-text {
        font-size: 13px !important;
        line-height: 1.45 !important;
    }

    .bottom-card-action { padding-top: 14px; }

    .btn-select-option {
        white-space: nowrap;
        font-size: 0.82rem;
        padding: 8px 16px;
    }

    /* Dots + hint con más espacio */
    .card-indicators {
        gap: 16px;
        margin-top: 4px;
    }

    .indicator-hint {
        margin-bottom: 12px;
    }

    .nav-arrow.prev { left: -22px; }
    .nav-arrow.next { right: -22px; }

    /* 6. Vista resultado */
    .result-view {
        padding: 10px 16px 24px;
        height: auto;
        border-radius: 0;
    }

    .result-box-container {
        max-width: 100%;
    }

    .result-body { padding: 20px 20px 24px; }

    /* 7. Pantalla final: altura automática con scroll */
    #final-score-view,
    .view-content {
        height: auto !important;
        min-height: 100vh !important;
        min-height: 100dvh !important;
        padding: 20px 16px 30px !important;
    }

    .final-container { padding: 0; }

    /* Logo cliente: centrado al inicio en la pantalla final */
    #final-score-view .final-org-logo-wrapper {
        position: static !important;
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 12px;
    }
    .final-header { margin-top: 0 !important; }

    /* Pill "lograste equilibrio": texto completo sin corte */
    .equilibrium-pill-large { max-width: 100%; width: 100%; margin-top: 20px;}
    .pill-track { height: auto; min-height: 34px; padding: 8px 12px; }
    .pill-fill { background: #5636e3; position: absolute; top: 0; left: 0; height: 100%; border-radius: 40px; }
    .pill-text { position: static; font-size: 0.68rem !important; flex-wrap: wrap; gap: 5px; white-space: normal; }
    .pill-label-results { white-space: normal; line-height: 1.3; }
    .final-header {
        margin-top: 100px;
    }
    .feedback-top-visual{
        margin-top:20px;
    }
    /* 8. Feedback grid: una columna */
    .feedback-grid {
        grid-template-columns: 1fr !important;
        margin-top: 16px !important;
    }

    /* 9. Sección compartir: columna única centrada */
    .final-share-grid {
        flex-direction: column !important;
        gap: 12px !important;
        align-items: center !important;
    }

    /* 10. Mensaje de salida */
    .final-exit-section { margin: 16px auto 0; }

    /* 11. Logo FGE crédito dentro de las páginas de pregunta y resultado */
    .de-fge-credit-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        margin-top: 20px;
        padding: 10px 0 6px;
    }

    .de-fge-label {
        font-size: 10px;
        font-weight: 600;
        color: #203a75;
        letter-spacing: 0.05em;
        text-transform: uppercase;
    }

    .de-fge-credit-mobile img {
        height: 18px;
        width: auto;
    }
}

/* ── Ya completaste (Dilema Ético) ── */
body.dilema-etico .dilema-done-icon-wrap {
    background: rgba(255,230,50,.12);
    box-shadow: 0 0 0 6px rgba(255,230,50,.08);
}
body.dilema-etico .dilema-done-check {
    color: #ffe632;
}
body.dilema-etico .dilema-done-title {
    color: #ffe632;
}
body.dilema-etico .dilema-done-msg {
    color: #fff;
}

/* ── Chapita: nombre de empresa overlay ── */
.chapita-wrapper {
    position: relative;
    display: inline-block;
    line-height: 0;
}
.chapita-empresa-label {
    position: absolute;
    bottom: 22%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 50, 70, 0.80);
    color: #fff;
    padding: 3px 14px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: 0.04em;
    pointer-events: none;
    line-height: 1.6;
}