/* Estilos para presentaciones */
body {
    display: flex;
    justify-content: center;
    align-items: center;
}

.presentation-container {
    width: 90%;
    max-width: 900px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
    position: relative;
}

.slide {
    display: none;
    padding: 60px;
    min-height: 500px;
    animation: slideIn 0.5s ease;
    position: relative;
}

.slide.active {
    display: block;
}

.slide-number {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #667eea;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
}

/* Navegación de slides */
.navigation {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

/* Cajas de información en slides */
.observation-box, .algorithm-box, .info-box {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
    border-left: 5px solid #667eea;
}

.observation-step, .algorithm-step {
    padding: 15px;
    margin: 10px 0;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.observation-step:hover, .algorithm-step:hover {
    transform: translateX(10px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.icon-circle, .step-number {
    background: #764ba2;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 1.5em;
    flex-shrink: 0;
}

.step-number {
    width: 30px;
    height: 30px;
    font-weight: bold;
    margin-right: 15px;
}

/* Grid de ejemplos */
.problem-grid, .example-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.problem-card, .example-card {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
}

.problem-card:hover, .example-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

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

/* Áreas de actividad */
.activity-area, .drawing-area {
    border: 3px dashed #667eea;
    border-radius: 15px;
    padding: 30px;
    margin: 20px 0;
    background: #f8f9ff;
    text-align: center;
    min-height: 200px;
}

/* Cajas de preguntas */
.question-box {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    padding: 25px;
    border-radius: 15px;
    margin: 20px 0;
    font-size: 1.1em;
    line-height: 1.8;
}

/* Tarjetas de consejos */
.tip-card, .fun-fact {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    padding: 30px;
    border-radius: 20px;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    padding-left: 70px;
}

.tip-card::before, .fun-fact::before {
    content: '💡';
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5em;
}

.fun-fact {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    padding: 20px;
    padding-left: 60px;
}

.fun-fact::before {
    left: 20px;
    font-size: 2em;
}

/* Listas de conversación */
.conversation-list, .task-list {
    list-style: none;
    padding: 0;
}

.conversation-item, .task-list li {
    padding: 15px;
    margin: 10px 0;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
    border-left: 4px solid #667eea;
}

.conversation-item:hover, .task-list li:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.conversation-item::before {
    content: '💬';
    margin-right: 15px;
    font-size: 1.5em;
}

.task-list li::before {
    content: '✨';
    margin-right: 15px;
    font-size: 1.5em;
}

/* Círculos de lugares */
.places-container {
    display: flex;
    justify-content: space-around;
    margin: 30px 0;
}

.place-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    cursor: pointer;
    color: white;
    font-weight: bold;
}

.place-circle:hover {
    transform: scale(1.1) rotate(5deg);
}

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

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

.place-community {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

/* Área de trabajo */
.worksheet-area {
    background: white;
    border: 2px solid #667eea;
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    min-height: 150px;
}

.worksheet-prompt {
    color: #667eea;
    font-style: italic;
    margin-bottom: 15px;
}

/* Citas motivacionales */
.motivational-quote {
    text-align: center;
    font-size: 1.3em;
    color: #764ba2;
    font-style: italic;
    margin: 30px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8e9ff 100%);
    border-radius: 15px;
}

/* Demo de robot */
.robot-demo {
    background: #f0f0f0;
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
    border: 3px solid #333;
    position: relative;
}

.robot-demo::before {
    content: '🤖';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 2.5em;
    background: white;
    padding: 0 10px;
}

.error-example {
    background: #ffe5e5;
    border-left: 5px solid #ff4444;
    padding: 15px;
    margin: 15px 0;
    border-radius: 10px;
}

.success-example {
    background: #e5ffe5;
    border-left: 5px solid #44ff44;
    padding: 15px;
    margin: 15px 0;
    border-radius: 10px;
}

/* Tarjeta de tarea */
.task-card {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    padding: 30px;
    border-radius: 20px;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Casa CSS para ejemplo de algoritmo */
.house {
    width: 100px;
    height: 100px;
    background: #ff6b6b;
    position: relative;
    margin: 50px auto 20px;
}

.house::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -10px;
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 50px solid #4ecdc4;
}

.house::after {
    content: '';
    position: absolute;
    top: -35px;
    left: 40px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    border: 2px solid #333;
}

.door {
    width: 30px;
    height: 50px;
    background: #8b4513;
    position: absolute;
    bottom: 0;
    left: 35px;
}

.window {
    width: 25px;
    height: 25px;
    background: #87ceeb;
    position: absolute;
    top: 20px;
    right: 15px;
    border: 3px solid #654321;
}

/* Responsive */
@media (max-width: 768px) {
    .slide {
        padding: 30px;
    }

    h1 {
        font-size: 1.8em;
    }

    h2 {
        font-size: 1.4em;
    }

    .places-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
}
