/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow: hidden;
    color: #333;
}

/* Contenedor principal de la presentación */
.presentation-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* Estilos de slides */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center; /* Reverted to center */
    justify-content: center;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem;
}

.slide.active {
    opacity: 1;
    transform: translateX(0);
}

.slide.prev {
    transform: translateX(-100%);
}

/* Contenido de slides */
.slide-content {
    max-width: 1200px;
    width: 90%;
    padding: 2rem;
    text-align: center;
    animation: slideUp 0.8s ease-out;
    overflow-y: auto; /* Apply to all */
    max-height: 90vh;   /* Apply to all */
    flex-shrink: 0;
    padding-right: 15px; /* Space for scrollbar */
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide de título */
.title-slide {
    text-align: center;
}

.main-title {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    animation: titleGlow 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from {
        filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.3));
    }
    to {
        filter: drop-shadow(0 0 20px rgba(118, 75, 162, 0.5));
    }
}

.subtitle {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 2rem;
    font-weight: 300;
}

.objective {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    padding: 2rem;
    border-radius: 20px;
    margin: 2rem 0;
    color: white;
    box-shadow: 0 10px 30px rgba(240, 147, 251, 0.3);
}

.objective h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.objective p {
    font-size: 1.1rem;
    line-height: 1.6;
}

.team-info {
    background: rgba(102, 126, 234, 0.1);
    padding: 1rem;
    border-radius: 15px;
    font-size: 1.2rem;
    color: #667eea;
    font-weight: 600;
}

/* Slides de equipos */
.slide h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
    text-align: left;
}

.text-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #667eea;
}

.text-content ul {
    list-style: none;
    padding: 0;
}

.text-content li {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: 15px;
    font-size: 1.1rem;
    line-height: 1.5;
    box-shadow: 0 5px 15px rgba(240, 147, 251, 0.2);
    transform: translateX(-20px);
    opacity: 0;
    animation: slideInLeft 0.6s ease-out forwards;
}

.text-content li:nth-child(2) {
    animation-delay: 0.2s;
}

.text-content li:nth-child(3) {
    animation-delay: 0.4s;
}

.text-content li:nth-child(4) {
    animation-delay: 0.6s;
}

