/* Dilemas Frontend Styles - Premium Design */
:root {
    --primary-color: #2c3e50;
    --accent-color: #3498db;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --bg-light: #f4f7f6;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
    --radius: 12px;
}

body.single-dilemas {
    background: var(--bg-light);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--primary-color);
}

.dilema-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

.dilema-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
}

.welcome-box h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.welcome-box p {
    color: #7f8c8d;
    margin-bottom: 30px;
}

.email-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
}

.email-form input[type="email"] {
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.email-form input[type="email"]:focus {
    border-color: var(--accent-color);
}

.email-form button {
    padding: 15px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.email-form button:hover {
    background: #2980b9;
}

/* Template Specific Layouts */

/* 1. Angel o Demonio - Duel Style */
.game-angel_demonio .options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.angel-box {
    background: #e1f5fe;
    border: 2px solid #81d4fa;
    color: #0277bd;
}

.demonio-box {
    background: #ffebee;
    border: 2px solid #ef9a9a;
    color: #c62828;
}

.option-box {
    padding: 30px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: transform 0.2s;
}

.option-box:hover {
    transform: scale(1.05);
}

/* 2. Pasapalabra - Circular Style */
.game-pasapalabra .rosco-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 40px auto;
}

/* 3. Millonario - Classic Quiz */
.game-millonario .quiz-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
    text-align: left;
}

.quiz-option {
    background: #2d3436;
    color: #fab1a0;
    padding: 15px 25px;
    border-radius: 50px;
    border: 2px solid #fab1a0;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.quiz-option span {
    color: #fdcb6e;
    font-weight: bold;
    margin-right: 15px;
}

.hidden {
    display: none;
}

/* ── Star rating compartido (Trivia & Clave) ── */
.game-star-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 10px 0;
}
.game-star-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.game-star-btn span {
    font-size: 2.2rem;
    color: #cbd5e1;
    font-variation-settings: 'FILL' 0;
    transition: color 0.15s, font-variation-settings 0.15s;
}
.game-star-btn:hover span,
.game-star-btn.active span {
    color: #FBBF24;
    font-variation-settings: 'FILL' 1;
}
.game-star-btn:hover { transform: scale(1.15); }

/* ── Mensaje de inicio configurable por cliente ── */
.mensaje-inicio-block {
    width: 100%;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    margin-top: 5px;
    margin-bottom: 0;
}
.mensaje-inicio-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
}
.mensaje-inicio-icon {
    font-size: 20px;
    color: #3b82f6;
    flex-shrink: 0;
    line-height: 1;
}
.mensaje-inicio-texto {
    font-size: 10px;
    line-height: 1.35;
    color: #1e3a5f;
    margin: 0;
}

/* ── Consent block (datos compartidos con la organización) ── */
.consent-block {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}
.consent-notice {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 10px 10px;
    margin-top: 5px;
}
.consent-notice-icon {
    font-size: 20px;
    color: #3b82f6;
    flex-shrink: 0;
    line-height: 1.4;
}
.consent-notice-text {
    font-size: 0.6rem;
    color: #1e3a5f;
    line-height: 1.20;
    margin: 0;
}
.consent-check-label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    cursor: pointer;
    background: #fff;
    border: 1.5px solid #d0dae8;
    border-radius: 10px;
    padding: 10px 14px;
    transition: border-color .2s;
}
.consent-check-label:hover { border-color: #5636e3; }
.consent-check-label.is-checked { border-color: #5636e3; background: #f5f3ff; }
.consent-checkbox {
    flex-shrink: 0;
    margin-top: 2px;
    width: 17px !important;
    height: 17px !important;
    min-width: 17px;
    accent-color: #5636e3;
    cursor: pointer;
}
.consent-check-text {
    font-size: 0.7rem;
    color: #1e293b;
    line-height: 1.2;
}
.consent-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    animation: shake 0.4s ease-in-out;
}

/* ── Language selector: shift to left when consent block is active ── */
#welcome-box.has-consent .lang-row-integrated {
    left: 20px;
    transform: none;
}

/* ── Ya completaste este desafío ── */
.dilema-already-done {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 36px 24px 32px;
    text-align: center;
    animation: doneFadeIn .45s cubic-bezier(0.22,1,0.36,1) both;
}
@keyframes doneFadeIn {
    from { opacity: 0; transform: translateY(14px) scale(.96); }
    to   { opacity: 1; transform: none; }
}
.dilema-done-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.dilema-done-check {
    width: 52px;
    height: 52px;
}
.dilema-done-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.01em;
}
.dilema-done-msg {
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.5;
    max-width: 320px;
    opacity: 0.82;
}
