*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

body {
    background: #fff;
    line-height: 1.6;
    padding: 20px
}

.main-wrap {
    font-family: 'Montserrat', sans-serif;
    color: var(--text_color_classes_names);
    max-width: 900px;
    margin: 0 auto
}

.tx-grid {
    background-image: linear-gradient(rgba(124, 113, 131, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(124, 113, 131, 0.06) 1px, transparent 1px);
    background-size: 22px 22px
}

.tx-dark {
    background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 14px 14px
}

.vpro-btn {
    background: #F7A699 !important;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .2s
}

.vpro-btn:hover {
    opacity: .85
}

.section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--title_class_color);
    margin-bottom: 6px;
    margin-top: 32px;
    display: flex;
    align-items: center;
    gap: 10px
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1.5px;
    background: linear-gradient(to right, rgba(247, 166, 153, .7), transparent)
}

.section-sub {
    font-size: .85rem;
    color: var(--text_color_classes_names);
    margin-bottom: 16px
}

.section-secondary-title{
    font-size: .92rem;
    font-weight: 600;
    color: var(--title_class_color);
    margin-top: 24px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(4px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.vpro-header {
    background: #4D4B51;
    border-radius: 16px;
    padding: 36px 40px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 24px
}

.header-content {
    flex: 1
}

.header-label {
    display: block;
    color: #F7A699;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 10px
}

.header-title {
    color: #fff !important;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px
}

.header-accent {
    color: #F7A699
}

.header-icon-wrap {
    flex-shrink: 0;
    width: 108px;
    height: 108px;
    background: rgba(124, 113, 131, .25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center
}

.header-deco {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(124, 113, 131, .18);
    pointer-events: none
}

@media(max-width:480px) {
    .vpro-header {
        padding: 24px 20px;
        flex-wrap: wrap
    }

    .header-icon-wrap {
        width: 80px;
        height: 80px
    }
}

.docente-tip {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    text-align: start;
    background: #fde8e5;
    border-left: 4px solid #F7A699;
    border-radius: 0 12px 12px 0;
    padding: 16px 20px 16px 16px;
    margin: 24px 0
}

.dt-avatar {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #F7A699
}

.dt-avatar img{
    width: 100%;
}

.dt-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top
}

.dt-label {
    display: block;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #F7A699;
    margin-bottom: 4px
}

.dt-text {
    font-size: .88rem;
    color: #4D4B51 !important;
    line-height: 1.6;
    font-style: italic;
    margin: 0
} 

            .tab-nav {
                display: flex;
                gap: 8px;
                margin-bottom: 16px;
                flex-wrap: wrap
            }

            .tab-btn {
                padding: 8px 18px;
                border-radius: 20px;
                border: 2px solid #958a9b;
                background: transparent;
                font-family: 'Montserrat', sans-serif;
                font-size: .78rem;
                font-weight: 600;
                color: var(--text_color_classes_names);
                cursor: pointer;
                transition: all .2s;
            }

            .tab-btn.active, .tab-btn:hover {
                background: #F7A699;
                border-color: #F7A699;
                color: #4D4B51
            }

            .tab-panel {
                display: none;
                animation: fadeIn .3s ease;
                margin-top: 10px;
            }

            .tab-panel.active {
                display: block
            }

            .tab-content {
                background: var(--exam-boxes);
                border-radius: 12px;
                padding: 20px;
                border-left: 4px solid #F7A699
            }

            .tab-title {
                font-size: 1.1rem;
                font-weight: 700;
                color: #F7A699;
                margin-bottom: 10px
            }

            .tab-body {
                font-size: .88rem;
                line-height: 1.7;
                color: var(--exam-boxes-contrast-text) !important;
            }
            
            .tab-body p {
                color: var(--exam-boxes-contrast-text) !important;
            }

            .tab-body strong {
                color: #F7A699 !important;
            }

            .tab-body em {
                font-weight: 600;
                color: var(--exam-boxes-contrast-text) !important;
            }

            .tab-body ul {
                margin: 12px 0 0 20px
            }

            .tab-body li {
                margin-bottom: 6px
            }

.era-badge {
    display: inline-block;
    background: #fde8e5;
    color: #e87b6b;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 3px 12px;
    border-radius: 999px;
    margin-bottom: 8px
}

.era-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--title_class_color);
    margin-bottom: 12px
}

.era-body p {
    font-size: .88rem;
    line-height: 1.7;
    margin-bottom: 10px
}

.era-body ul {
    padding-left: 18px;
    margin-bottom: 10px
}

.era-body li {
    font-size: .86rem;
    line-height: 1.6;
    margin-bottom: 4px
}

.era-body strong {
    color: var(--standout-color-variation);
}

