/* Estilos específicos para el Quiz */

/* Hero del Quiz */
.quiz-hero {
    background: linear-gradient(135deg, var(--color-primario) 0%, #2c0a0a 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.quiz-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.quiz-hero__subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.quiz-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
}

.stat {
    text-align: center;
}

.stat__number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-acento);
    margin-bottom: 0.5rem;
}

.stat__label {
    font-size: 1rem;
    opacity: 0.8;
}

.btn--large {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn--large:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(71, 11, 11, 0.3);
}

/* Contenedor del Quiz */
.quiz-container {
    padding: 3rem 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.quiz-progress {
    margin-bottom: 2rem;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--color-borde);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primario), var(--color-acento));
    border-radius: 3px;
    transition: width 0.5s ease;
    width: 0%;
}

.progress-text {
    font-size: 1rem;
    color: var(--color-texto);
    font-weight: 500;
}

/* Tarjeta del Quiz */
.quiz-card {
    background: white;
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: var(--sombra-suave);
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    animation: slideIn 0.5s ease-out;
}

.quiz-question {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--color-texto);
    font-weight: 600;
}

.quiz-answers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.quiz-answer {
    background: var(--color-fondo);
    border: 2px solid var(--color-borde);
    border-radius: 0.75rem;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: left;
}

.quiz-answer:hover {
    border-color: var(--color-primario);
    background: rgba(71, 11, 11, 0.05);
    transform: translateY(-2px);
}

.quiz-answer.selected {
    border-color: var(--color-primario);
    background: linear-gradient(135deg, var(--color-primario), #2c0a0a);
    color: white;
}

.quiz-answer .answer-icon {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

/* Resultados */
.quiz-results {
    padding: 3rem 0;
    background: var(--color-fondo);
}

.results-celebration {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.results-celebration h2 {
    font-size: 2.5rem;
    color: var(--color-primario);
    margin-bottom: 1rem;
    animation: bounce 1s ease-out;
}

.confetti {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.confetti::before,
.confetti::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--color-acento);
    animation: confettifall 3s linear infinite;
}

.confetti::before {
    left: 10%;
    animation-delay: 0s;
}

.confetti::after {
    left: 90%;
    animation-delay: 1s;
    background: var(--color-primario);
}

/* Revelación del Equipo */
.team-reveal {
    text-align: center;
    margin-bottom: 3rem;
}

.team-badge {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem auto;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(71, 11, 11, 0.2);
    animation: zoomIn 0.8s ease-out;
}

.team-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.team-name {
    font-size: 2.2rem;
    color: var(--color-primario);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.team-location {
    font-size: 1.2rem;
    color: var(--color-texto);
    opacity: 0.7;
}

/* Detalles del Equipo */
.team-details {
    max-width: 800px;
    margin: 0 auto;
}

.detail-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.detail-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: var(--sombra-suave);
    text-align: center;
}

.detail-card h4 {
    color: var(--color-primario);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.detail-card p {
    color: var(--color-texto);
    font-weight: 500;
}

.team-description {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: var(--sombra-suave);
    text-align: center;
}

.team-description h4 {
    color: var(--color-primario);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.team-description p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-texto);
}

/* Acciones de Resultados */
.results-actions {
    text-align: center;
    margin-top: 3rem;
}

.results-actions .btn {
    margin: 0 0.5rem;
    margin-bottom: 1rem;
}

.btn--accent {
    background: var(--color-acento);
    color: var(--color-texto);
    border: 2px solid var(--color-acento);
}

.btn--accent:hover {
    background: transparent;
    color: var(--color-acento);
}

/* Animaciones */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes confettifall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
    }
}

