@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

:root {
    --title: #734d3f;
    --primary: #295E73;
    --secondary: #467302;
}

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

html {
    font-size: 18px;
}

body {
    font-size: 1rem;
    font-family: "Nunito", sans-serif;
    width: 100%;
    min-height: 100vh;
    padding: 30px 20px;
    background-color: #ffffff;
    background-image: url('../assets/bg1.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0);
    }
    
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in {
    animation: fadeIn 600ms ease-in-out;
}

.container {
    max-width: 100%;
    width: 100%;
    min-height: calc(100vh - 60px);
    margin-left:auto;
    margin-right: auto;
    padding: 30px;
    border-radius: 30px;
    display: grid;
    grid-template-rows: auto 1fr;
    grid-template-columns: 100%;
    background-color: hsla(0, 0%, 100%, 0.7);
    backdrop-filter: blur(4px);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.title {
    font-size: 3rem;
    font-weight: 1000;
    text-transform: uppercase;
    text-align: center;
    color: var(--title);
    margin-bottom: 30px;
    text-shadow: 1px 2px 1px #291812;
}

.logo {
    max-width: 300px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 30px;
}

@media (max-width: 620px) {
    .title {
        font-size: 2.2rem;
    }
}

.content-video {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
}

.content-audio {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.audio {
    display: block;
    transform: scale(1.2);
    width: 80%;
    max-width: 600px;
    border-radius: 20px;
    margin: 40px auto;
}

.intro__text,
.listen-again__text {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 30px;
}

.intro,
.intro-audio,
.one,
.two,
.video-intro {
    width: 600px;
    max-width: 100%;
    text-align: center;
}

.one__title,
.two__title {
    font-size: 2rem;
    font-weight: 900;
}

.one__title{
    color: var(--primary);
}

.two__title {
    color: var(--secondary);
}

.decisions {
    display: block;
}

.decisions__text {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 30px;
}

.decisions-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding-top: 20px;
    padding-bottom: 30px;
}

.intro-audio__img,
.one__img,
.two__img {
    max-width: 100%;
    width: 200px;
    margin-bottom: 30px;
}

.button {
    max-width: 100%;
    width: 200px;
    font-size: 1.2rem;
    text-align: center;
    padding: 15px;
    border: none;
    border-radius: 15px;
    background-color: #333;
    color: #fff;
    transition: all 0.3s;
    font-family: "Nunito", sans-serif;
    font-weight: 700;
}

.button:hover {
    cursor: pointer;
    transform: scale(1.2);
}

.button--one {
    background-color: var(--primary);
}

.button--two {
    background-color: var(--secondary);
}

.button--play,
.button--listen-again,
.button--submit {
    background-color: #0D8CE8;
    border-radius: 25px;
}

.button--listen-again {
    width: 230px;
}

.button--submit {
    width: 200px;
    padding: 12px 20px;
    font-size: 1.1rem;
    margin-top: 20px;
}

.button__img {
    max-width: 100%;
    width: 80%;
    margin-bottom: 10px;
}

.button__text {
    display: block;
    text-align: center;
}

.listen-again {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.d-none {
    display: none !important;
}

/* VIDEO INTERACTIVO STYLES */

.vimeo-container {
    width: 100%;
    max-width: 1100px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.video-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    position: relative;
}

.activity-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    margin: 20px 0;
}

.activity-content {
    background-color: white;
    border-radius: 20px;
    padding: 40px 30px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    overflow-y: auto;
}

.activity-content--embed {
    width: 100%;
    max-width: 1100px;
    aspect-ratio: 16 / 9;
    padding: 0;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    background: white;
}

/* En móviles/tablets, expandir verticalmente para las actividades REDI */
@media (max-width: 768px) {
    .activity-content--embed {
        aspect-ratio: auto;
        height: 80vh;
        max-height: 80vh;
    }
}

.activity-content--embed .activity-header {
    display: none;
}


.activity-header {
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 15px;
}

.activity-title {
    color: var(--title);
    font-size: 1.8rem;
    font-weight: 900;
    margin: 0;
}

.activity-body {
    margin: 30px 0;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
}

.activity-body--embed {
    margin: 0;
    flex: 1;
    min-height: 0;
    height: 100%;
}

.activity-frame {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0;
    background: #fff;
}

.activity-body label {
    display: block;
    margin: 15px 0;
    cursor: pointer;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    transition: all 0.3s;
    background-color: #f9f9f9;
}

.activity-body label:hover {
    border-color: var(--primary);
    background-color: #f0f5ff;
}

.activity-body input[type="radio"],
.activity-body input[type="checkbox"] {
    margin-right: 10px;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.activity-body input[type="text"],
.activity-body textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-family: "Nunito", sans-serif;
    font-size: 1rem;
}

.activity-body input[type="text"]:focus,
.activity-body textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 5px rgba(41, 94, 115, 0.3);
}

.activity-footer {
    text-align: center;
    margin-top: 30px;
    border-top: 3px solid var(--primary);
    padding-top: 20px;
}

.completion-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border-radius: 20px;
    padding: 50px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    text-align: center;
}

.completion-content h2 {
    color: var(--secondary);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.completion-content p {
    color: #555;
    font-size: 1.2rem;
    line-height: 1.5;
}

/* ERROR MESSAGE */
.error-message {
    color: #d32f2f;
    margin-top: 15px;
    padding: 12px;
    background-color: #ffebee;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

/* SUCCESS MESSAGE */
.success-message {
    color: #388e3c;
    margin-top: 15px;
    padding: 12px;
    background-color: #e8f5e9;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

/* COMPLETION SCREEN */
.completion-screen {
    animation: fadeIn 800ms ease-in-out;
}

.completion-screen svg {
    animation: fadeIn 1000ms ease-in-out 300ms backwards;
}

.completion-screen h2 {
    animation: fadeIn 800ms ease-in-out 500ms backwards;
}

.completion-screen p {
    animation: fadeIn 800ms ease-in-out 700ms backwards;
}

.completion-screen .button {
    animation: fadeIn 800ms ease-in-out 900ms backwards;
}

@keyframes checkmark {
    0% {
        stroke-dashoffset: 100;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

.completion-screen svg path {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: checkmark 600ms ease-in-out 800ms forwards;
}



/*------------------------------------
   ?UTILITIES
------------------------------------*/

.d-none {
    display: none !important;
}

.text-center {
    text-align: center !important;
}