.era-body em {
    color: var(--text_color_classes_names);
}

.flip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 16px
}

.flip-card {
    perspective: 1000px;
    height: 260px;
    cursor: pointer;
    position: relative;
    width: 100%
}

.flip-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d
}

.flip-card.flipped .flip-inner {
    transform: rotateY(180deg)
}

.flip-front,
.flip-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    overflow: hidden
}

.flip-front {
    background: #fde8e5;
    border: 2px solid #F7A699;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat
}

.flip-front::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0; 
    bottom: 0;
    background: rgba(253, 232, 229, 0.65);
    z-index: 1
}

.flip-back {
    background: #4D4B51;
    color: #fff;
    transform: rotateY(180deg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.flip-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #4D4B51;
    text-align: center;
    line-height: 1.2
}

.flip-origin {
    font-size: 0.8rem;
    font-weight: 600;
    color: #7C7183;
    text-align: center;
    margin-top: 6px;
    line-height: 1.2
}

.flip-desc {
    font-size: 0.68em;
    line-height: 1.6;
    color: var(--exam-boxes-contrast-text) !important;
    margin-bottom: 10px;
    opacity: 0.95
}

.flip-quote {
    font-size: 0.62em;
    font-style: italic;
    border-left: 3px solid #F7A699;
    padding: 0;
    padding-left: 10px;
    margin: 0;
    line-height: 1.5;
    color: #f5d5d0
}

@media(max-width:650px) {
    .flip-desc {
        font-size: 14px;
    }

    .flip-quote {
        font-size: 12px;
    }
}

@media(max-width:560px) {
    .flip-card {
        height: 250px
    }
}

@media(max-width:360px) {
    .flip-grid {
        grid-template-columns: 1fr
    }
}

.dato-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
    margin: 8px 0 24px
}

.dato-card {
    background: var(--exam-boxes);
    color: #fff;
    padding: 20px;
    border-radius: 12px;
    border-top: 4px solid #F7A699
}

.dato-icon {
    font-size: 1.3rem;
    margin-bottom: 8px
}

.dato-ttl {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #F7A699;
    margin-bottom: 8px
}

.dato-card p {
    font-size: .86rem;
    color: var(--exam-boxes-contrast-text) !important;
    line-height: 1.6;
    opacity: .9
}

@media(max-width:560px) {
    .dato-grid {
        grid-template-columns: 1fr
    }
}

.resumen-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(77, 75, 81, .10);
    padding: 24px;
    margin-top: 8px
}

.resumen-card ol {
    counter-reset: kp;
    list-style: none;
    padding: 0
}

.resumen-card li {
    counter-increment: kp;
    padding: 10px 0 10px 40px;
    position: relative;
    border-bottom: 1px solid #f0ebe5;
    font-size: .88rem;
    line-height: 1.6
}

.resumen-card li:last-child {
    border-bottom: none
}

.resumen-card li::before {
    content: counter(kp, '0'decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 10px;
    font-size: .68rem;
    font-weight: 800;
    color: #F7A699;
    width: 28px;
    text-align: center;
    background: #fde8e5;
    border-radius: 6px;
    padding: 2px 0
}



.quiz-section {
    background: var(--exam-boxes);
    border-radius: 16px;
    padding: 36px 32px;
    margin-top: 40px
}

.quiz-header {
    text-align: center;
    margin-bottom: 28px
}

.quiz-label {
    display: block;
    color: #F7A699;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: 8px
}

.quiz-title {
    color: #fff;
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 700;
    margin-bottom: 6px
}

.quiz-subtitle {
    color: var(--exam-boxes-contrast-text) !important;
    font-size: .82rem;
    font-weight: 300
}

.quiz-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px
}

.qp-track {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, .15);
    border-radius: 2px;
    overflow: hidden
}

.qp-fill {
    height: 100%;
    background: #F7A699;
    border-radius: 2px;
    transition: width .4s ease
}

.qp-label {
    color: rgba(255, 255, 255, .6);
    font-size: .75rem;
    font-weight: 600;
    white-space: nowrap
}

.quiz-card {
    background: var(--background_some_secondary_objects);
    border-radius: 12px;
    padding: 24px 28px
}

.q-text {
    font-size: .95rem;
    font-weight: 600;
    color: var(--exam-boxes-contrast-text);
    line-height: 1.55;
    margin-bottom: 20px
}

.q-options {
    display: flex;
    flex-direction: column;
    gap: 10px
}

.q-opt {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--exam-quiz-box-bg);
    border: 2px solid rgba(124, 113, 131, .2);
    border-radius: 10px;
    padding: 12px 16px;
    cursor: pointer;
    font-size: .85rem;
    font-weight: 500;
    color: #4D4B51;
    transition: all .15s;
    text-align: left;
    font-family: 'Montserrat', sans-serif;
    width: 100%
}

