/* ============================================
   CICLO DEL AGUA -
   Simple, 3 pasos, para ninos
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: #000;
    font-family: 'Segoe UI', Arial, sans-serif;
}

#game-wrapper {
    position: relative;
    width: 100vw;
    height: 100vh;
}

#agua-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* === BOTON VOLVER === */
#btn-volver {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 20;
    padding: 6px 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 20px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    backdrop-filter: blur(5px);
}

    #btn-volver:hover {
        background: rgba(255,255,255,0.15);
        border-color: rgba(255,255,255,0.5);
    }

/* === TITULO === */
#title-bar {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background: rgba(0,0,0,0.5);
    color: #fff;
    padding: 6px 22px;
    border-radius: 18px;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 1px;
    backdrop-filter: blur(5px);
    white-space: nowrap;
}

/* === PASOS === */
#steps-panel {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
    background: rgba(0,0,0,0.6);
    padding: 8px 14px;
    border-radius: 16px;
    backdrop-filter: blur(5px);
}

.step-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 2px solid rgba(52, 152, 219, 0.4);
    border-radius: 12px;
    background: rgba(52, 152, 219, 0.15);
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

    .step-btn:hover:not(:disabled) {
        background: rgba(52, 152, 219, 0.35);
        border-color: rgba(52, 152, 219, 0.7);
        transform: scale(1.05);
    }

    .step-btn:active:not(:disabled) {
        transform: scale(0.97);
    }

    .step-btn:disabled {
        opacity: 0.35;
        cursor: not-allowed;
    }

    .step-btn.active {
        background: rgba(52, 152, 219, 0.4);
        border-color: #3498db;
        box-shadow: 0 0 15px rgba(52,152,219,0.3);
    }

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(52,152,219,0.3);
    font-weight: bold;
    font-size: 13px;
}

.step-btn.active .step-num {
    background: #3498db;
}

.step-btn.done .step-num {
    background: #2ecc71;
}

.step-btn.done {
    border-color: rgba(46, 204, 113, 0.5);
}

.step-btn-reset {
    border-color: rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.05);
}

.step-name {
    font-size: 13px;
}

/* === PANEL EDUCATIVO (derecha) === */
#panel-info {
    position: absolute;
    right: 12px;
    bottom: 70px;
    z-index: 10;
    padding: 14px 16px;
    background: rgba(0,0,0,0.65);
    border: 2px solid rgba(52, 152, 219, 0.4);
    border-radius: 14px;
    backdrop-filter: blur(5px);
    max-width: 260px;
    transition: border-color 0.5s, opacity 0.5s;
}

#info-title {
    font-size: 15px;
    color: #3498db;
    font-weight: bold;
    margin-bottom: 8px;
    line-height: 1.3;
}

#info-text {
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    line-height: 1.5;
    margin-bottom: 8px;
}

.fun-fact {
    font-size: 12px;
    color: #f1c40f;
    font-style: italic;
    line-height: 1.4;
    padding-top: 6px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
    #steps-panel {
        flex-wrap: wrap;
        justify-content: center;
        max-width: 90vw;
    }

    .step-btn {
        padding: 6px 10px;
        font-size: 12px;
    }

    .step-name {
        font-size: 12px;
    }

    .step-num {
        width: 20px;
        height: 20px;
        font-size: 11px;
    }

    #panel-info {
        max-width: 200px;
        bottom: 80px;
    }

    #title-bar {
        font-size: 15px;
        padding: 5px 16px;
    }
}

@media (max-width: 600px) {
    #panel-info {
        right: 8px;
        left: 8px;
        bottom: auto;
        top: 50px;
        max-width: none;
    }
}
