* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #e8f4fb;
    font-family: sans-serif;
    color: #1a3a50;
}

header {
    background-color: #4a90d9;
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 500;
}

.header-icon { font-size: 24px; }

main {
    max-width: 680px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.seccion-label {
    font-size: 13px;
    font-weight: 500;
    color: #5a8aaa;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.panel-tarea {
    background: #d6ecf7;
    border: 0.5px solid #c8e2f2;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.icono-barrio {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #e8f4fb;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.25rem;
}

.casa { font-size: 48px; }

.pie-icono {
    font-size: 13px;
    color: #5a8aaa;
    margin-top: 0.5rem;
}

.descripcion {
    font-size: 15px;
    text-align: center;
    line-height: 1.6;
    color: #1a3a50;
}

.subir-foto {
    background: #d6ecf7;
    border: 0.5px solid #c8e2f2;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.subir-foto form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.subir-foto input[type="text"] {
    padding: 10px 14px;
    border: 0.5px solid #c8e2f2;
    border-radius: 8px;
    font-size: 15px;
    background: #e8f4fb;
    color: #1a3a50;
    outline: none;
}

.subir-foto input[type="text"]:focus { border-color: #4a90d9; }

.dropzone {
    border: 2px dashed #4a90d9;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    background: #e8f4fb;
    color: #5a8aaa;
    font-size: 14px;
    transition: background 0.2s;
    position: relative;
}

.dropzone input[type="file"] { display: none; }
.dropzone.drag-over { background: #c8e2f2; }

.subir-foto button {
    background: #4a90d9;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px;
    font-size: 15px;
    cursor: pointer;
}

.subir-foto button:hover { background: #357abd; }

.link-galeria {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.link-galeria a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #4a90d9;
    text-decoration: none;
    border: 0.5px solid #4a90d9;
    border-radius: 8px;
    padding: 8px 16px;
    background: white;
}

.link-galeria a:hover { background: #e8f4fb; }

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.foto-card {
    background: #d6ecf7;
    border: 0.5px solid #c8e2f2;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    aspect-ratio: 1 / 1;
}

.foto-card img {
    width: 100%;
    height: 80%;
    object-fit: cover;
}

.nombre-alumno {
    height: 20%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sin-fotos {
    text-align: center;
    color: #5a8aaa;
    padding: 2rem;
}

.foto-card-docente {
    background: #d6ecf7;
    border: 0.5px solid #c8e2f2;
    border-radius: 12px;
    overflow: visible;
    text-align: center;
}

.foto-card-docente img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.acciones-docente {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 8px;
}

.btn-descargar {
    font-size: 12px;
    color: #4a90d9;
    text-decoration: none;
    border: 0.5px solid #4a90d9;
    border-radius: 6px;
    padding: 4px 10px;
    background: white;
}

.btn-borrar {
    font-size: 12px;
    color: #a33;
    text-decoration: none;
    border: 0.5px solid #a33;
    border-radius: 6px;
    padding: 4px 10px;
    background: white;
}

.btn-descargar:hover { background: #e8f4fb; }
.btn-borrar:hover { background: #fde8e8; }

@media (max-width: 600px) {
    main {
        margin: 1rem auto;
        padding: 0 0.75rem;
    }
    header {
        font-size: 17px;
        padding: 0.75rem 1rem;
    }
    .icono-barrio { padding: 1.25rem; }
    .casa { font-size: 40px; }
    .descripcion { font-size: 14px; }
    .subir-foto input[type="text"] {
        font-size: 16px;
        padding: 12px 14px;
    }
    .dropzone {
        padding: 1.5rem 1rem;
        font-size: 13px;
    }
    .subir-foto button {
        font-size: 16px;
        padding: 12px;
    }
    .galeria-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 0.75rem;
    }
    .foto-card img { height: 130px; }
    .link-galeria a {
        font-size: 13px;
        padding: 8px 12px;
    }


}
.btn-habilitar {
    font-size: 12px;
    color: #2a7a2a;
    text-decoration: none;
    border: 0.5px solid #2a7a2a;
    border-radius: 6px;
    padding: 4px 10px;
    background: white;
}

.btn-deshabilitar {
    font-size: 12px;
    color: #b86d00;
    text-decoration: none;
    border: 0.5px solid #b86d00;
    border-radius: 6px;
    padding: 4px 10px;
    background: white;
}

.btn-habilitar:hover { background: #e8f7e8; }
.btn-deshabilitar:hover { background: #fff3e0; }

.menu-lateral {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.menu-btn {
    background: #4a90d9;
    color: white;
    border: none;
    border-radius: 0 8px 8px 0;
    padding: 12px 16px;
    font-size: 14px;
    cursor: pointer;
    writing-mode: horizontal-tb;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.2);
}

.menu-btn:hover { background: #357abd; }

.menu-panel {
    display: none;
    flex-direction: column;
    gap: 8px;
    background: #d6ecf7;
    border: 0.5px solid #c8e2f2;
    border-radius: 0 8px 8px 0;
    padding: 12px 16px;
    margin-top: 4px;
    min-width: 160px;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.15);
}

.menu-panel.abierto { display: flex; }

.menu-panel a {
    font-size: 14px;
    color: #4a90d9;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 6px;
    background: white;
    border: 0.5px solid #c8e2f2;
}

.menu-panel a:hover { background: #e8f4fb; }


.link-video {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #4a90d9;
    text-decoration: none;
    border: 0.5px solid #4a90d9;
    border-radius: 8px;
    padding: 10px 16px;
    background: white;
}

.link-video:hover { background: #e8f4fb; }