:root {
    /*--primary-color: #6f42c1;*/
    --primary-color: #4eaeaa;
    --secondary-color: #a98eda;
    --accent-color: #ff6b6b;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --success-color: #20c997;
    /*--positive-color: #667eea;*/
    --positive-color: #ba667d;
}

body {
    background-color: #f5f7fb;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #495057;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.quiz-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin: 2rem auto;
    max-width: 800px;
    position: relative;
    overflow: hidden;
}

/* Estilos para la pantalla de introducción */
.intro-screen {
    text-align: center;
}

.intro-screen header {
    margin-bottom: 2rem;
    /*background: linear-gradient(135deg, rgb(102, 126, 234) 0%, rgb(118, 75, 162) 100%);*/
    background: linear-gradient(135deg, rgba(78, 174, 170, 0.70) 0%, rgb(10, 134, 130) 100%);
    color: white;
    padding: 30px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.intro-screen h1 {
    font-family: 'Montserrat', sans-serif;
    /*color: var(--primary-color);*/
    font-weight: 700;
    margin-bottom: 0.5rem;
}


.fa-brain::before {
  content: "\f5dc";
  color: #ff8fc7!important;
}

.subtitle {
    /*color: #6c757d;*/
    font-size: 1.2rem;
}

.intro-section {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    text-align: left;
}

.intro-content {
    flex: 1;
    min-width: 300px;
}

.intro-content h2 {
    /*color: var(--dark-color);*/
    color: var(--positive-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-size: 23px;
}

.intro-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.cta-box {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    text-align: center;
    border-left: 4px solid var(--primary-color);
}

.cta-box p {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.cta-box p i {
    color: red;
}

.intro-image {
    flex: 1;
    text-align: center;
    min-width: 250px;
}

.intro-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Estilos del quiz (se mantienen iguales) */
.header {
    text-align: center;
    margin-bottom: 2rem;
}

.header h1 {
    font-family: "Montserrat", sans-serif;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.header p {
    color: #6c757d;
    font-size: 1.1rem;
}

.progress-container {
    margin-bottom: 2.75rem;
}

.progress {
    height: 12px;
    border-radius: 10px;
    background-color: #e9ecef;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, rgba(78, 174, 170, 0.70) 0%, rgb(10, 134, 130) 100%);
    transition: width 0.5s ease;
}

.question-counter {
    text-align: right;
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.carousel-item {
    padding: 1.5rem;
}

.question-text {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    line-height: 1.5;
}

.options-container {
    margin-bottom: 2rem;
}

.form-check {
    padding-left: 0;
    margin-bottom: 1rem;
}

.form-check-input {
    display: none;
}

.form-check-label {
    display: block;
    padding: 1rem 1.5rem;
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-check-label:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
}

.form-check-input:checked + .form-check-label {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
}

.btn {
    border-radius: 50px;
    padding: 0.7rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-help {
    position: absolute;
    /*top: 0.5rem;*/
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: white;
    border: none;
    z-index: 10;
    margin-top: 10px;
}

.btn-help:hover {
    background-color: var(--secondary-color);
    transform: rotate(15deg);
}

.modal-content {
    border-radius: 15px;
    border: none;
}

.modal-header {
    background-color: var(--primary-color);
    color: white;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.results-container {
    text-align: center;
    padding: 2rem;
}

.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2.5rem;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(111, 66, 193, 0.3);
}

.result-message {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.result-description {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
}

.floating-icon {
    position: absolute;
    opacity: 0;
    z-index: 0;
}

.icon-1 {
    top: 10%;
    left: 5%;
    font-size: 5rem;
    color: var(--primary-color);
}

.icon-2 {
    bottom: 10%;
    right: 5%;
    font-size: 5rem;
    color: var(--secondary-color);
}

/* Efectos para el círculo de puntuación */
.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2.5rem;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

.score-circle::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    z-index: -1;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.score-circle::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border-radius: 50%;
    background: inherit;
    z-index: -1;
}

.score-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    box-shadow: 0 10px 20px rgba(40, 167, 69, 0.3);
}

.score-warning {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    box-shadow: 0 10px 20px rgba(255, 193, 7, 0.3);
}

.score-danger {
    background: linear-gradient(135deg, #dc3545, #e83e8c);
    box-shadow: 0 10px 20px rgba(220, 53, 69, 0.3);
}

.pulse {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(0, 0, 0, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
}

/* Efectos de aparición para el mensaje de resultado */
.result-message {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1.8s forwards 1.2s;
    color: var(--positive-color);
    font-weight: bold;
    letter-spacing: 0.20px;
    font-family: 'Montserrat', sans-serif;
}

.result-description {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 2.0s forwards 2.5s;
    color: #000000e0;
    letter-spacing: 0.15px;
}

#restart-btn {
    opacity: 0;
    animation: fadeIn 0.8s forwards 1.1s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Efecto de confeti para resultados exitosos */
.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    opacity: 0.7;
    border-radius: 0;
}

/* Efecto de partículas para el fondo */
/*.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.particle {
    position: absolute;
    background-color: rgba(111, 66, 193, 0.2);
    border-radius: 50%;
}*/

/* Animaciones para partículas y confeti */
@keyframes fall {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
    }
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(-20px) rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 0.7;
    }
}

@keyframes fadeOut {
    from {
        opacity: 0.7;
    }
    to {
        opacity: 0;
    }
}

.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
}


footer {
    margin-top: auto;
    text-align: center;
    padding: 1.5rem;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .intro-section {
        flex-direction: column;
        padding: 0px 20px;
    }
    
    .intro-content,
    .intro-image,
    #start-quiz,
    #restart-btn {
        width: 100%;
    }

    .btn-help {
        /*top: 0.5rem;*/
        right: 0.5rem;
    }

    .quiz-container {
        padding: 1rem 0;
    }
    
    .results-container,
    .result-description {
        padding: 1rem 0.5rem;
    }

    .progress-container,
    .navigation-buttons,
    .carousel-item.active {
      padding: 0px 20px;
    }

    h1 {
      /*text-align: left;*/
      padding: 0px 0px 0px 15px;
    }    
}
.score-container{
    margin-bottom:30px;
}

.score-success {
  background-image: url("/assets/img/success.jpg");
  width: 100%;
  height: 360px;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}
.score-warning {
  background-image: url("/assets/img/warning.jpg");
  width: 100%;
  height: 360px;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}
.score-danger {
  background-image: url("/assets/img/danger.jpg");
  width: 100%;
  height: 360px;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}