/* Responsive */
/* Tablets y pantallas medianas */
@media (max-width: 1024px) {
    .quiz-hero {
        padding: 2.5rem 0;
    }
    
    .quiz-hero h1 {
        font-size: 2.2rem;
    }
    
    .quiz-hero__subtitle {
        font-size: 1.15rem;
    }
    
    .quiz-stats {
        gap: 2.5rem;
    }
    
    .stat__number {
        font-size: 2.2rem;
    }
    
    .quiz-card {
        padding: 2.2rem;
    }
    
    .quiz-question {
        font-size: 1.6rem;
    }
    
    .quiz-answers {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
    
    .quiz-answer {
        padding: 1.3rem;
        font-size: 1.05rem;
    }
    
    .results-celebration h2 {
        font-size: 2.2rem;
    }
    
    .team-name {
        font-size: 2rem;
    }
    
    .detail-cards {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* Tablets pequeños y móviles horizontales */
@media (max-width: 900px) {
    .quiz-hero {
        padding: 2rem 0;
    }
    
    .quiz-hero h1 {
        font-size: 2rem;
    }
    
    .quiz-hero__subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.8rem;
    }
    
    .quiz-stats {
        gap: 2rem;
    }
    
    .stat__number {
        font-size: 2rem;
    }
    
    .quiz-container {
        padding: 2.5rem 0;
    }
    
    .quiz-card {
        padding: 2rem;
    }
    
    .quiz-question {
        font-size: 1.5rem;
        margin-bottom: 1.8rem;
    }
    
    .quiz-answers {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    
    .quiz-answer {
        padding: 1.2rem;
        font-size: 1rem;
    }
    
    .results-celebration h2 {
        font-size: 2rem;
    }
    
    .team-name {
        font-size: 1.8rem;
    }
    
    .detail-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Móviles grandes */
@media (max-width: 768px) {
    .quiz-hero {
        padding: 2rem 0;
    }
    
    .quiz-hero h1 {
        font-size: 1.9rem;
        margin-bottom: 0.8rem;
    }
    
    .quiz-hero__subtitle {
        font-size: 1.05rem;
        margin-bottom: 1.5rem;
    }
    
    .quiz-stats {
        gap: 2rem;
        margin-bottom: 1.8rem;
    }
    
    .stat__number {
        font-size: 1.8rem;
    }
    
    .stat__label {
        font-size: 0.95rem;
    }
    
    .btn--large {
        padding: 0.9rem 1.8rem;
        font-size: 1.1rem;
    }
    
    .quiz-container {
        padding: 2rem 0;
        min-height: 60vh;
    }
    
    .quiz-card {
        padding: 2rem;
        margin: 0 0.5rem;
    }
    
    .quiz-question {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }
    
    .quiz-answers {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .quiz-answer {
        padding: 1.1rem;
        font-size: 1rem;
    }
    
    .quiz-answer .answer-icon {
        font-size: 1.3rem;
    }
    
    .results-celebration h2 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }
    
    .team-name {
        font-size: 1.7rem;
    }
    
    .team-description {
        font-size: 1.05rem;
    }
    
    .detail-cards {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    
    .detail-card {
        padding: 1.2rem;
    }
    
    .detail-card h3 {
        font-size: 1.1rem;
    }
    
    .detail-card p {
        font-size: 0.95rem;
    }
}

/* Móviles medianos */
@media (max-width: 600px) {
    .quiz-hero {
        padding: 1.8rem 0;
    }
    
    .quiz-hero h1 {
        font-size: 1.7rem;
        margin-bottom: 0.7rem;
    }
    
    .quiz-hero__subtitle {
        font-size: 1rem;
        margin-bottom: 1.2rem;
    }
    
    .quiz-stats {
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .stat__number {
        font-size: 1.6rem;
    }
    
    .stat__label {
        font-size: 0.9rem;
    }
    
    .btn--large {
        padding: 0.8rem 1.6rem;
        font-size: 1rem;
    }
    
    .quiz-container {
        padding: 1.8rem 0;
        min-height: 50vh;
    }
    
    .quiz-card {
        padding: 1.5rem;
        margin: 0 0.3rem;
        border-radius: 0.8rem;
    }
    
    .quiz-question {
        font-size: 1.3rem;
        margin-bottom: 1.2rem;
    }
    
    .quiz-answers {
        gap: 0.8rem;
    }
    
    .quiz-answer {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    .quiz-answer .answer-icon {
        font-size: 1.2rem;
    }
    
    .results-celebration h2 {
        font-size: 1.6rem;
        margin-bottom: 0.7rem;
    }
    
    .team-name {
        font-size: 1.5rem;
    }
    
    .team-description {
        font-size: 1rem;
    }
    
    .detail-cards {
        gap: 1rem;
    }
    
    .detail-card {
        padding: 1rem;
    }
    
    .detail-card h3 {
        font-size: 1.05rem;
    }
    
    .detail-card p {
        font-size: 0.9rem;
    }
    
    .results-actions {
        gap: 1rem;
    }
    
    .results-actions .btn {
        padding: 0.7rem 1.4rem;
        font-size: 0.95rem;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .quiz-hero {
        padding: 1.5rem 0;
    }
    
    .quiz-hero h1 {
        font-size: 1.5rem;
        margin-bottom: 0.6rem;
        line-height: 1.3;
    }
    
    .quiz-hero__subtitle {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .quiz-stats {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1.2rem;
    }
    
    .stat__number {
        font-size: 1.8rem;
    }
    
    .stat__label {
        font-size: 0.85rem;
    }
    
    .btn--large {
        padding: 0.7rem 1.4rem;
        font-size: 0.95rem;
    }
    
    .quiz-container {
        padding: 1.5rem 0;
        min-height: 45vh;
    }
    
    .quiz-card {
        padding: 1.2rem;
        margin: 0 0.2rem;
        border-radius: 0.7rem;
    }
    
    .quiz-question {
        font-size: 1.2rem;
        margin-bottom: 1rem;
        line-height: 1.4;
    }
    
    .quiz-answers {
        gap: 0.7rem;
    }
    
    .quiz-answer {
        padding: 0.9rem;
        font-size: 0.9rem;
    }
    
    .quiz-answer .answer-icon {
        font-size: 1.1rem;
    }
    
    .results-celebration {
        margin-bottom: 2rem;
    }
    
    .results-celebration h2 {
        font-size: 1.4rem;
        margin-bottom: 0.6rem;
    }
    
    .team-name {
        font-size: 1.3rem;
    }
    
    .team-description {
        font-size: 0.95rem;
    }
    
    .detail-cards {
        gap: 0.8rem;
    }
    
    .detail-card {
        padding: 0.9rem;
    }
    
    .detail-card h3 {
        font-size: 1rem;
    }
    
    .detail-card p {
        font-size: 0.85rem;
    }
    
    .results-actions {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .results-actions .btn {
        display: block;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .progress-bar {
        height: 4px;
        margin-bottom: 0.8rem;
    }
    
    .progress-text {
        font-size: 0.9rem;
    }
}
