:root {
    --hunter-blue: #004f9f;
    --hunter-yellow: #ffcd1c;
    --hunter-white: #ffffff;
    --text-dark: #1a1a1a;
    --gray-bg: #f0f4f8;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--gray-bg);
    color: var(--text-dark);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-container {
    background: var(--hunter-white);
    width: 100%;
    max-width: 600px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

@media (min-width: 600px) {
    .app-container {
        height: 90vh;
        border-radius: 20px;
    }
}

.main-header {
    background-color: var(--hunter-blue);
    padding: 1rem;
    color: var(--hunter-white);
    text-align: center;
    z-index: 10;
}

.logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.temp-logo {
    background: var(--hunter-yellow);
    color: var(--hunter-blue);
    font-weight: 800;
    padding: 5px 10px;
    border-radius: 5px;
}

.screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 2rem;
    transition: opacity 0.3s ease;
    width: 100%;
    overflow-y: auto;
}

.hidden {
    display: none;
    opacity: 0;
}

.active {
    display: flex;
    opacity: 1;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1,
h2 {
    color: var(--hunter-blue);
    margin-bottom: 1rem;
    text-align: center;
}

p {
    margin-bottom: 1.5rem;
    text-align: center;
    line-height: 1.6;
}

/* CAJA DE CONTENIDO CENTRADA */
.content-box {
    width: 100%;
    max-width: 500px;
    background: white;
    padding: 30px 20px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cta-box {
    width: 100%;
    max-width: 500px;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* FORMULARIO ESTUDIANTE */
.student-form {
    width: 100%;
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
    margin-bottom: 15px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--hunter-blue);
    margin-bottom: 5px;
}

.form-group input {
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--hunter-yellow);
}

/* BOTONES */
.btn-primary {
    background-color: var(--hunter-blue);
    color: var(--hunter-white);
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    width: 100%;
    max-width: 280px;
    margin: 10px auto;
    transition: transform 0.2s, background 0.2s;
}

.btn-primary:hover {
    background-color: #003a75;
    transform: scale(1.02);
}

.btn-secondary {
    background-color: transparent;
    color: var(--hunter-blue);
    border: 2px solid var(--hunter-blue);
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    max-width: 280px;
    margin: 10px auto;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background-color: #f0f8ff;
}

/* QUIZ STYLES */
.progress-container {
    width: 100%;
    height: 6px;
    background-color: #e0e0e0;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
}

.progress-bar {
    height: 100%;
    background-color: var(--hunter-yellow);
    width: 0%;
    transition: width 0.4s ease;
    box-shadow: 0 0 10px rgba(255, 205, 28, 0.5);
}

.question-card {
    width: 100%;
    max-width: 500px;
    text-align: center;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn-back {
    background: transparent;
    border: none;
    color: var(--hunter-blue);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    margin-bottom: 15px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: transform 0.2s;
}

.btn-back:hover {
    transform: translateX(-5px);
}

/* CENTRADO DE OPCIONES */
.options-grid {
    display: grid;
    gap: 15px;
    width: 100%;
    max-width: 350px;
    margin: 20px auto 0 auto;
}

.btn-option {
    background: white;
    border: 2px solid #ddd;
    padding: 15px;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-option:hover {
    border-color: var(--hunter-yellow);
    background-color: #fffdf0;
    transform: translateY(-2px);
}

.btn-option:active {
    background-color: var(--hunter-blue);
    color: white;
    border-color: var(--hunter-blue);
    transform: translateY(0);
}

.btn-option.selected {
    background-color: var(--hunter-blue);
    color: white;
    border-color: var(--hunter-blue);
}

/* BARRAS DE RESULTADOS */
.results-list {
    width: 100%;
    margin-bottom: 10px;
}

.result-item {
    margin-bottom: 15px;
    width: 100%;
}

.result-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 0.9rem;
}

.bar-bg {
    width: 100%;
    background: #e0e0e0;
    border-radius: 10px;
    height: 15px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--hunter-blue);
    width: 0%;
    transition: width 1s ease-out;
}

.result-item:first-child .bar-fill {
    background: var(--hunter-yellow);
}