:root {
    --bg1: #eef7ff;
    --bg2: #dff4f0;
    --card: rgba(255, 255, 255, 0.88);
    --text: #17324d;
    --muted: #62819b;
    --primary: #2b8cff;
    --primary-dark: #1566c7;
    --secondary: #1ec8a5;
    --shadow: 0 18px 50px rgba(23, 50, 77, 0.14);
    --radius: 24px;
}

.contenido {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;

    * {
        box-sizing: border-box;
        font-family: 'Poppins';
    }

    .app {
        width: 100%;
        max-width: 860px;
    }

    .card {
        background: var(--card);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.6);
        border-radius: var(--radius);
        box-shadow: var(--shadow);
        overflow: hidden;
    }

    .header {
        padding: 26px 30px 16px;
    }

    .eyebrow {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-size: 0.85rem;
        font-weight: 700;
        color: var(--primary-dark);
        background: rgba(43, 140, 255, 0.1);
        padding: 8px 12px;
        border-radius: 999px;
        margin-bottom: 14px;
    }

    h2 {
        margin: 0 0 10px;
        font-size: clamp(1.8rem, 3vw, 2.7rem);
        line-height: 1.1;
    }

    .subtitle {
        margin: 0;
        color: var(--muted);
        font-size: 1rem;
        line-height: 1.5;
    }

    .progress-wrap {
        padding: 0 30px 18px;
    }

    .progress-meta {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 0.92rem;
        color: var(--muted);
        margin-bottom: 10px;
    }

    .progress {
        width: 100%;
        height: 12px;
        background: rgba(43, 140, 255, 0.12);
        border-radius: 999px;
        overflow: hidden;
    }

    .progress-bar {
        height: 100%;
        width: 0%;
        background: linear-gradient(90deg, var(--primary), var(--secondary));
        border-radius: inherit;
        transition: width 0.35s ease;
    }

    .content {
        display: grid;
        grid-template-columns: 1.05fr 1fr;
        gap: 22px;
        padding: 0 30px 30px;
    }

    .photo-box {
        background: linear-gradient(180deg, #f8fdff, #edf7ff);
        border-radius: 22px;
        overflow: hidden;
        min-height: 360px;
        border: 1px solid rgba(23, 50, 77, 0.06);
        padding: 20px;
        text-align: center;
    }

    .photo-box img {
        /*display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;*/
        margin: auto;
        padding-bottom: 10px;
        width: 100%;
        max-width: 307px;
    }
    .photo-box span {
        font-weight: 700;
        font-size:1.1em;
        display: block;
    }

    .question-panel {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 18px;
    }

    .question {
        font-size: clamp(1.35rem, 2vw, 1.85rem);
        font-weight: 800;
        line-height: 1.2;
        margin: 0;
    }

    .answers {
        display: grid;
        gap: 14px;
    }

    .answer-btn {
        width: 100%;
        border: none;
        border-radius: 18px;
        padding: 18px 18px;
        text-align: left;
        cursor: pointer;
        color: var(--text);
        background: white;
        border: 1px solid rgba(23, 50, 77, 0.08);
        box-shadow: 0 10px 24px rgba(23, 50, 77, 0.08);
        transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    }

    .answer-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 30px rgba(23, 50, 77, 0.12);
        border-color: rgba(43, 140, 255, 0.35);
    }

    .answer-letter {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-weight: 800;
        margin-right: 12px;
        color: white;
        background: linear-gradient(135deg, var(--primary), var(--secondary));
        flex: 0 0 auto;
    }

    .answer-inner {
        display: flex;
        align-items: center;
    }

    .answer-text {
        font-size: 1rem;
        line-height: 1.45;
        font-weight: 600;
    }

    .footer {
        padding: 30px;
        color: var(--muted);
        font-size: 0.92rem;
    }

    .result {
        padding: 32px 30px 34px;
        text-align: center;
    }

    .result-badge {
        display: inline-block;
        padding: 8px 14px;
        border-radius: 999px;
        background: rgba(30, 200, 165, 0.12);
        color: #0a8e73;
        font-weight: 700;
        margin-bottom: 16px;
    }

    .result h2 {
        margin: 0 0 14px;
        font-size: clamp(2rem, 3.5vw, 3rem);
        line-height: 1.1;
    }

    .result p {
        margin: 0 auto 12px;
        max-width: 650px;
        font-size: 1.05rem;
        color: var(--muted);
        line-height: 1.6;
    }

    .score {
        margin: 22px auto;
        display: inline-flex;
        gap: 14px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .pill {
        background: white;
        border: 1px solid rgba(23, 50, 77, 0.08);
        border-radius: 999px;
        padding: 10px 16px;
        font-weight: 700;
        box-shadow: 0 10px 24px rgba(23, 50, 77, 0.08);
    }

    .restart-btn {
        border: none;
        border-radius: 999px;
        padding: 14px 22px;
        font-size: 1rem;
        font-weight: 800;
        color: white;
        background: linear-gradient(135deg, var(--primary), var(--secondary));
        cursor: pointer;
        box-shadow: 0 14px 26px rgba(43, 140, 255, 0.24);
    }
}


@media (max-width: 760px) {
    .contenido .content {
        grid-template-columns: 1fr;
        padding: 0 15px 20px;
    }

    .photo-box {
        min-height: 250px;
    }

    .header,
    .progress-wrap,
    .content,
    .footer,
    .result {
        padding-left: 20px;
        padding-right: 20px;
    }
}