@keyframes slideInLeft {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.visual-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon-container {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
    animation: float 3s ease-in-out infinite;
}

.icon-container i {
    font-size: 4rem;
    color: white;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Estilos para diagrama de causa y efecto */
.cause-effect-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
    height: 100%;
    padding: 2rem;
}

.causes-section, .effects-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.causes-section h3, .effects-section h3 {
    text-align: center;
    color: #667eea;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.cause-box, .effect-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.cause-box:hover, .effect-box:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.cause-box.politics {
    border-left: 4px solid #667eea;
}

.cause-box.mentality {
    border-left: 4px solid #f093fb;
}

.effect-box.social {
    border-left: 4px solid #4facfe;
}

.effect-box.economic {
    border-left: 4px solid #43e97b;
}

.effect-box.technological {
    border-left: 4px solid #fa709a;
}

.cause-box h4, .effect-box h4 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.cause-box ul, .effect-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cause-box li, .effect-box li {
    color: #666;
    padding: 0.3rem 0;
    font-size: 0.9rem;
}

.arrow-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Slide del quiz */
.quiz-slide {
    text-align: center;
}

.quiz-container {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.question-container h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #333;
}

.options-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.option-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 15px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.option-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.option-btn.correct {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.option-btn.wrong {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.quiz-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #667eea;
}

.quiz-feedback {
    font-size: 1.3rem;
    font-weight: 600;
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
}

.quiz-feedback.correct {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.quiz-feedback.wrong {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

/* Estilos para tarjetas de consecuencias */
.consequences-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    padding: 2rem;
    height: 100%;
    align-items: start;
}

.consequence-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    transition: all 0.3s ease;
    height: fit-content;
}

.consequence-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-header {
    padding: 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.social-card .card-header {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.economic-card .card-header {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
}

.tech-card .card-header {
    background: linear-gradient(135deg, #fa709a, #fee140);
}

.card-header i {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 0.5rem;
}

.card-header h3 {
    color: white;
    margin: 0;
    font-size: 1.3rem;
}

.card-content {
    padding: 1.5rem;
}

.card-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card-content li {
    color: #333;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    line-height: 1.4;
}

.card-content li:last-child {
    border-bottom: none;
}

.card-content strong {
    color: #f093fb;
}

/* Estilos para análisis de Hobsbawm */
.analysis-container {
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hobsbawm-quote {
    text-align: center;
    margin-bottom: 2rem;
}

.hobsbawm-quote blockquote {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    border-left: 5px solid #f093fb;
    margin: 0;
    font-style: italic;
    font-size: 1.2rem;
    line-height: 1.6;
}

.hobsbawm-quote cite {
    display: block;
    margin-top: 1rem;
    color: #f093fb;
    font-weight: bold;
}

.key-insights h3 {
    color: #667eea;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.insight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.insight-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.insight-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.insight-card h4 {
    color: #f093fb;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.insight-card p {
    color: #333;
    line-height: 1.5;
    font-size: 0.9rem;
}

/* Estilos para conclusiones */
.conclusions-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.main-conclusion {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.main-conclusion h3 {
    color: #ecf0f1;
    font-size: 1.8em;
    margin-bottom: 15px;
}

.main-conclusion p {
    color: #ecf0f1;
    font-size: 1.2em;
    line-height: 1.6;
}

.reflection-points h3 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.6em;
}

.reflection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.reflection-item {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 25px;
    border-radius: 12px;
    border-left: 5px solid #3498db;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reflection-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.reflection-item h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.reflection-item p {
    color: #2c3e50;
    line-height: 1.6;
    font-size: 1.1em;
}

/* Estilos para la sección histórica */
.historical-showcase {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.historical-image-container {
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.historical-main-image {
    width: 100%;
    max-width: 1000px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.historical-context {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.context-card {
    background: linear-gradient(135deg, #3498db, #2980b9);
    padding: 25px;
    border-radius: 12px;
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.context-card:hover {
    transform: translateY(-5px);
}

.context-card h3 {
    color: #ecf0f1;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.context-card p {
    color: #ecf0f1;
    line-height: 1.6;
    font-size: 1.1em;
}

/* Estilos para la página de agradecimientos */
.thank-you-container {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.thank-you-container h1 {
    color: #e74c3c;
    font-size: 3em;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.gratitude-message {
    background: linear-gradient(135deg, #3498db, #2980b9);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.main-thanks {
    color: #ecf0f1;
    font-size: 1.4em;
    line-height: 1.6;
    margin-bottom: 25px;
}

.team-signature {
    border-top: 2px solid #ecf0f1;
    padding-top: 20px;
}

.team-signature h3 {
    color: #f1c40f;
    font-size: 1.8em;
    margin-bottom: 10px;
}

.team-topic {
    color: #ecf0f1;
    font-size: 1.2em;
    font-style: italic;
}

.closing-reflection {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.final-quote {
    margin: 0;
}

.final-quote p {
    color: #ecf0f1;
    font-size: 1.3em;
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 15px;
}

.final-quote cite {
    color: #f39c12;
    font-size: 1.1em;
    font-weight: bold;
}

.thank-you-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.thank-you-icons i {
    font-size: 2.5em;
    color: #3498db;
    transition: transform 0.3s ease, color 0.3s ease;
}

.thank-you-icons i:hover {
    transform: scale(1.2);
    color: #e74c3c;
}

.thank-you-icons i:nth-child(1) { color: #e74c3c; }
.thank-you-icons i:nth-child(2) { color: #f39c12; }
.thank-you-icons i:nth-child(3) { color: #f1c40f; }
.thank-you-icons i:nth-child(4) { color: #2ecc71; }

/* Controles de navegación */
.navigation-controls {
    /* This container is now a placeholder */
    z-index: 1000;
}

.nav-btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

#prev-btn {
    left: 2rem;
}

#next-btn {
    right: 2rem;
}

.nav-btn:hover {
    transform: translateY(-50%) scale(1.1);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: translateY(-50%);
}

#slide-counter {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 10px;
}

/* Indicadores de progreso */
.progress-indicators {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scale(1.2);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

/* Responsive design */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .slide h2 {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .slide-content {
        padding: 1rem;
        width: 100%;
    }
    
    .options-container {
        grid-template-columns: 1fr;
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    #prev-btn {
        left: 1rem;
    }
    #next-btn {
        right: 1rem;
    }
    #slide-counter {
        bottom: 1rem;
        right: 1rem;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .objective {
        padding: 1.5rem;
    }
}