.q-opt:hover:not(.answered){
    color: #4D4B51;
    border-color: var(--percentage_callout);
    background-color: var(--exam-quiz-box-bg);
}

.q-opt.correct {
    border-color: #27ae60;
    background: #eafaf1;
    color: #1e8449;
    pointer-events: none
}

.q-opt.wrong {
    border-color: #e74c3c;
    background: #fdf0ef;
    color: #c0392b;
    pointer-events: none
}

.q-opt.reveal {
    border-color: #27ae60;
    background: #eafaf1;
    color: #1e8449;
    pointer-events: none
}

.q-opt.answered {
    pointer-events: none;
    opacity: .65
}

.q-opt-marker {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: .7rem;
    font-weight: 700
}

.q-opt.correct .q-opt-marker::after,
.q-opt.reveal .q-opt-marker::after {
    content: '\2713'
}

.q-opt.wrong .q-opt-marker::after {
    content: '\2717'
}

.q-feedback {
    margin-top: 14px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: .82rem;
    line-height: 1.5;
    display: none
}

.q-feedback.show {
    display: block
}

.q-feedback.ok {
    background: #eafaf1;
    color: #1e8449;
    border-left: 3px solid #27ae60
}

.q-feedback.fail {
    background: #fdf0ef;
    color: #c0392b;
    border-left: 3px solid #e74c3c
}

.q-next {
    display: none;
    margin-top: 16px;
    width: 100%
}

.q-next.show {
    display: block
}

.quiz-result {
    text-align: center;
    color: #fff;
    display: none
}

.qr-score {
    font-size: 3.5rem;
    font-weight: 700;
    color: #F7A699;
    line-height: 1;
    margin-bottom: 8px
}

.qr-msg {
    font-size: .95rem;
    color: var(--exam-boxes-contrast-text) !important;
    font-style: italic;
    margin-bottom: 20px
}

.quiz-section .docente-tip {
    border-left-color: #F7A699;
    border-radius: 0 12px 12px 0
}

.quiz-section .dt-label {
    color: #F7A699
}

.quiz-section .dt-text {
    color: rgba(255, 255, 255, .85)
}


@media(max-width:560px) {
    .quiz-section {
        padding: 24px 16px
    }

    .quiz-card {
        padding: 18px 16px
    }
}

.flip-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    opacity: 0.22;
    border-radius: 10px
}

.flip-front-text, .flip-text-area {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: #ffd9d975;
    padding: 10px
}

.flip-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    color: var(--text_color_classes_names);
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase
}
.flip-front-text .flip-hint, .flip-text-area .flip-hint {
    color: grey;
}

.flip-hint svg {
    stroke: var(--text_color_classes_names) !important;
    flex-shrink: 0;
    opacity: .8
}
.flip-front-text .flip-hint svg, .flip-text-area .flip-hint svg {
    stroke: grey !important;
}



@keyframes tapPulse {

    0%,
    100% {
        transform: scale(1) translateY(0)
    }

    50% {
        transform: scale(1.15) translateY(-2px)
    }
}

.flip-hint svg {
    animation: tapPulse 1.6s ease-in-out infinite
}

.cuaderno-grid {
    color: #4D4B51;
    background-color: #fdfcfb;
    background-image:
        linear-gradient(rgba(100, 130, 200, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(100, 130, 200, 0.12) 1px, transparent 1px),
        linear-gradient(rgba(100, 130, 200, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(100, 130, 200, 0.05) 1px, transparent 1px);
    background-size: 30px 30px, 30px 30px, 6px 6px, 6px 6px;
    background-position: -1px -1px, -1px -1px, -1px -1px, -1px -1px;
}

.cuaderno-grid ol{
    padding: 0 !important;
    margin: 0 !important;
    list-style: none;
}


.resumen-card li {
    counter-increment: kp;
    padding: 14px 0 14px 40px;
    position: relative;
    border-bottom: none;
    font-size: .88rem;
    line-height: 1.6;
    list-style: none;
}

.resumen-card li+li {
    border-top: 1.5px dashed rgba(100, 130, 200, 0.25)
}

.resumen-card li:last-child {
    border-bottom: none
}

.resumen-card li::before {
    content: counter(kp, '0'decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 14px;
    font-size: .68rem;
    font-weight: 800;
    color: #F7A699;
    width: 28px;
    text-align: center;
    background: #fde8e5;
    border-radius: 6px;
    padding: 2px 0
}

.li-bullet {
    display: inline-block;
    margin-right: 8px;
    font-size: 1rem;
    vertical-align: middle;
    line-height: 1
}